/* HEMGÅRDEN — SITE.CSS CLEANUP V2
   Duplicate/legacy rules for Awards + Hem genom livet have been removed
   and replaced by one canonical version below. Other site rules keep
   their original cascade/order, in compact form. */

:root{--hg-green:#395a43;--hg-deep-green:#18271d;--hg-sage:#dfe7de;--hg-warm-white:#fbfaf6;--hg-stone:#eeeae1;--hg-charcoal:#20231f;--hg-muted:#666c65;--hg-serif:Georgia, "Times New Roman", serif;--hg-sans:Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;}
:root{--hg-blue:#173452;--hg-deep-blue:#173452;--hg-light-blue:#E7EEF8;}
.hg-home, .hg-hero{font-family:var(--hg-sans);color:var(--hg-charcoal);}
.hg-home *, .hg-hero *{box-sizing:border-box;}
.hg-shell{width:min(calc(100% - 64px), 1380px);margin-inline:auto;}
.hg-section{padding:clamp(84px, 9vw, 150px) 0;}
.hg-eyebrow{margin:0 0 22px;color:var(--hg-blue);font-size:.73rem;font-weight:700;letter-spacing:.19em;line-height:1.2;text-transform:uppercase;}
.hg-home h2{margin:0;font-family:var(--hg-serif);font-size:clamp(2.9rem, 5.2vw, 5.8rem);font-weight:400;letter-spacing:-.04em;line-height:.98;}
.hg-home h3{margin:0;font-family:var(--hg-serif);font-size:clamp(1.8rem, 2.6vw, 2.65rem);font-weight:400;line-height:1.05;}
.hg-home p{font-size:clamp(1rem, 1.25vw, 1.18rem);line-height:1.75;}
.hg-button{display:inline-flex;align-items:center;justify-content:space-between;gap:34px;padding:18px 25px;font-size:.76rem;font-weight:700;letter-spacing:.14em;line-height:1;text-decoration:none;text-transform:uppercase;transition:background-color 220ms ease, color 220ms ease, gap 220ms ease, border-color 220ms ease;}
.hg-button:hover, .hg-button:focus-visible{gap:44px;}
.hg-button--light{border:1px solid rgba(255,255,255,.84);color:var(--hg-warm-white);}
.hg-button--light:hover, .hg-button--light:focus-visible{background:var(--hg-warm-white);color:var(--hg-blue);}
.hg-button--dark{border:1px solid var(--hg-deep-blue);color:var(--hg-deep-blue);}
.hg-button--dark:hover, .hg-button--dark:focus-visible{background:var(--hg-deep-blue);color:white;}
.hg-text-link{display:inline-flex;gap:16px;align-items:center;color:var(--hg-blue);font-size:.88rem;font-weight:700;letter-spacing:.12em;text-decoration:none;text-transform:uppercase;}
.hg-text-link:hover span{transform:translateX(6px);}
.hg-text-link span{transition:transform 180ms ease;}
.hg-hero{position:relative;width:100vw;min-height:clamp(680px, 88vh, 920px);margin-left:calc(50% - 50vw);overflow:hidden;display:flex;align-items:center;background:var(--hg-charcoal);isolation:isolate;}
.hg-hero__media, .hg-hero__slide, .hg-hero__shade{position:absolute;inset:0;}
.hg-hero__media{z-index:-3;overflow:hidden;}
.hg-hero__slide{opacity:0;background-size:cover;background-repeat:no-repeat;transform:scale(1.015);transition:opacity 1800ms ease-in-out, transform 9500ms ease-out;will-change:opacity, transform;}
.hg-hero__slide.is-active{opacity:1;transform:scale(1.075);}
.hg-hero__shade{z-index:-2;background:linear-gradient(90deg, rgba(23,52,82,.74) 0%, rgba(23,52,82,.46) 38%, rgba(23,52,82,.14) 70%, rgba(23,52,82,.04) 100%), linear-gradient(0deg, rgba(23,52,82,.38) 0%, transparent 45%);}
.hg-hero__inner{position:relative;min-height:inherit;padding-block:130px 70px;display:flex;flex-direction:column;justify-content:center;color:var(--hg-warm-white);}
.hg-hero__content{max-width:760px;}
.hg-hero__kicker{color:var(--hg-warm-white);}
.hg-hero h1{max-width:760px;margin:0;color:inherit;font-family:var(--hg-serif);font-size:clamp(3.5rem, 5.4vw, 6.2rem);font-weight:400;line-height:.96;letter-spacing:-.04em;}
.hg-hero__lead{max-width:400px;margin:30px 0 38px;font-size:clamp(1.05rem, 1.35vw, 1.28rem);line-height:1.58;}
.hg-hero__caption{position:absolute;left:0;bottom:46px;display:flex;gap:12px;align-items:center;min-height:20px;font-size:.73rem;letter-spacing:.12em;text-transform:uppercase;}
.hg-hero__location:not(:empty)::before{content:"â€”";margin-right:12px;opacity:.65;}
.hg-hero__progress{position:absolute;right:0;bottom:50px;display:flex;gap:9px;}
.hg-hero__progress span{width:34px;height:2px;background:rgba(255,255,255,.38);transition:background-color 400ms ease;}
.hg-hero__progress span.is-active{background:rgba(255,255,255,.95);}
.hg-intro{background:var(--hg-warm-white);}
.hg-intro__grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(50px, 9vw, 150px);align-items:start;}
.hg-intro__copy{max-width:650px;}
.hg-intro__copy p:first-child{margin-top:0;}
.hg-intro__copy p:last-child{margin-bottom:0;color:var(--hg-muted);}
.hg-section-heading{max-width:850px;margin-bottom:clamp(50px, 7vw, 90px);}
.hg-section-heading > p:last-child{max-width:660px;color:var(--hg-muted);}
.hg-section-heading--center{margin-inline:auto;text-align:center;}
.hg-card-grid{display:grid;grid-template-columns:repeat(4, 1fr);border-top:1px solid rgba(32,35,31,.18);border-left:1px solid rgba(32,35,31,.18);}
.hg-service-card{min-height:360px;padding:34px 30px 42px;border-right:1px solid rgba(32,35,31,.18);border-bottom:1px solid rgba(32,35,31,.18);display:flex;flex-direction:column;}
.hg-service-card__number{margin-bottom:auto;color:var(--hg-blue);font-size:.7rem;letter-spacing:.14em;}
.hg-service-card p{margin-bottom:0;color:var(--hg-muted);}
.hg-genius{background:var(--hg-deep-blue);color:var(--hg-warm-white);}
.hg-genius__grid{display:grid;grid-template-columns:minmax(0, 1.2fr) minmax(340px, .8fr);gap:clamp(50px, 8vw, 120px);align-items:center;}
.hg-genius__image{min-height:clamp(460px, 58vw, 760px);background:url("https://hemgarden.se/wp-content/uploads/2026/07/Brf_pergolan_web-1400x700-1.jpg") center/cover no-repeat;}
.hg-genius__content{max-width:600px;}
.hg-genius__content .hg-eyebrow{color:#AFC7DF;}
.hg-genius__content h2{color:var(--hg-warm-white);}
.hg-genius__content p{color:rgba(255,253,248,.74);}
.hg-genius__content .hg-text-link{margin-top:20px;color:var(--hg-warm-white);}
.hg-values{background:var(--hg-warm-white);}
.hg-values__grid{display:grid;grid-template-columns:repeat(3, 1fr);margin-top:70px;border-top:1px solid rgba(32,35,31,.18);}
.hg-values__grid article{padding:42px 45px 0 0;}
.hg-values__grid article + article{padding-left:45px;border-left:1px solid rgba(32,35,31,.18);}
.hg-values__grid p{color:var(--hg-muted);}
.hg-land{padding:clamp(60px, 8vw, 110px) 0;background:var(--hg-light-blue);}
.hg-land__inner{display:flex;align-items:center;justify-content:space-between;gap:50px;}
.hg-land h2{font-size:clamp(2.7rem, 4.5vw, 4.8rem);}
.hg-land p{max-width:650px;margin-bottom:0;}
@media  (max-width: 980px){
  .hg-card-grid{grid-template-columns:repeat(2, 1fr);}
  .hg-genius__grid{grid-template-columns:1fr;}
  .hg-genius__image{min-height:540px;}
}
@media  (max-width: 782px){
  .hg-shell{width:calc(100% - 40px);}
  .hg-hero{min-height:760px;align-items:flex-end;}
  .hg-hero__inner{padding:120px 0 90px;justify-content:flex-end;}
  .hg-hero__shade{background:linear-gradient(0deg, rgba(23,52,82,.88) 0%, rgba(23,52,82,.52) 48%, rgba(23,52,82,.08) 88%);}
  .hg-hero h1{font-size:clamp(3rem, 11.5vw, 5rem);line-height:.98;}
  .hg-hero__caption{bottom:31px;}
  .hg-hero__progress{right:0;bottom:34px;}
  .hg-intro__grid{grid-template-columns:1fr;}
  .hg-values__grid{grid-template-columns:1fr;}
  .hg-values__grid article, .hg-values__grid article + article{padding:32px 0;border-left:0;border-bottom:1px solid rgba(32,35,31,.18);}
  .hg-land__inner{align-items:flex-start;flex-direction:column;}
}
@media  (max-width: 560px){
  .hg-shell{width:calc(100% - 32px);}
  .hg-hero{min-height:700px;}
  .hg-hero__inner{padding-bottom:78px;}
  .hg-hero h1{font-size:clamp(2.8rem, 13vw, 4.1rem);}
  .hg-button{width:100%;}
  .hg-hero__caption{display:none;}
  .hg-hero__progress{left:0;right:auto;bottom:30px;}
  .hg-card-grid{grid-template-columns:1fr;}
  .hg-service-card{min-height:300px;}
  .hg-genius__image{min-height:390px;}
}
@media  (prefers-reduced-motion: reduce){
  .hg-hero__slide{transition:none;transform:none;}
  .hg-hero__slide:not(:first-child){display:none;}
}
body.page .wp-site-blocks{padding-top:0;padding-bottom:0;}
body.page .wp-block-post-title{display:none;}
body.page .entry-content, body.page main.wp-block-group, body.page .wp-block-post-content{margin-block-start:0 !important;}
body.page .wp-block-post-content > .wp-block-shortcode{margin:0 !important;max-width:none !important;}
body.page .wp-block-post-content > .wp-block-shortcode > *{max-width:none !important;}
.hg-home .hg-section, .hg-home .hg-land{animation:hgSectionIn .8s ease both;}
@keyframes hgSectionIn{
  from{opacity:0;transform:translateY(18px);}
  to{opacity:1;transform:translateY(0);}
}
@media  (prefers-reduced-motion: reduce){
  .hg-home .hg-section, .hg-home .hg-land{animation:none;}
}
body:has(.hg-home), body:has(.hg-hero){overflow-x:hidden;background:var(--hg-warm-white);}
body:has(.hg-home) .wp-site-blocks, body:has(.hg-hero) .wp-site-blocks{padding:0 !important;}
body:has(.hg-home) .wp-site-blocks > header, body:has(.hg-hero) .wp-site-blocks > header, body:has(.hg-home) .wp-site-blocks > footer, body:has(.hg-hero) .wp-site-blocks > footer{display:none !important;}
body:has(.hg-home) .wp-block-post-content, body:has(.hg-hero) .wp-block-post-content, body:has(.hg-home) main, body:has(.hg-hero) main{padding:0 !important;margin:0 !important;max-width:none !important;}
body:has(.hg-home) .wp-block-post-content > *, body:has(.hg-hero) .wp-block-post-content > *{max-width:none !important;}
.hg-header{position:absolute;inset:0 0 auto;z-index:20;padding:24px 0;color:#fff;}
.hg-header__inner{display:flex;align-items:center;justify-content:space-between;gap:32px;}


.hg-header__nav{display:flex;align-items:center;gap:clamp(18px, 2.3vw, 38px);font-size:.73rem;font-weight:650;letter-spacing:.11em;text-transform:uppercase;}
.hg-header__nav a, .hg-header__language{color:#fff;text-decoration:none;white-space:nowrap;}
.hg-header__nav a{position:relative;}
.hg-header__nav a::after{content:"";position:absolute;left:0;right:100%;bottom:-8px;height:1px;background:currentColor;transition:right 220ms ease;}
.hg-header__nav a:hover::after, .hg-header__nav a:focus-visible::after{right:0;}
.hg-header__language span{opacity:.5;margin-inline:6px;}
.hg-hero{min-height:100svh;margin:0 !important;}
.hg-hero__inner{padding-top:160px;padding-bottom:76px;}
@media  (max-width: 900px){
  .hg-header__nav a:nth-child(2), .hg-header__nav a:nth-child(3){display:none;}
}
@media  (max-width: 620px){
  .hg-header{padding-top:18px;}
  
  .hg-header__nav{gap:16px;font-size:.66rem;}
  .hg-header__nav a{display:none;}
  .hg-header__nav a:first-child{display:inline-flex;}
  .hg-hero__inner{padding-top:138px;}
}
.hg-hero__kicker{margin-bottom:22px;}
.hg-hero__content .hg-button{margin-top:2px;}
@media  (min-width: 1200px){
  .hg-hero__content{transform:translateY(16px);}
}
.hg-hero{height:clamp(640px, 82vh, 840px);min-height:0;}
.hg-hero__inner{min-height:100%;padding-top:138px;padding-bottom:62px;}
.hg-hero h1{font-size:clamp(3.25rem, 4.8vw, 5.45rem);}
.hg-hero__lead{margin:24px 0 32px;}
.hg-hero__content .hg-button{padding:14px 28px;font-size:.72rem;}
.hg-hero__location:not(:empty)::before{content:none;}
.hg-card-grid{grid-template-columns:repeat(3, 1fr);}
.hg-service-card{min-height:275px;padding:38px 32px 34px;justify-content:flex-end;}
.hg-service-card h3{margin-top:0;}
.hg-service-card__number{display:none;}
@media  (max-width: 980px){
  .hg-hero{height:clamp(650px, 80svh, 780px);}
}
@media  (max-width: 782px){
  .hg-hero{height:720px;min-height:0;}
  .hg-hero__inner{min-height:100%;padding-top:118px;padding-bottom:76px;}
}
@media  (max-width: 560px){
  .hg-hero{height:680px;}
  .hg-service-card{min-height:220px;}
}
.hg-hero{height:clamp(600px, 74svh, 760px);}
.hg-hero__inner{padding-top:126px;padding-bottom:54px;}
.hg-hero__content{max-width:680px;}
.hg-hero h1{max-width:680px;font-size:clamp(2.9rem, 4.15vw, 4.75rem);line-height:.98;}
.hg-hero__lead{max-width:560px;margin:20px 0 28px;font-size:clamp(.98rem, 1.12vw, 1.15rem);line-height:1.55;}
.hg-hero__content .hg-button{padding:13px 24px;font-size:.69rem;}
.hg-section{padding-block:clamp(72px, 8vw, 118px);}
.hg-intro h2, .hg-section-heading h2{font-size:clamp(2.6rem, 4.3vw, 4.7rem);line-height:1.02;}
.hg-intro__grid{gap:clamp(40px, 7vw, 110px);}
.hg-intro__copy{font-size:clamp(1rem, 1.25vw, 1.2rem);line-height:1.65;}
.hg-section-heading{margin-bottom:clamp(38px, 5vw, 66px);}
.hg-service-card{min-height:235px;padding:30px 28px;}
.hg-service-card h3{font-size:clamp(1.45rem, 2vw, 2rem);}
.hg-service-card p{font-size:.98rem;line-height:1.55;}
@media  (max-width: 782px){
  .hg-hero{height:auto;min-height:640px;}
  .hg-hero h1{font-size:clamp(2.7rem, 10vw, 4.2rem);}
  .hg-intro h2, .hg-section-heading h2{font-size:clamp(2.4rem, 9vw, 3.8rem);}
}
@media  (max-width: 560px){
  .hg-hero{min-height:610px;}
}
.hg-stats{background:var(--hg-warm-white);border-bottom:1px solid rgba(32,35,31,.14);}
.hg-stats__grid{display:grid;grid-template-columns:repeat(4, minmax(0, 1fr));}
.hg-stat{min-height:145px;padding:26px 30px 22px;display:flex;flex-direction:column;justify-content:center;}
.hg-stat + .hg-stat{border-left:1px solid rgba(32,35,31,.14);}
.hg-stat strong{display:block;margin-bottom:10px;color:var(--hg-blue);font-family:var(--hg-serif);font-size:clamp(2.3rem, 3.4vw, 3.8rem);font-weight:400;line-height:1;letter-spacing:-.035em;}
.hg-stat span{color:var(--hg-muted);font-size:.88rem;font-weight:650;letter-spacing:.1em;line-height:1.45;text-transform:uppercase;}
@media  (max-width: 900px){
  .hg-stats__grid{grid-template-columns:repeat(2, minmax(0, 1fr));}
  .hg-stat:nth-child(3){border-left:0;border-top:1px solid rgba(32,35,31,.14);}
  .hg-stat:nth-child(4){border-top:1px solid rgba(32,35,31,.14);}
}
@media  (max-width: 620px){
  .hg-stat{min-height:145px;padding:30px 22px;}
  .hg-stat strong{font-size:clamp(1.8rem, 9vw, 2.7rem);}
  .hg-stat span{font-size:.68rem;}
}

.hg-header__nav{gap:clamp(17px, 2vw, 31px);font-size:.69rem;}
.hg-menu-item{position:relative;display:flex;align-items:center;}
.hg-menu-item > a{display:inline-flex;align-items:center;gap:7px;}
.hg-menu-chevron{font-size:.9em;opacity:.7;transform:translateY(-1px);}
.hg-dropdown{position:absolute;top:calc(100% + 18px);left:-24px;width:286px;padding:12px;background:rgba(251,250,246,.98);color:var(--hg-charcoal);box-shadow:0 20px 55px rgba(23,52,82,.16);border:1px solid rgba(32,35,31,.10);opacity:0;visibility:hidden;transform:translateY(-7px);transition:opacity 180ms ease, transform 180ms ease, visibility 180ms ease;}
.hg-dropdown::before{content:"";position:absolute;inset:-19px 0 auto;height:20px;}
.hg-menu-item:hover .hg-dropdown, .hg-menu-item:focus-within .hg-dropdown{opacity:1;visibility:visible;transform:translateY(0);}
.hg-dropdown a{display:block;padding:13px 14px;color:var(--hg-charcoal) !important;letter-spacing:0;text-transform:none;}
.hg-dropdown a::after{display:none !important;}
.hg-dropdown a:hover, .hg-dropdown a:focus-visible{background:rgba(23,52,82,.08);}
.hg-dropdown strong{display:block;font-size:.85rem;font-weight:650;line-height:1.35;}
.hg-dropdown small{display:block;margin-top:4px;color:var(--hg-muted);font-size:.72rem;line-height:1.45;}
.hg-section{padding:clamp(68px, 7.2vw, 112px) 0;}
.hg-home h2{font-size:clamp(2.35rem, 4vw, 4.45rem);line-height:1.01;}
.hg-home h3{font-size:clamp(1.45rem, 1.9vw, 2.05rem);line-height:1.12;}
.hg-home p{font-size:clamp(.94rem, 1vw, 1.05rem);line-height:1.68;}
.hg-section-heading{max-width:760px;margin-bottom:clamp(38px, 5vw, 64px);}
.hg-section-heading > p:last-child{max-width:600px;}
.hg-service-card{min-height:220px;padding:28px 27px 27px;}
.hg-service-card p{font-size:.94rem;line-height:1.58;}
@media  (max-width: 980px){
  
  .hg-dropdown{left:auto;right:0;}
}
@media  (max-width: 900px){
  .hg-menu-item--has-children:nth-of-type(2){display:none;}
}
@media  (max-width: 620px){
  
  .hg-menu-item--has-children{display:none;}
  .hg-header__nav > a{display:none;}
  .hg-header__language{display:inline-flex;}
  .hg-home h2{font-size:clamp(2.15rem, 10vw, 3.25rem);}
  .hg-service-card{min-height:190px;}
}
.hg-header{position:absolute;transition:background-color 220ms ease, box-shadow 220ms ease, padding 220ms ease;}
.hg-header.is-scrolled{position:fixed;padding:14px 0;background:rgba(251,250,246,.97);box-shadow:0 8px 30px rgba(10,20,14,.08);color:var(--hg-charcoal);backdrop-filter:blur(12px);}

.hg-header.is-scrolled .hg-header__nav > a, .hg-header.is-scrolled .hg-menu-item > a, .hg-header.is-scrolled .hg-header__language{color:var(--hg-charcoal);}


.hg-stats{background:#E7EEF8;border:0;padding:0;}
.hg-stats__grid{width:min(calc(100% - 64px), 1240px);grid-template-columns:repeat(4, minmax(0, 1fr));}
.hg-stat{min-height:128px;padding:26px 30px 24px;}
.hg-stat + .hg-stat{border-left-color:rgba(23,52,82,.12);}
.hg-stat strong{margin-bottom:7px;font-size:clamp(1.75rem, 2.4vw, 2.75rem);}
.hg-stat span{font-size:.69rem;letter-spacing:.115em;}
.hg-section{padding-block:clamp(56px, 5.8vw, 88px);}
.hg-home h2{font-size:clamp(2.15rem, 3.35vw, 3.65rem);line-height:1.04;}
.hg-home h3{font-size:clamp(1.28rem, 1.55vw, 1.68rem);}
.hg-home p{font-size:clamp(.9rem, .94vw, 1rem);line-height:1.62;}
.hg-eyebrow{margin-bottom:15px;font-size:.68rem;}
.hg-card-grid{gap:12px;border:0;background:transparent;}
.hg-service-card{min-height:158px;padding:24px 24px 22px;justify-content:flex-start;border:1px solid rgba(32,35,31,.12);background:rgba(251,250,246,.6);}
.hg-service-card h3{margin-bottom:12px;}
.hg-service-card p{margin:0;font-size:.87rem;line-height:1.5;}
.hg-current{background:var(--hg-warm-white);}
.hg-current__heading{display:grid;grid-template-columns:minmax(0, 1fr) minmax(300px, .62fr);gap:clamp(40px, 7vw, 100px);align-items:end;margin-bottom:32px;}
.hg-current__heading > div:last-child{max-width:510px;}
.hg-current__heading p{margin:0 0 18px;color:var(--hg-muted);}
.hg-project-grid{display:grid;grid-template-columns:repeat(3, 1fr);gap:18px;}
.hg-project-card{display:block;color:var(--hg-charcoal);text-decoration:none;}
.hg-project-card__image{display:block;aspect-ratio:16 / 10;background-position:center;background-size:cover;overflow:hidden;transition:transform 450ms ease, filter 450ms ease;}
.hg-project-card:hover .hg-project-card__image{transform:scale(1.015);filter:brightness(.94);}
.hg-project-card__meta{display:flex;justify-content:space-between;gap:20px;padding:15px 2px 0;}
.hg-project-card__meta strong{font-family:var(--hg-serif);font-size:1.22rem;font-weight:400;}
.hg-project-card__meta small{color:var(--hg-muted);font-size:.68rem;letter-spacing:.08em;text-transform:uppercase;}
.hg-genius{padding-block:clamp(52px, 5vw, 76px);}
.hg-genius__grid{grid-template-columns:minmax(0, 1.05fr) minmax(340px, .75fr);gap:clamp(42px, 6vw, 86px);}
.hg-genius__image{min-height:clamp(390px, 43vw, 590px);}
.hg-genius__content{max-width:520px;}
.hg-genius__content h2{font-size:clamp(2.35rem, 3.5vw, 3.85rem);}
.hg-genius__content p{line-height:1.58;}
.hg-genius__content .hg-text-link{margin-top:10px;}
.hg-values{padding-block:clamp(50px, 5vw, 76px);}
.hg-values__grid{margin-top:36px;}
.hg-values__grid article{padding-top:27px;}
.hg-land{padding-block:clamp(44px, 4.8vw, 68px);}
.hg-land h2{font-size:clamp(2.15rem, 3.3vw, 3.45rem);}
.hg-land p{max-width:580px;}
@media  (max-width: 980px){
  .hg-project-grid{grid-template-columns:repeat(2, 1fr);}
  .hg-project-card:last-child{display:none;}
}
@media  (max-width: 782px){
  .hg-stats__grid{width:calc(100% - 40px);}
  .hg-stat{min-height:108px;padding:22px 18px;}
  .hg-genius__grid{grid-template-columns:1fr;}
  .hg-genius__image{min-height:330px;}
}
@media  (max-width: 620px){
  
  .hg-stats__grid{width:100%;grid-template-columns:repeat(2, 1fr);}
  .hg-stat{min-height:100px;}
  .hg-project-card:last-child{display:block;}
}
.hg-header{overflow:visible;}
body.admin-bar .hg-header.is-scrolled{top:32px;}
.hg-header__inner{min-height:68px;}


.hg-header.is-scrolled{padding:6px 0;}
.hg-header.is-scrolled .hg-header__inner{min-height:68px;}

.hg-header__nav{gap:clamp(14px, 1.55vw, 26px);font-size:.66rem;}
.hg-dropdown{top:calc(100% + 12px);left:-14px;width:242px;padding:6px;border-radius:2px;}
.hg-dropdown::before{inset:-13px 0 auto;height:14px;}
.hg-dropdown a{padding:10px 11px;}
.hg-dropdown strong{font-size:.79rem;line-height:1.25;}
.hg-dropdown small{margin-top:2px;font-size:.66rem;line-height:1.35;}
.hg-stats{background:var(--hg-blue);}
.hg-stat{min-height:112px;padding:22px 28px 20px;}
.hg-stat strong{margin-bottom:6px;font-size:clamp(1.8rem, 2.6vw, 2.85rem);}
.hg-stat span{font-size:.68rem;}
.hg-card-grid{gap:10px;border:0;}
.hg-service-card{min-height:142px;padding:22px 24px;background:rgba(251,250,246,.62);border:1px solid rgba(32,35,31,.12);border-radius:2px;justify-content:flex-start;}
.hg-service-card h3{font-size:clamp(1.25rem, 1.6vw, 1.6rem);}
.hg-service-card p{margin-top:10px;font-size:.88rem;line-height:1.48;}
.hg-current{padding-block:clamp(52px, 5.5vw, 78px);}
.hg-current__heading{margin-bottom:24px;}
.hg-current__heading h2{font-size:clamp(2.5rem, 3.9vw, 4.15rem);}
.hg-project-carousel{position:relative;}
.hg-project-grid{display:flex;gap:18px;overflow-x:auto;scroll-behavior:smooth;scrollbar-width:none;scroll-snap-type:x mandatory;}
.hg-project-grid::-webkit-scrollbar{display:none;}
.hg-project-card{flex:0 0 calc((100% - 36px) / 3);min-width:0;scroll-snap-align:start;}
.hg-project-arrow{position:absolute;z-index:3;top:42%;width:42px;height:42px;border:1px solid rgba(32,35,31,.2);border-radius:50%;background:rgba(251,250,246,.94);color:var(--hg-blue);font-size:1.15rem;cursor:pointer;box-shadow:0 10px 28px rgba(23,52,82,.09);transition:transform 180ms ease, background-color 180ms ease, color 180ms ease;}
.hg-project-arrow:hover, .hg-project-arrow:focus-visible{transform:scale(1.05);background:var(--hg-blue);color:#fff;}
.hg-project-arrow--prev{left:-21px;}
.hg-project-arrow--next{right:-21px;}
.hg-genius{padding-block:clamp(48px, 5vw, 72px);}
.hg-genius__grid{grid-template-columns:minmax(0, 1.08fr) minmax(340px, .92fr);gap:clamp(34px, 5vw, 72px);}
.hg-genius__image{min-height:clamp(390px, 43vw, 560px);}
.hg-genius__content{max-width:540px;}
.hg-genius__content h2{font-size:clamp(2.55rem, 4vw, 4.25rem);}
.hg-genius__content p{font-size:.98rem;line-height:1.6;}
.hg-values{padding-block:clamp(44px, 4.5vw, 64px);}
.hg-values .hg-section-heading{margin-bottom:0;}
.hg-values .hg-section-heading h2{font-size:clamp(2.45rem, 3.8vw, 4rem);}
.hg-values__grid{margin-top:24px;}
.hg-values__grid article, .hg-values__grid article + article{padding-top:22px;padding-bottom:0;}
.hg-values__grid h3{font-size:clamp(1.3rem, 1.7vw, 1.7rem);}
.hg-values__grid p{font-size:.9rem;line-height:1.5;}
.hg-land{padding-block:clamp(40px, 4.3vw, 60px);}
@media  (max-width: 1100px){
  
  .hg-header__nav{gap:14px;font-size:.62rem;}
}
@media  (max-width: 980px){
  .hg-project-card{flex-basis:calc((100% - 18px) / 2);}
  .hg-project-arrow--prev{left:-10px;}
  .hg-project-arrow--next{right:-10px;}
}
@media  (max-width: 782px){
  body.admin-bar .hg-header.is-scrolled{top:46px;}
}
@media  (max-width: 620px){
  
  .hg-project-card{flex-basis:88%;}
  .hg-project-arrow{width:38px;height:38px;}
}
.hg-header{z-index:1000;}
.hg-header__inner{min-height:76px;}



.hg-header.is-scrolled{padding:4px 0;}
.hg-header.is-scrolled .hg-header__inner{min-height:70px;}

.hg-header__nav{gap:clamp(12px, 1.35vw, 22px);}
.hg-dropdown{top:calc(100% + 9px);left:-10px;width:224px;padding:4px;}
.hg-dropdown::before{inset:-10px 0 auto;height:11px;}
.hg-dropdown a{padding:8px 9px;}
.hg-dropdown strong{font-size:.76rem;}
.hg-dropdown small{margin-top:1px;font-size:.63rem;line-height:1.3;}
.hg-hero__content h1{letter-spacing:-.035em;word-spacing:.045em;}
.hg-hero__lead{max-width:570px;}
.hg-stat{min-height:118px;padding:18px 26px 17px;}
.hg-stat strong{font-size:clamp(1.65rem, 2.25vw, 2.5rem);}
.hg-section{padding-block:clamp(48px, 4.9vw, 74px);}
.hg-card-grid{gap:8px;}
.hg-service-card{min-height:126px;padding:18px 20px;}
.hg-service-card h3{margin-bottom:8px;}
.hg-service-card p{font-size:.82rem;line-height:1.44;}
.hg-project-arrow{width:42px;height:42px;border-radius:50%;background:rgba(251,250,246,.94);border:1px solid rgba(32,35,31,.16);box-shadow:0 8px 26px rgba(23,52,82,.10);color:var(--hg-charcoal);transition:transform 180ms ease, background 180ms ease;}
.hg-project-arrow:hover{transform:translateY(-2px);background:#fff;}
.hg-project-arrow--prev{left:-20px;}
.hg-project-arrow--next{right:-20px;}
.hg-genius{padding-block:clamp(42px, 4.2vw, 62px);}
.hg-genius__grid{grid-template-columns:minmax(0, 1fr) minmax(330px, .68fr);gap:clamp(34px, 5vw, 68px);}
.hg-genius__image{min-height:clamp(330px, 37vw, 500px);}
.hg-genius__content h2{font-size:clamp(2.15rem, 3.05vw, 3.25rem);}
.hg-genius__content p{font-size:.9rem;line-height:1.5;}
.hg-values{padding-block:clamp(42px, 4.2vw, 62px);}
.hg-values__intro{max-width:560px;margin:14px auto 0;color:var(--hg-muted);text-align:center;}
.hg-values__grid{margin-top:26px;}
.hg-values__grid article{padding-top:22px;}
.hg-land{padding-block:clamp(42px, 4.3vw, 64px);background:linear-gradient(135deg, #E7EEF8 0%, #E7EEF8 100%);}
.hg-land__inner{display:grid;grid-template-columns:minmax(0, 1fr) minmax(340px, .72fr);gap:clamp(42px, 7vw, 110px);align-items:center;}
.hg-land__copy p{max-width:650px;}
.hg-land__details{padding-left:clamp(28px, 4vw, 54px);border-left:1px solid rgba(23,52,82,.18);}
.hg-land__details ul{margin:0 0 24px;padding:0;list-style:none;}
.hg-land__details li{position:relative;padding:9px 0 9px 22px;border-bottom:1px solid rgba(23,52,82,.12);color:var(--hg-charcoal);font-size:.88rem;}
.hg-land__details li::before{content:"";position:absolute;left:0;top:16px;width:7px;height:7px;border-radius:50%;background:var(--hg-blue);}
@media  (max-width: 980px){
  
  .hg-land__inner{grid-template-columns:1fr;gap:28px;}
  .hg-land__details{padding-left:0;border-left:0;}
}
@media  (max-width: 782px){
  
  .hg-project-arrow--prev{left:4px;}
  .hg-project-arrow--next{right:4px;}
}
@media  (max-width: 620px){
  
  .hg-header__inner{min-height:62px;}
  .hg-stat{min-height:92px;}
}
.hg-header{position:absolute;inset:0 0 auto 0;width:100%;transform:translateY(0);opacity:1;visibility:visible;transition:background-color 220ms ease, box-shadow 220ms ease, color 220ms ease, padding 220ms ease;}
.hg-header.is-scrolled{position:fixed;top:0;left:0;right:0;width:100%;padding:3px 0;background:rgba(251,250,246,.97);color:var(--hg-charcoal);box-shadow:0 6px 24px rgba(20,31,24,.08);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);transform:translateY(0);opacity:1;visibility:visible;}
.hg-header.is-scrolled .hg-header__inner{min-height:66px;}

.hg-header.is-scrolled .hg-header__nav, .hg-header.is-scrolled .hg-header__nav a, .hg-header.is-scrolled .hg-header__language{color:var(--hg-charcoal);}
.hg-hero__content h1{letter-spacing:-.035em;word-spacing:0;}
.hg-kern-for{display:inline-block;margin-left:.055em;}
.hg-values{padding-top:clamp(28px, 2.7vw, 42px);}

@media  (max-width: 620px){
  .hg-header.is-scrolled .hg-header__inner{min-height:58px;}
  .hg-kern-for{margin-left:.04em;}
}
.hg-header[data-hg-header]{position:absolute !important;top:0;right:0;left:0;width:100%;z-index:9999;display:block !important;opacity:1 !important;visibility:visible !important;transform:none !important;pointer-events:auto;}
.hg-header[data-hg-header].is-scrolled{position:fixed !important;top:0;right:0;left:0;width:100%;display:block !important;opacity:1 !important;visibility:visible !important;transform:translate3d(0,0,0) !important;background:rgba(251,250,246,.985);color:var(--hg-charcoal);box-shadow:0 5px 22px rgba(20,31,24,.10);}
body.admin-bar .hg-header[data-hg-header].is-scrolled{top:32px !important;}

.hg-header[data-hg-header].is-scrolled .hg-header__nav, .hg-header[data-hg-header].is-scrolled .hg-header__nav a, .hg-header[data-hg-header].is-scrolled .hg-menu-item > a, .hg-header[data-hg-header].is-scrolled .hg-header__language{color:var(--hg-charcoal) !important;}
@media  (max-width: 782px){
  body.admin-bar .hg-header[data-hg-header].is-scrolled{top:46px !important;}
}
.hg-stats{margin-bottom:0 !important;}
.hg-presence{padding-block:clamp(58px, 5.8vw, 88px);background:#f2f0e9;overflow:hidden;}
.hg-presence__grid{display:grid;grid-template-columns:minmax(0,.82fr) minmax(380px,1.18fr);gap:clamp(42px, 7vw, 110px);align-items:center;}
.hg-presence__copy h2{max-width:590px;margin:10px 0 18px;font-size:clamp(2.45rem, 4.2vw, 4.7rem);line-height:.98;}
.hg-presence__copy > p:not(.hg-eyebrow):not(.hg-presence__quote){max-width:590px;color:var(--hg-muted);font-size:clamp(.98rem, 1.2vw, 1.13rem);line-height:1.65;}
.hg-presence__facts{display:grid;grid-template-columns:repeat(3, minmax(0,1fr));gap:0;margin:clamp(28px, 3vw, 42px) 0;border-top:1px solid rgba(23,52,82,.16);border-bottom:1px solid rgba(23,52,82,.16);}
.hg-presence__facts > div{padding:18px 16px 17px 0;}
.hg-presence__facts > div + div{padding-left:20px;border-left:1px solid rgba(23,52,82,.16);}
.hg-presence__facts strong{display:block;color:var(--hg-blue);font-family:var(--hg-serif);font-size:clamp(1.65rem, 2.2vw, 2.45rem);line-height:1;font-weight:500;}
.hg-presence__facts span{display:block;margin-top:7px;color:var(--hg-muted);font-size:.73rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;}
.hg-presence__quote{max-width:555px;margin:0;padding-left:18px;border-left:2px solid var(--hg-blue);color:var(--hg-charcoal);font-family:var(--hg-serif);font-size:clamp(1.08rem, 1.45vw, 1.4rem);line-height:1.4;}
.hg-presence__map{margin:0;min-height:520px;display:grid;place-items:center;border-left:1px solid rgba(23,52,82,.14);padding-left:clamp(30px, 5vw, 76px);}
.hg-presence__map img{display:block;width:min(100%, 570px);max-height:650px;object-fit:contain;}
@media  (max-width: 980px){
  .hg-presence__grid{grid-template-columns:1fr;gap:34px;}
  .hg-presence__map{min-height:0;border-left:0;padding-left:0;border-top:1px solid rgba(23,52,82,.14);padding-top:34px;}
  .hg-presence__map img{width:min(100%, 500px);}
}
@media  (max-width: 620px){
  .hg-presence{padding-block:48px;}
  .hg-presence__facts{grid-template-columns:1fr;}
  .hg-presence__facts > div{padding:14px 0;}
  .hg-presence__facts > div + div{padding-left:0;border-left:0;border-top:1px solid rgba(23,52,82,.12);}
}
.hg-header{padding:30px 0 20px;overflow:visible;}


.hg-header.is-scrolled{padding:10px 0;overflow:visible;}

.admin-bar .hg-header.is-scrolled{top:32px;}
@media  screen and (max-width: 782px){
  .admin-bar .hg-header.is-scrolled{top:46px;}
}
.hg-hero__content{transform:translateY(-26px) !important;}
.hg-hero__caption, .hg-hero__progress{transform:translateY(-12px);}
.hg-card-grid{gap:10px;border:0 !important;}
.hg-service-card{position:relative;min-height:190px !important;padding:24px 24px 25px !important;justify-content:flex-start !important;border:1px solid rgba(32,35,31,.14) !important;background:rgba(255,255,255,.55);transition:transform 220ms ease, border-color 220ms ease, background-color 220ms ease;}
.hg-service-card:hover{transform:translateY(-3px);border-color:rgba(23,52,82,.5) !important;background:rgba(255,255,255,.86);}
.hg-card-icon{width:31px;height:31px;margin-bottom:22px;}
.hg-service-card h3{font-size:clamp(1.42rem, 1.75vw, 1.9rem) !important;}
.hg-service-card p{margin:11px 0 0;font-size:.96rem !important;line-height:1.55 !important;color:var(--hg-muted);}
.hg-presence{padding-top:clamp(58px, 6vw, 88px) !important;padding-bottom:clamp(58px, 6vw, 88px) !important;}
.hg-presence__grid{grid-template-columns:minmax(0, .95fr) minmax(310px, .65fr) !important;gap:clamp(42px, 6vw, 90px) !important;align-items:center;}
.hg-presence__copy h2{max-width:650px;font-size:clamp(2.65rem, 4.35vw, 4.85rem) !important;}
.hg-presence__copy > p:not(.hg-eyebrow):not(.hg-presence__quote){max-width:620px;}
.hg-presence__map{max-width:410px;margin-inline:auto;}
.hg-presence__map img{width:100%;height:auto;}
.hg-presence__principles{display:grid;grid-template-columns:repeat(3, 1fr);gap:0;margin-top:34px;border-top:1px solid rgba(32,35,31,.15);border-bottom:1px solid rgba(32,35,31,.15);}
.hg-presence__principles > div{padding:24px 20px 24px 0;}
.hg-presence__principles > div + div{padding-left:20px;border-left:1px solid rgba(32,35,31,.15);}
.hg-presence__principles .hg-card-icon{width:26px;height:26px;margin:0 0 14px;}
.hg-presence__principles strong{display:block;font-family:var(--hg-serif);font-size:1.08rem;font-weight:400;}
.hg-presence__principles small{display:block;margin-top:8px;color:var(--hg-muted);font-size:.88rem;line-height:1.5;}
.hg-presence__quote{margin-top:26px !important;padding-left:20px !important;font-size:.98rem !important;line-height:1.55 !important;}
.hg-values{padding-top:30px !important;padding-bottom:clamp(56px, 6vw, 82px) !important;}
.hg-values .hg-section-heading{margin-bottom:24px !important;}
.hg-values .hg-section-heading h2{font-size:clamp(2.65rem, 4.2vw, 4.7rem) !important;}
.hg-values__grid{margin-top:28px !important;}
.hg-values__grid article{position:relative;padding-top:28px !important;}
.hg-value-icon{width:28px;height:28px;margin-bottom:16px;}
.hg-values__grid h3{font-size:clamp(1.35rem, 1.7vw, 1.8rem) !important;}
.hg-values__grid p{font-size:.94rem !important;line-height:1.55 !important;}
@media  (max-width: 980px){
  .hg-presence__grid{grid-template-columns:1fr !important;}
  .hg-presence__map{max-width:350px;}
  .hg-presence__principles{grid-template-columns:1fr;}
  .hg-presence__principles > div, .hg-presence__principles > div + div{padding:20px 0;border-left:0;border-top:1px solid rgba(32,35,31,.12);}
  .hg-presence__principles > div:first-child{border-top:0;}
}
@media  (max-width: 620px){
  
  
  .hg-hero__content{transform:none !important;}
}
.hg-hero__content h1{letter-spacing:-.018em !important;}
.hg-kern-for{display:inline-block !important;margin-left:.14em !important;}
.hg-genius__content p{max-width:620px;}
@media  (max-width: 620px){
  .hg-kern-for{margin-left:.11em !important;}
}
@media  (min-width: 981px){
  .hg-hero{height:clamp(560px, 67vh, 640px) !important;min-height:clamp(560px, 67vh, 640px) !important;}
  .hg-hero__inner{padding-top:112px !important;padding-bottom:54px !important;}
  .hg-hero__caption{bottom:34px !important;}
  .hg-hero__progress{bottom:38px !important;}
}
.hg-presence{padding-block:clamp(42px, 4.5vw, 64px) !important;}
.hg-presence__grid{grid-template-columns:minmax(0, 1fr) minmax(280px, .52fr) !important;gap:clamp(34px, 5vw, 72px) !important;}
.hg-presence__copy h2{max-width:580px !important;margin-bottom:14px !important;font-size:clamp(2.25rem, 3.55vw, 3.85rem) !important;line-height:1 !important;}
.hg-presence__copy > p:not(.hg-eyebrow):not(.hg-presence__quote){max-width:560px !important;font-size:clamp(.92rem, 1vw, 1.02rem) !important;line-height:1.58 !important;}
.hg-presence__map{min-height:380px !important;max-width:330px !important;padding-left:clamp(24px, 3vw, 48px) !important;}
.hg-presence__map img{width:100% !important;max-height:470px !important;}
.hg-presence__principles{margin-top:25px !important;}
.hg-presence__principles > div{padding-top:18px !important;padding-bottom:18px !important;}
.hg-presence__principles .hg-card-icon{width:23px !important;height:23px !important;margin-bottom:10px !important;}
.hg-presence__principles strong{font-size:1rem !important;}
.hg-presence__principles small{margin-top:6px !important;font-size:.75rem !important;}
.hg-presence__quote{margin-top:20px !important;font-size:.92rem !important;}
.hg-genius{padding-block:clamp(36px, 4vw, 54px) !important;}
.hg-genius__grid{grid-template-columns:minmax(0, 1.05fr) minmax(330px, .82fr) !important;gap:clamp(32px, 4.5vw, 64px) !important;}
.hg-genius__image{min-height:clamp(310px, 34vw, 440px) !important;}
.hg-genius__content{max-width:510px !important;}
.hg-genius__content h2{margin-bottom:16px !important;font-size:clamp(2.1rem, 3.15vw, 3.35rem) !important;line-height:1.02 !important;}
.hg-genius__content p{margin-top:10px !important;font-size:.9rem !important;line-height:1.5 !important;}
.hg-genius__content .hg-text-link{margin-top:12px !important;}
@media  (max-width: 980px){
  .hg-presence__grid, .hg-genius__grid{grid-template-columns:1fr !important;}
  .hg-presence__map{min-height:0 !important;max-width:300px !important;padding-left:0 !important;}
  .hg-genius__image{min-height:360px !important;}
}
@media  (max-width: 620px){
  .hg-presence, .hg-genius{padding-block:38px !important;}
  .hg-genius__image{min-height:300px !important;}
}
@media  (min-width: 981px){
  .hg-hero{min-height:clamp(560px, 68vh, 650px) !important;height:clamp(560px, 68vh, 650px) !important;}
  .hg-hero__inner{padding-top:112px !important;padding-bottom:48px !important;}
  .hg-hero__content{transform:translateY(-8px) !important;}
  .hg-hero__caption{bottom:26px !important;}
  .hg-hero__progress{bottom:30px !important;}
}
.hg-stats{background:#E7EEF8;border:0;padding:0;}
.hg-stats__grid{width:min(calc(100% - 64px), 1240px);margin-inline:auto;display:grid;grid-template-columns:repeat(4, minmax(0, 1fr));}
.hg-stat{min-height:98px;padding:18px 24px;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:17px;}
.hg-stat + .hg-stat{border-left:1px solid rgba(23,52,82, 0.12);}
.hg-stat__icon{width:42px;height:42px;flex:0 0 42px;display:flex;align-items:center;justify-content:center;color:var(--hg-blue);}
.hg-stat__icon svg{width:38px;height:38px;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.hg-stat__text{min-width:0;display:flex;flex-direction:column;justify-content:center;}
.hg-stat__text strong{display:block;margin:0 0 7px;color:var(--hg-blue);font-family:var(--hg-serif);font-size:clamp(2rem, 2.7vw, 3rem);font-weight:400;line-height:0.95;letter-spacing:-0.035em;}
.hg-stat__text > span{color:var(--hg-muted);font-size:0.73rem;font-weight:650;letter-spacing:0.105em;line-height:1.35;text-transform:uppercase;}
.hg-stat:last-child .hg-stat__text strong{font-size:clamp(1.65rem, 2.15vw, 2.45rem);}
@media  (max-width: 900px){
  .hg-stat{min-height:100px;}
  .hg-stat:nth-child(3){border-left:0;border-top:1px solid rgba(23,52,82, 0.12);}
  .hg-stat:nth-child(4){border-top:1px solid rgba(23,52,82, 0.12);}
}
@media  (max-width: 620px){
  .hg-stats__grid{width:100%;grid-template-columns:repeat(2, minmax(0, 1fr));}
  .hg-stat{min-height:94px;padding:16px 14px;gap:11px;}
  .hg-stat__icon{width:34px;height:34px;flex-basis:34px;}
  .hg-stat__icon svg{width:31px;height:31px;}
  .hg-stat__text strong{margin-bottom:5px;font-size:clamp(1.55rem, 7vw, 2.15rem);}
  .hg-stat:last-child .hg-stat__text strong{font-size:clamp(1.25rem, 5.3vw, 1.75rem);}
  .hg-stat__text > span{font-size:0.59rem;letter-spacing:0.08em;}
}
.hg-current{padding-top:52px;}
.hg-footer{background:#173452;color:#173452;margin-top:0;}
.hg-footer__grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:70px;padding:90px 0;}
.hg-footer h4{color:#fff;margin-bottom:18px;font-size:.9rem;letter-spacing:.08em;text-transform:uppercase;}
.hg-footer a{display:block;color:rgba(255,255,255,.75);text-decoration:none;margin-bottom:10px;transition:.2s;}
.hg-footer a:hover{color:white;}
.hg-footer__about p{max-width:340px;color:rgba(255,255,255,.75);line-height:1.8;margin-top:20px;}
.hg-footer__about img{width:180px;}
.hg-footer__bottom{border-top:1px solid rgba(255,255,255,.15);}
.hg-footer__bottom .hg-shell{display:flex;justify-content:space-between;align-items:center;padding:26px 0;}
.hg-footer__bottom div{display:flex;gap:28px;}
.hg-footer__bottom span{color:rgba(255,255,255,.65);font-size:.85rem;}
.hg-footer{margin:0;background:#173452;color:#f7f5ef;}
.hg-footer__grid{display:grid;grid-template-columns:minmax(280px, 2fr) repeat(3, minmax(140px, 1fr));gap:clamp(36px, 5vw, 76px);padding:72px 0 64px;}
.hg-footer__about img{width:180px;max-width:100%;margin-bottom:24px;}
.hg-footer__about p{max-width:360px;margin:0;color:rgba(255, 255, 255, 0.76);font-size:0.96rem;line-height:1.7;}
.hg-footer h4{margin:0 0 20px;color:#fff;font-size:0.72rem;font-weight:700;letter-spacing:0.14em;text-transform:uppercase;}
.hg-footer__column a, .hg-footer__legal a{color:rgba(255, 255, 255, 0.74);text-decoration:none;transition:color 180ms ease;}
.hg-footer__column a{display:block;margin-bottom:12px;font-size:0.92rem;line-height:1.45;}
.hg-footer a:hover, .hg-footer a:focus-visible{color:#fff;}
.hg-footer__bottom{border-top:1px solid rgba(255, 255, 255, 0.16);}
.hg-footer__bottom .hg-shell{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:24px 0;}
.hg-footer__bottom span{color:rgba(255, 255, 255, 0.62);font-size:0.8rem;}
.hg-footer__legal{display:flex;gap:26px;}
.hg-footer__legal a{font-size:0.8rem;}
footer.wp-block-template-part, .wp-site-blocks > footer:not(.hg-footer){display:none !important;}
@media  (max-width: 900px){
  .hg-footer__grid{grid-template-columns:repeat(2, minmax(0, 1fr));}
}
@media  (max-width: 620px){
  .hg-footer__grid{grid-template-columns:1fr;gap:34px;padding:52px 0 46px;}
  .hg-footer__bottom .hg-shell{align-items:flex-start;flex-direction:column;}
  .hg-footer__legal{flex-wrap:wrap;gap:14px 24px;}
}
@media  (min-width: 783px){
  .hg-hero{width:100vw;height:82vh !important;min-height:82vh !important;margin:0 !important;margin-left:calc(50% - 50vw) !important;}
  .hg-hero__inner{min-height:82vh !important;}
}
.hg-stats{position:relative;z-index:10;width:100vw;margin:0 0 0 calc(50% - 50vw) !important;padding:0 !important;background:var(--hg-blue) !important;border:0 !important;}
.hg-stats__grid{width:min(calc(100% - 64px), 1240px);margin-inline:auto;display:grid;grid-template-columns:repeat(4, minmax(0, 1fr));background:transparent !important;box-shadow:none !important;}
.hg-stat{min-height:118px !important;padding:20px 26px !important;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:17px;color:var(--hg-light-blue);}
.hg-stat + .hg-stat{border-left:1px solid rgba(255, 255, 255, 0.20) !important;}
.hg-stat__icon{width:42px;height:42px;flex:0 0 42px;display:inline-flex;align-items:center;justify-content:center;color:var(--hg-light-blue) !important;}
.hg-stat__icon svg, .hg-stat svg{width:38px;height:38px;display:block;color:var(--hg-light-blue) !important;fill:none !important;stroke:currentColor !important;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.hg-stat strong, .hg-stat__text strong{display:block;margin:0 0 7px;color:var(--hg-light-blue) !important;font-family:var(--hg-serif);font-size:clamp(2rem, 2.7vw, 3rem);font-weight:400;line-height:.95;letter-spacing:-.035em;}
.hg-stat span, .hg-stat__text > span{color:var(--hg-light-blue) !important;font-size:.73rem;font-weight:650;letter-spacing:.105em;line-height:1.35;text-transform:uppercase;}
@media  (max-width: 900px){
  .hg-stats__grid{width:calc(100% - 40px);grid-template-columns:repeat(2, minmax(0, 1fr));}
  .hg-stat{min-height:104px !important;}
  .hg-stat:nth-child(3){border-left:0 !important;border-top:1px solid rgba(255, 255, 255, 0.20);}
  .hg-stat:nth-child(4){border-top:1px solid rgba(255, 255, 255, 0.20);}
}
@media  (max-width: 782px){
  .hg-hero, .hg-hero__inner{min-height:720px !important;}
}
@media  (max-width: 620px){
  .hg-hero, .hg-hero__inner{min-height:680px !important;}
  .hg-stat{min-height:96px !important;padding:16px 14px !important;gap:11px;}
  .hg-stat__icon svg, .hg-stat svg{width:31px;height:31px;}
  .hg-stat strong, .hg-stat__text strong{margin-bottom:5px;font-size:clamp(1.55rem, 7vw, 2.15rem);}
  .hg-stat span, .hg-stat__text > span{font-size:.59rem;letter-spacing:.08em;}
}
.hg-header:not(.is-scrolled) .hg-header__nav a, .hg-header:not(.is-scrolled) .hg-header__language{color:#fff;}
.hg-header.is-scrolled .hg-header__nav a, .hg-header.is-scrolled .hg-header__language{color:#1b1b1b;}
.hg-footer p, .hg-footer a, .hg-footer span{color:rgba(255, 255, 255, 0.78);}
.hg-footer h4{color:#fff;}
.hg-footer a:hover{color:#fff;}
.hg-hero__content{max-width:820px !important;}
.hg-hero h1{max-width:820px !important;}
.hg-current__heading{grid-template-columns:minmax(0, 1fr) auto !important;align-items:end !important;}
.hg-current__heading > div:last-child{width:max-content !important;max-width:none !important;margin:0 !important;padding:0 !important;justify-self:end !important;}
.hg-current__heading > div:last-child p{width:max-content !important;max-width:none !important;margin:0 0 18px !important;white-space:nowrap !important;}
.hg-current__heading > div:last-child .hg-text-link{margin:0 !important;}
@media  (max-width: 980px){
  .hg-current__heading{grid-template-columns:1fr !important;}
  .hg-current__heading > div:last-child{width:100% !important;justify-self:start !important;}
  .hg-current__heading > div:last-child p{width:auto !important;white-space:normal !important;}
}
.hg-presence__quote{max-width:900px;}
.hg-hero__lead{max-width:640px;margin:34px 0 14px;font-family:Georgia,"Times New Roman",serif;font-size:clamp(1.2rem,1.45vw,1.45rem);line-height:1.7;color:rgba(255,255,255,.94);}
.hg-hero__sublead{max-width:620px;margin:0 0 36px;font-size:1rem;line-height:1.75;color:rgba(255,255,255,.82);}
.hg-hero__kicker{letter-spacing:.22em;text-transform:uppercase;font-size:.8rem;margin-bottom:22px;}
.hg-hero h1{max-width:900px;font-size:clamp(4.2rem,8vw,6.8rem);line-height:.95;}
.hg-hero__lead{max-width:620px;margin:32px 0 0;font-family:inherit;font-size:1.15rem;font-weight:400;line-height:1.9;color:rgba(255,255,255,.90);}
.hg-hero__sublead{max-width:620px;margin:18px 0 36px;font-family:inherit;font-size:1rem;font-weight:400;line-height:1.9;color:rgba(255,255,255,.78);}

.hg-hero__content{transform:translateY(-24px);}
.hg-hero__kicker{margin-bottom:20px;font-size:.82rem;letter-spacing:.22em;text-transform:uppercase;}
.hg-hero h1{max-width:900px;font-size:clamp(3.9rem, 6vw, 6rem);line-height:.95;margin-bottom:30px;}
.hg-hero__lead{max-width:620px;margin:0 0 20px;font-size:1.05rem;font-weight:400;line-height:1.95;color:rgba(255,255,255,.90);}
.hg-hero__sublead{max-width:620px;margin:0 0 38px;font-size:1rem;font-weight:400;line-height:1.95;color:rgba(255,255,255,.78);}
.hg-button--light{padding:16px 34px;letter-spacing:.12em;}
.hg-header__nav > a, .hg-header__nav .hg-menu-item > a, .hg-header__language{font-size:0.75rem;letter-spacing:.07em;}
.hg-hero__kicker{margin:0 0 24px;font-size:.82rem;line-height:1;letter-spacing:.22em;text-transform:uppercase;}
.hg-hero h1{max-width:760px;margin:0 0 34px;font-size:clamp(3.2rem, 5vw, 5rem);line-height:.96;}
.hg-hero__lead{max-width:660px;margin:0 0 24px;font-family:inherit;font-size:1rem;font-weight:400;line-height:1.8;color:rgba(255,255,255,.92);}
.hg-hero__sublead{max-width:660px;margin:0 0 34px;font-family:inherit;font-size:1rem;font-weight:400;line-height:1.8;color:rgba(255,255,255,.82);}
.hg-button--light{min-width:320px;padding:15px 26px;background:#fff;border:1px solid #fff;color:#173452;letter-spacing:.11em;}
.hg-button--light span{color:inherit;}
.hg-button--light:hover{background:#173452;border-color:#173452;color:#fff;}
@media  (max-width: 782px){
  
  .hg-hero__content{max-width:100%;}
  .hg-hero h1{max-width:100%;font-size:clamp(2.8rem, 13vw, 4.3rem);margin-bottom:26px;}
  .hg-hero__lead, .hg-hero__sublead{max-width:100%;font-size:.98rem;line-height:1.7;}
  .hg-button--light{min-width:0;width:100%;}
}
.hg-button--light{width:auto;min-width:0;padding:15px 28px;background:#fff;color:#173452;border:1px solid #fff;}
.hg-button--light, .hg-button--light span{color:#173452 !important;}
.hg-button--light:hover, .hg-button--light:hover span{color:#fff !important;}
.hg-hero__progress{display:flex;gap:12px;z-index:5;}
.hg-hero__progress span, .hg-hero__progress button{display:block;width:40px;height:18px;padding:0;border:0;position:relative;background:transparent;cursor:pointer;}
.hg-hero__progress span{width:42px;height:2px;background:rgba(255,255,255,.35);cursor:pointer;transition:all .3s ease;}
.hg-hero__progress span:hover{background:rgba(255,255,255,.65);}
.hg-hero__progress span.is-active{background:#fff;}
.hg-presence__grid{grid-template-columns:minmax(0, 1.55fr) minmax(360px, .75fr);column-gap:72px;align-items:center;}
.hg-presence__copy h2{max-width:760px;line-height:1.02;}
.hg-presence__copy > p:not(.hg-eyebrow):not(.hg-presence__quote){max-width:690px;margin-bottom:28px;font-size:1.05rem;line-height:1.65;}
.hg-presence__principles{margin-top:26px;}
.hg-presence__principles > div{padding:28px 26px 26px;}
.hg-presence__principles .hg-card-icon{display:block;margin-bottom:16px;}
.hg-presence__principles .hg-card-icon svg{width:29px;height:29px;}
.hg-presence__principles strong{display:block;margin-bottom:10px;font-size:1.12rem;line-height:1.25;}
.hg-presence__principles small{display:block;font-size:.96rem;line-height:1.55;text-align:justify;text-align-last:left;hyphens:auto;}
.hg-presence__quote{max-width:760px;margin-top:22px;padding:5px 0 5px 24px;border-left:2px solid var(--hg-blue);font-family:Georgia, "Times New Roman", serif;font-size:1.12rem;font-style:italic;line-height:1.55;text-align:justify;text-align-last:left;hyphens:auto;}
.hg-presence__map{padding-left:52px;border-left:1px solid rgba(32,35,31,.10);}
.hg-presence__map img{display:block;width:100%;max-width:430px;margin:0 auto;transform:scale(1.12);transform-origin:center;}
@media  (max-width:1100px){
  .hg-presence__grid{grid-template-columns:minmax(0, 1.4fr) minmax(300px, .7fr);column-gap:42px;}
  .hg-presence__map{padding-left:32px;}
  .hg-presence__map img{transform:scale(1.05);}
}
@media  (max-width:1100px) and (min-width:821px){
    .hg-about-timeline{
        grid-template-columns:repeat(3,minmax(0,1fr));
        gap:30px 24px;
    }

    .hg-about-timeline::before{
        display:none;
    }

    .hg-about-timeline article,
    .hg-about-timeline article + article{
        padding-left:0;
        padding-right:18px;
    }
}

@media  (max-width:820px){
  .hg-presence__grid{grid-template-columns:1fr;row-gap:48px;}
  .hg-presence__principles{grid-template-columns:1fr;}
  .hg-presence__principles > div{padding:24px 0;}
  .hg-presence__map{padding:40px 0 0;border-left:0;border-top:1px solid rgba(32,35,31,.10);}
  .hg-presence__map img{max-width:360px;transform:none;}
}
.hg-presence__map{transform:translateX(-24px);}
.hg-presence__principles > div{min-height:175px;padding-top:30px;padding-bottom:30px;}
.hg-presence__quote{color:rgba(32,35,31,.82);font-size:1.08rem;font-weight:400;line-height:1.6;}
@media  (max-width:1100px){
  .hg-presence__map{transform:none;}
}
.hg-values{padding-top:88px;padding-bottom:92px;}
.hg-values .hg-section-heading{max-width:900px;margin:0 auto 42px;}
.hg-values .hg-section-heading h2{font-size:clamp(3.2rem, 5vw, 5.15rem);line-height:.98;margin-bottom:18px;}
.hg-values__intro{max-width:760px;margin:0 auto;font-size:1.08rem;line-height:1.55;}
.hg-values__grid{border-top:1px solid rgba(32,35,31,.15);}
.hg-values__grid article{min-height:280px;padding:34px 48px 38px;}
.hg-values__grid article:first-child{padding-left:0;padding-right:54px;}
.hg-values__grid article:last-child{padding-right:0;padding-left:54px;}
.hg-value-icon{display:block;margin-bottom:16px;}
.hg-value-icon svg{width:31px;height:31px;}
.hg-values__grid h3{margin:0 0 16px;font-size:1.7rem;line-height:1.15;}
.hg-values__grid p{max-width:470px;margin:0;font-size:1.03rem;line-height:1.55;color:var(--hg-muted);}
@media  (max-width:820px){
  .hg-values{padding-top:68px;padding-bottom:68px;}
  .hg-values .hg-section-heading{margin-bottom:34px;}
  .hg-values__grid article, .hg-values__grid article:first-child, .hg-values__grid article:last-child{min-height:0;padding:28px 0;}
}
.hg-values .hg-section-heading{max-width:1100px;margin:0 auto 34px;}
.hg-values .hg-section-heading h2{max-width:none;width:100%;font-size:clamp(3.4rem,5vw,5.3rem);line-height:.95;letter-spacing:-.02em;}
.hg-values__intro{max-width:860px;margin:18px auto 0;font-size:1.08rem;line-height:1.6;}
.hg-values{padding-top:88px;padding-bottom:56px;}
.hg-values__grid article{padding-bottom:22px;min-height:240px;}
.hg-values{padding-bottom:40px;}
.hg-values__grid article{min-height:auto;padding-bottom:8px;}
.hg-values__grid{border-top:1px solid rgba(32,35,31,.18);}
.hg-values{padding-bottom:26px !important;}
.hg-values__grid article{min-height:auto !important;padding-bottom:0 !important;}
.hg-land{padding-top:64px;padding-bottom:64px;}
.hg-land h2{margin-bottom:18px;}
.hg-land__content{gap:52px;}
.hg-land__actions{margin-top:28px;}
.hg-land .hg-button{padding:18px 34px;}
.hg-land{min-height:0 !important;padding:40px 0 34px !important;}
.hg-land__inner{min-height:0 !important;align-items:start !important;}
.hg-land__copy{align-self:start;}
.hg-land__copy .hg-eyebrow{margin-bottom:8px;}
.hg-land__copy h2{margin:0 0 14px;}
.hg-land__copy p{margin-bottom:0;}
.hg-land__details{align-self:start;}
.hg-land__details ul{margin-top:0;margin-bottom:20px;}
.hg-land__details .hg-button{margin-top:0;}
.hg-footer{padding-top:58px;}
.hg-footer__about img{width:220px;max-width:100%;}
.hg-footer__about p{max-width:360px;margin-top:24px;line-height:1.65;}
.hg-footer__column h4{margin-bottom:20px;}
.hg-footer__column a{color:rgba(255,255,255,.82);line-height:1.55;}
.hg-footer__column a:hover{color:#fff;}
.hg-footer__bottom{margin-top:46px;}
.hg-footer{padding-top:0 !important;}
.hg-footer__grid{padding-top:54px !important;padding-bottom:46px !important;align-items:start;}
.hg-footer__about img{width:205px !important;max-width:100%;}
.hg-footer__about p{max-width:350px;margin:22px 0 0 !important;line-height:1.6;}
.hg-footer__column h4{margin:0 0 20px !important;}
.hg-footer__column a{color:rgba(255,255,255,.82);line-height:1.5;}
.hg-footer__column{gap:12px;}
.hg-footer__bottom{margin-top:0 !important;}
.hg-footer__bottom .hg-shell{padding-top:24px !important;padding-bottom:24px !important;}
.hg-hero h1{margin-bottom:38px;}
.hg-hero__lead{margin-bottom:16px;}
.hg-hero__lead br + br{display:block;content:"";margin-top:12px;}
.hg-button--light{min-width:0 !important;width:auto !important;padding:14px 26px !important;font-size:.78rem;}
.hg-hero__caption{bottom:38px;}
.hg-hero__project{font-size:.82rem;letter-spacing:.12em;}
.hg-hero__progress span{width:42px;height:2px;background:rgba(255,255,255,.32);transition:background .25s ease, opacity .25s ease;}
.hg-stat:last-child strong{font-size:2rem;}
.hg-footer__main{display:grid;grid-template-columns:minmax(260px, 1.15fr) minmax(560px, 1.85fr);gap:clamp(70px, 8vw, 130px);padding-top:48px;padding-bottom:46px;}
.hg-footer__brand{max-width:360px;}
.hg-footer__logo-link{display:inline-block;margin-bottom:16px;}
.hg-footer__logo{display:block;width:185px;height:auto;}
.hg-footer__statement{max-width:485px;margin:0;font-size:15px;line-height:1.8;font-weight:400;color:rgba(255, 255, 255, 0.82);}
.hg-footer__established{margin:14px 0 0;font-size:10px;line-height:1.5;font-weight:500;letter-spacing:0.18em;text-transform:uppercase;color:rgba(255, 255, 255, 0.38);}
.hg-footer__navigation{display:grid;grid-template-columns:repeat(3, minmax(130px, 1fr));gap:clamp(28px, 3vw, 48px);padding-top:8px;}
.hg-footer__column h4{margin:0 0 24px;font-size:12px;line-height:1.2;font-weight:700;letter-spacing:0.14em;text-transform:uppercase;color:#ffffff;}
.hg-footer__column nav, .hg-footer__contact-links{display:flex;flex-direction:column;align-items:flex-start;gap:12px;}
.hg-footer__column a{display:inline-flex;align-items:center;gap:6px;font-size:16px;line-height:1.45;font-weight:400;text-decoration:none;color:rgba(255, 255, 255, 0.78);transition:color 180ms ease;}
.hg-footer__column a:hover, .hg-footer__column a:focus-visible{color:#ffffff;}
.hg-footer__contact-links a span{font-size:11px;opacity:0.6;}
.hg-footer__location{margin:26px 0 0;font-size:14px;line-height:1.55;color:rgba(255, 255, 255, 0.52);}
.hg-footer__bottom{border-top:1px solid rgba(255, 255, 255, 0.14);}
.hg-footer__bottom-inner{display:flex;align-items:center;justify-content:space-between;min-height:58px;gap:30px;}
.hg-footer__copyright, .hg-footer__legal a, .hg-footer__legal span{font-size:13px;line-height:1.5;color:rgba(255, 255, 255, 0.62);}
.hg-footer__legal{display:flex;align-items:center;gap:12px;}
.hg-footer__legal a{text-decoration:none;}
.hg-footer__legal a:hover, .hg-footer__legal a:focus-visible{color:#ffffff;}
@media  (max-width: 1000px){
  .hg-footer__main{grid-template-columns:1fr;gap:52px;}
  .hg-footer__navigation{max-width:760px;}
}
@media  (max-width: 700px){
  .hg-footer__main{padding-top:52px;padding-bottom:50px;}
  .hg-footer__logo{width:205px;}
  .hg-footer__navigation{grid-template-columns:1fr 1fr;gap:42px 30px;}
  .hg-footer__column--contact{grid-column:1 / -1;}
  .hg-footer__bottom-inner{align-items:flex-start;flex-direction:column;justify-content:center;min-height:auto;padding-top:24px;padding-bottom:20px;gap:10px;}
}
@media  (max-width: 440px){
  .hg-footer__navigation{grid-template-columns:1fr;gap:34px;}
  .hg-footer__column--contact{grid-column:auto;}
}
.hg-hero{height:clamp(640px, 79svh, 854px);min-height:640px;}
.hg-hero__inner{min-height:100%;padding-top:145px;padding-bottom:62px;}
.hg-hero__content{width:100%;max-width:700px;transform:translateY(-26px);}
.hg-hero__kicker{margin:0 0 18px;}
.hg-hero h1, #hg-hero-title{width:auto;max-width:650px;margin:0 0 18px;font-family:var(--hg-serif);font-size:clamp(3.55rem, 4.65vw, 4.75rem);font-weight:400;line-height:.96;letter-spacing:-.038em;}
.hg-hero__lead{width:660px;max-width:660px;margin:0;font-family:var(--hg-serif);font-size:clamp(1.13rem, 1.22vw, 1.26rem);font-weight:400;line-height:1.46;letter-spacing:-.012em;color:rgba(255,255,255,.95);text-wrap:normal;}
.hg-hero__content > .hg-button, .hg-hero__content .hg-button{width:auto;min-height:0;margin-top:28px;padding:15px 30px;font-family:var(--hg-sans);font-size:.72rem;line-height:1;letter-spacing:.12em;}
.hg-hero__caption{bottom:34px;}
.hg-hero__progress{bottom:38px;}
.hg-stats{padding:0;background:var(--hg-blue);border:0;}
.hg-stats__grid{width:100%;max-width:none;margin:0;background:var(--hg-blue);}
.hg-stat{min-height:112px;padding:20px 28px 18px;background:var(--hg-blue);}
.hg-stat + .hg-stat{border-left-color:rgba(255,255,255,.18);}
.hg-stat strong{margin-bottom:5px;color:rgba(255,255,255,.96);font-size:clamp(1.75rem, 2.35vw, 2.65rem);line-height:1;}
.hg-stat span{color:rgba(255,255,255,.9);font-size:.68rem;line-height:1.3;letter-spacing:.11em;}
@media  (max-width: 900px){
  .hg-hero{height:auto;min-height:662px;}
  .hg-hero__inner{min-height:662px;padding-top:125px;padding-bottom:76px;}
  .hg-hero__content{max-width:640px;transform:none;}
  .hg-hero h1, #hg-hero-title{max-width:100%;font-size:clamp(3rem, 7.5vw, 4.2rem);}
  .hg-hero__lead{width:100%;max-width:620px;font-size:1.12rem;line-height:1.48;}
}
@media  (max-width: 620px){
  .hg-hero{min-height:624px;}
  .hg-hero__inner{min-height:624px;padding-top:120px;padding-bottom:72px;}
  .hg-hero__kicker{margin-bottom:14px;}
  .hg-hero h1, #hg-hero-title{font-size:clamp(2.7rem, 12vw, 3.7rem);margin-bottom:16px;}
  .hg-hero__lead{width:100%;max-width:100%;font-size:1rem;line-height:1.5;letter-spacing:-.006em;}
  .hg-hero__content > .hg-button, .hg-hero__content .hg-button{margin-top:24px;padding:14px 22px;}
  .hg-stat{min-height:100px;padding:16px 18px;}
}

/* =========================================================
   UTMÄRKELSER — CLEAN CANONICAL VERSION
   ========================================================= */
.hg-awards{
  background:var(--hg-warm-white)!important;
  padding:26px 0 24px!important;
}
.hg-awards>.hg-shell{
  display:grid!important;
  grid-template-columns:minmax(300px,.82fr) minmax(0,3.18fr)!important;
  column-gap:18px!important;
  align-items:start!important;
}
.hg-awards .hg-section-heading{
  max-width:390px!important;
  margin:0!important;
  padding-top:3px!important;
}
.hg-awards .hg-section-heading .hg-eyebrow{
  margin:0 0 12px!important;
}
.hg-awards .hg-section-heading h2{
  margin:0 0 8px!important;
  font-size:clamp(2rem,2.7vw,3.15rem)!important;
  line-height:1.02!important;
}
.hg-awards .hg-section-heading>p:last-child{
  max-width:355px!important;
  margin:0!important;
  font-size:clamp(.84rem,.95vw,.98rem)!important;
  line-height:1.5!important;
}
.hg-awards__grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:0!important;
  margin:0!important;
  align-items:stretch!important;
}
.hg-award{
  min-height:0!important;
  padding:3px 20px 3px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  transform:none!important;
}
.hg-award:first-child{padding-left:10px!important;}
.hg-award+.hg-award{border-left:1px solid rgba(32,35,31,.14)!important;}
.hg-award::before{display:none!important;}
.hg-award:hover{transform:none!important;}
.hg-award__top{
  display:flex!important;
  align-items:flex-start!important;
  gap:12px!important;
  margin:0 0 8px!important;
}
.hg-award__icon{
  width:30px!important;
  height:30px!important;
  flex:0 0 30px!important;
  margin:0!important;
  color:var(--hg-blue)!important;
}
.hg-award__icon svg{
  width:28px!important;
  height:28px!important;
  stroke-width:1.35!important;
}
.hg-award__type{
  display:block!important;
  margin:0!important;
  font-size:clamp(.62rem,.66vw,.72rem)!important;
  line-height:1.2!important;
  letter-spacing:.13em!important;
}
.hg-award h3{
  margin:0 0 6px!important;
  font-size:clamp(1.02rem,1.15vw,1.3rem)!important;
  line-height:1.1!important;
}
.hg-award p{
  margin:0!important;
  font-size:clamp(.75rem,.78vw,.85rem)!important;
  line-height:1.45!important;
}

/* =========================================================
   HEM GENOM LIVET — CLEAN CANONICAL VERSION
   ========================================================= */
.hg-lifestages,
.hg-lifestages--timeline{
  background:var(--hg-stone)!important;
  padding:34px 0 26px!important;
}
.hg-lifestages .hg-shell{max-width:1240px!important;}
.hg-lifestages .hg-eyebrow{
  margin:0 0 22px!important;
  font-size:.88rem!important;
}
.hg-life-timeline{
  display:grid!important;
  grid-template-columns:auto minmax(28px,1fr) auto minmax(28px,1fr) auto minmax(28px,1fr) auto minmax(28px,1fr) auto minmax(28px,1fr) auto!important;
  align-items:center!important;
  width:100%!important;
  gap:clamp(10px,1.2vw,18px)!important;
  margin:0!important;
  padding:0!important;
}
.hg-life-stage{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-start!important;
  min-width:94px!important;
  gap:6px!important;
  text-align:center!important;
}
.hg-life-stage__icon{
  width:50px!important;
  height:50px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  margin:0 auto 8px!important;
}
.hg-life-stage__icon svg{
  width:40px!important;
  height:40px!important;
}
.hg-life-stage__icon svg *,
.hg-life-stage__icon path,
.hg-life-stage__icon circle,
.hg-life-stage__icon rect,
.hg-life-stage__icon line,
.hg-life-stage__icon polyline{
  stroke-width:1.2!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}
.hg-life-timeline__line{
  height:1px!important;
  min-width:44px!important;
  background:rgba(23,52,82,.20)!important;
}
.hg-life-stage__label{
  margin-top:4px!important;
  font-size:.96rem!important;
  line-height:1.2!important;
}
.hg-life-timeline__caption{
  max-width:680px!important;
  margin:20px auto 0!important;
  padding:0!important;
  text-align:center!important;
  font-family:var(--hg-serif)!important;
  font-size:.96rem!important;
  line-height:1.4!important;
  color:var(--hg-muted)!important;
}
.hg-life-timeline__caption p{margin:0!important;}

/* Nästa sektion: lite närmare och "Aktuellt just nu" lite mindre */
.hg-current{padding-top:38px!important;}
.hg-current .hg-eyebrow{font-size:.82rem!important;margin-bottom:10px!important;}

@media  (max-width:1100px){
  .hg-awards>.hg-shell{
    grid-template-columns:1fr!important;
    row-gap:24px!important;
  }
  .hg-awards .hg-section-heading{max-width:650px!important;}
  .hg-awards__grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .hg-award:nth-child(3){
    border-left:0!important;
    border-top:1px solid rgba(32,35,31,.14)!important;
    padding-top:20px!important;
    margin-top:16px!important;
  }
  .hg-award:nth-child(4){
    border-top:1px solid rgba(32,35,31,.14)!important;
    padding-top:20px!important;
    margin-top:16px!important;
  }
  .hg-life-timeline{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:26px 18px!important;
  }
  .hg-life-timeline__line{display:none!important;}
  .hg-life-stage{min-width:0!important;}
}
@media  (max-width:620px){
  .hg-awards{padding:24px 0 20px!important;}
  .hg-awards__grid{grid-template-columns:1fr!important;}
  .hg-award,
  .hg-award+.hg-award,
  .hg-award:nth-child(3),
  .hg-award:nth-child(4){
    border-left:0!important;
    border-top:1px solid rgba(32,35,31,.14)!important;
    padding:18px 0 0!important;
    margin-top:16px!important;
  }
  .hg-award:first-child{
    border-top:0!important;
    padding-top:0!important;
    margin-top:0!important;
  }
  .hg-lifestages,
  .hg-lifestages--timeline{padding:30px 0 22px!important;}
  .hg-life-timeline{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:24px 16px!important;
  }
  .hg-life-timeline__caption{margin-top:18px!important;font-size:.92rem!important;}
}


/* =========================================================
   FINAL TWEAKS – compact scrolled header + transparent hero CTA
   ========================================================= */

/* 1) Scroll-header: keep logo/nav exactly the same size,
      only reduce the excess white vertical padding. */
@media  (min-width: 981px) {
  .hg-header.is-scrolled,
  .hg-header[data-hg-header].is-scrolled {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
  }

  /* Keep the existing logo size from the working version */
  

  

  /* Do not shrink or otherwise alter the navigation */
  .hg-header.is-scrolled .hg-header__nav {
    margin: 0 !important;
  }
}

/* 2) Hero button: transparent by default, white border/text */
.hg-hero .hg-button--light,
.hg-hero__content .hg-button--light {
  background: transparent !important;
  border: 1px solid rgba(255,255,255,.95) !important;
  color: #fff !important;
}

.hg-hero .hg-button--light span,
.hg-hero__content .hg-button--light span {
  color: #fff !important;
}

/* Hover/focus: green fill, white text stays visible */
.hg-hero .hg-button--light:hover,
.hg-hero .hg-button--light:focus-visible,
.hg-hero__content .hg-button--light:hover,
.hg-hero__content .hg-button--light:focus-visible {
  background: #173452 !important;
  border-color: #173452 !important;
  color: #fff !important;
}

.hg-hero .hg-button--light:hover span,
.hg-hero .hg-button--light:focus-visible span,
.hg-hero__content .hg-button--light:hover span,
.hg-hero__content .hg-button--light:focus-visible span {
  color: #fff !important;
}
/* =========================================
   HERO BUTTON – FINAL FIX
   ========================================= */

/* Normal: transparent + vit ram + vit text */
.hg-hero a.hg-button,
.hg-hero a.hg-button--light,
.hg-hero .hg-button,
.hg-hero .hg-button--light {
    background: transparent !important;
    background-color: transparent !important;
    border: 2px solid #ffffff !important;
    color: #ffffff !important;
}

/* Säkerställ att text/span också är vit */
.hg-hero a.hg-button *,
.hg-hero a.hg-button--light *,
.hg-hero .hg-button *,
.hg-hero .hg-button--light * {
    color: #ffffff !important;
}

/* Hover: vit knapp + mörkgrön text */
.hg-hero a.hg-button:hover,
.hg-hero a.hg-button--light:hover,
.hg-hero .hg-button:hover,
.hg-hero .hg-button--light:hover {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-color: #ffffff !important;
    color: #173452 !important;
}

/* Hover-texten måste bli grön */
.hg-hero a.hg-button:hover *,
.hg-hero a.hg-button--light:hover *,
.hg-hero .hg-button:hover *,
.hg-hero .hg-button--light:hover * {
    color: #173452 !important;
}
.hg-registered {
    font-family: Arial, sans-serif;
    font-size: 0.25em;
    font-weight: 400;
    vertical-align: super;
    margin-left: 4px;
    line-height: 0;
}
/* Registered mark efter "Passion för perfektion." */
.hg-values h2::after {
    content: "®";
    display: inline-block;
    font-family: Arial, sans-serif;
    font-size: 0.22em;
    font-weight: 400;
    line-height: 1;
    margin-left: 5px;
    vertical-align: top;
    transform: translateY(0.15em);
}
/* =========================================
   AWARDS – centrera ikon + övre titel
   ========================================= */

.hg-award__top {
    display: flex !important;
    align-items: center !important;
    gap: 18px !important;
}

/* Ikonen ska inte påverka centreringen */
.hg-award__icon {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Centrera titelns textrad mot ikonen */
.hg-award__label {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.25 !important;
}
/* =========================================
   AWARDS – centrera ikon + titel
   ========================================= */

.hg-award__top {
    display: flex !important;
    align-items: center !important;
    gap: 18px !important;
}

.hg-award__icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    line-height: 1 !important;
}

.hg-award__icon svg {
    display: block !important;
}

.hg-award__type {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}
/* AWARDS – optisk centrering av text bredvid ikon */
.hg-awards .hg-award__top {
    align-items: flex-start !important;
}

.hg-awards .hg-award__type {
    position: relative !important;
    top: 6px !important;
}
/* =========================================================
   SKANDINAVISK KVALITET
   ========================================================= */

.hg-quality {
    background: #f8f6f0;
    padding: 72px 0 70px;
}

.hg-quality .hg-shell {
    width: calc(100% - 72px);
    max-width: 1460px;
    margin: 0 auto;
}


/* RUBRIK */

.hg-quality__heading {
    max-width: 760px;
    margin: 0 auto 48px;
    text-align: center;
}

.hg-quality__heading .hg-eyebrow {
    margin: 0 0 14px;
    color: #173452;
    font-size: 13px;
    line-height: 1.2;
    letter-spacing: .20em;
    text-transform: uppercase;
}

.hg-quality__heading h2 {
    margin: 0 0 18px;
    color: #20231f;

    font-family: var(--hg-serif);
    font-size: clamp(48px, 4vw, 66px);
    font-weight: 400;
    line-height: .98;
    letter-spacing: -.035em;
}

.hg-quality__heading > p:not(.hg-eyebrow) {
    max-width: 700px;
    margin: 0 auto;

    color: #666a64;
    font-size: 16px;
    line-height: 1.6;
}


/* FYRA KOLUMNER */

.hg-quality__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 36px;
}


/* BILD */

.hg-quality__image {
    width: 100%;
    aspect-ratio: 1.08 / 1;
    margin: 0 0 24px;

    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    overflow: hidden;
}


/*
   Tillfälliga bilder från er nuvarande sajt.
   Vi kan sedan byta till de fyra perfekta bilderna.
*/

.hg-quality__image--design {
    background-image:
        url("https://hemgarden.se/wp-content/uploads/2026/07/Gardsbild-1400.jpg");
}

.hg-quality__image--materials {
    background-image:
        url("https://hemgarden.se/wp-content/uploads/2026/07/Kv-F-Innergard_web-1400x700-1.jpg");
}

.hg-quality__image--detail {
    background-image:
        url("https://hemgarden.se/wp-content/uploads/2026/07/Brf_pergolan_web-1400x700-1.jpg");
}

.hg-quality__image--responsibility {
    background-image:
        url("https://hemgarden.se/wp-content/uploads/2026/07/Gardsbild-1400.jpg");
}


/* TEXT UNDER BILDER */

.hg-quality__copy {
    text-align: left;
}

.hg-quality__icon {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    width: 34px;
    height: 34px;
    margin: 0 0 12px;

    color: #173452;
}

.hg-quality__icon svg {
    display: block;
    width: 30px;
    height: 30px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hg-quality__copy h3 {
    margin: 0 0 10px;

    color: #20231f;
    font-family: var(--hg-serif);
    font-size: 23px;
    font-weight: 400;
    line-height: 1.15;
}

.hg-quality__copy p {
    max-width: 280px;
    margin: 0;

    color: #5f635e;
    font-size: 15px;
    line-height: 1.55;
}


/* TABLET */

@media  (max-width: 1100px) {

    .hg-quality__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 44px 28px;
    }
}


/* MOBILE */

@media  (max-width: 620px) {

    .hg-quality {
        padding: 52px 0;
    }

    .hg-quality .hg-shell {
        width: calc(100% - 36px);
    }

    .hg-quality__heading {
        margin-bottom: 34px;
    }

    .hg-quality__grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .hg-quality__image {
        aspect-ratio: 1.25 / 1;
        margin-bottom: 20px;
    }
}
/* =========================================================
   SKANDINAVISK KVALITET – KOMPAKTARE VERSION
   ========================================================= */

@media  (min-width: 1101px) {

    .hg-quality {
        padding: 54px 0 52px;
    }

    .hg-quality__heading {
        margin-bottom: 34px;
    }

    .hg-quality__heading .hg-eyebrow {
        margin-bottom: 11px;
    }

    .hg-quality__heading h2 {
        margin-bottom: 14px;
        font-size: clamp(44px, 3.5vw, 58px);
    }

    .hg-quality__heading > p:not(.hg-eyebrow) {
        font-size: 15px;
        line-height: 1.55;
    }

    .hg-quality__grid {
        gap: 32px;
    }

    .hg-quality__image {
        aspect-ratio: 1.28 / 1;
        margin-bottom: 18px;
    }

    .hg-quality__icon {
        width: 29px;
        height: 29px;
        margin-bottom: 9px;
    }

    .hg-quality__icon svg {
        width: 26px;
        height: 26px;
    }

    .hg-quality__copy h3 {
        margin-bottom: 8px;
        font-size: 21px;
    }

    .hg-quality__copy p {
        font-size: 14px;
        line-height: 1.5;
    }
}
/* =========================================================
   PASSION FÖR PERFEKTION – PREMIUM FINJUSTERING
   ========================================================= */

.hg-values {
    padding: 58px 0 54px !important;
    background: #faf9f5 !important;
}

/* ---------- RUBRIK ---------- */

.hg-values .hg-section-heading--center {
    max-width: 940px !important;
    margin: 0 auto 42px !important;
    text-align: center !important;
}

.hg-values .hg-eyebrow {
    margin: 0 0 13px !important;
    color: #173452 !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    letter-spacing: .19em !important;
    text-transform: uppercase !important;
}

.hg-values .hg-section-heading h2 {
    position: relative !important;
    display: inline-block !important;

    margin: 0 0 18px !important;

    font-family: var(--hg-serif) !important;
    font-size: clamp(46px, 4.2vw, 66px) !important;
    font-weight: 400 !important;
    line-height: .98 !important;
    letter-spacing: -.035em !important;
    color: #20231f !important;
}

/* Litet elegant ® */
.hg-values .hg-section-heading h2::after {
    content: "®" !important;
    position: absolute !important;
    top: 2px !important;
    right: -18px !important;

    font-family: Arial, sans-serif !important;
    font-size: 10px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
}

/* Ingress */

.hg-values__intro {
    max-width: 720px !important;
    margin: 0 auto !important;

    font-size: 16px !important;
    line-height: 1.55 !important;
    color: #666a64 !important;
}


/* ---------- TRE KOLUMNER ---------- */

.hg-values__grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0 !important;

    width: 100% !important;
    margin-top: 0 !important;

    border-top: 1px solid rgba(23,52,82, .16) !important;
}

.hg-values__grid article {
    min-height: 225px !important;
    padding: 34px 48px 30px !important;
    margin: 0 !important;

    border: 0 !important;
    background: transparent !important;
}

.hg-values__grid article + article {
    border-left: 1px solid rgba(23,52,82, .16) !important;
}


/* ---------- IKONER ---------- */

.hg-values .hg-value-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;

    width: 34px !important;
    height: 34px !important;
    margin: 0 0 17px !important;

    color: #173452 !important;
}

.hg-values .hg-value-icon svg {
    display: block !important;
    width: 27px !important;
    height: 27px !important;

    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.3 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

/* Om vissa av era SVG:er har fill definierat */
.hg-values .hg-value-icon svg * {
    fill: none !important;
    stroke: currentColor !important;
}


/* ---------- KOLUMNTITLAR ---------- */

.hg-values__grid h3 {
    margin: 0 0 13px !important;

    font-family: var(--hg-serif) !important;
    font-size: 25px !important;
    font-weight: 400 !important;
    line-height: 1.12 !important;
    letter-spacing: -.015em !important;

    color: #20231f !important;
}


/* ---------- KOLUMNTEXT ---------- */

.hg-values__grid article > p {
    max-width: 390px !important;
    margin: 0 !important;

    font-size: 15px !important;
    line-height: 1.62 !important;
    color: #62665f !important;
}


/* ---------- TABLET ---------- */

@media  (max-width: 900px) {

    .hg-values__grid {
        grid-template-columns: 1fr !important;
    }

    .hg-values__grid article {
        min-height: 0 !important;
        padding: 30px 24px !important;
    }

    .hg-values__grid article + article {
        border-left: 0 !important;
        border-top: 1px solid rgba(23,52,82, .16) !important;
    }
}


/* ---------- MOBILE ---------- */

@media  (max-width: 620px) {

    .hg-values {
        padding: 44px 0 40px !important;
    }

    .hg-values .hg-section-heading--center {
        margin-bottom: 30px !important;
    }

    .hg-values .hg-section-heading h2 {
        font-size: 42px !important;
    }

    .hg-values__intro {
        font-size: 15px !important;
    }
}
/* =========================================================
   PASSION FÖR PERFEKTION – KOMPAKT + RÄTT ®
   ========================================================= */

.hg-values {
    padding: 36px 0 34px !important;
}

/* Rubrikområdet – mindre luft */
.hg-values .hg-section-heading--center {
    max-width: 860px !important;
    margin: 0 auto 28px !important;
}

.hg-values .hg-eyebrow {
    margin-bottom: 9px !important;
}

/* Mindre huvudrubrik */
.hg-values .hg-section-heading h2 {
    position: relative !important;
    display: inline-block !important;

    margin: 0 0 13px !important;

    font-size: clamp(40px, 3.35vw, 56px) !important;
    line-height: 1 !important;
}

/* ® precis uppe vid rubriken */
.hg-values .hg-section-heading h2::after {
    content: "®" !important;

    position: absolute !important;
    top: 1px !important;
    right: -13px !important;

    font-family: Arial, sans-serif !important;
    font-size: 8px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
}

/* Ingress */
.hg-values__intro {
    max-width: 700px !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
}

/* Tre kolumner – betydligt kompaktare */
.hg-values__grid {
    margin-top: 0 !important;
}

.hg-values__grid article {
    min-height: 175px !important;
    padding: 25px 44px 22px !important;
}

/* Ikoner */
.hg-values .hg-value-icon {
    width: 29px !important;
    height: 29px !important;
    margin-bottom: 11px !important;
}

.hg-values .hg-value-icon svg {
    width: 23px !important;
    height: 23px !important;
}

/* Kolumnrubriker */
.hg-values__grid h3 {
    margin-bottom: 9px !important;
    font-size: 22px !important;
}

/* Brödtext */
.hg-values__grid article > p {
    max-width: 370px !important;
    font-size: 14px !important;
    line-height: 1.52 !important;
}

/* Mobil */
@media  (max-width: 620px) {
    .hg-values {
        padding: 32px 0 !important;
    }

    .hg-values .hg-section-heading--center {
        margin-bottom: 24px !important;
    }

    .hg-values .hg-section-heading h2 {
        font-size: 39px !important;
    }

    .hg-values__grid article {
        padding: 24px 20px !important;
    }
}
/* FIX: ® direkt efter Passion för perfektion. */
.hg-values .hg-section-heading h2::after {
    content: "®" !important;

    position: static !important;
    display: inline-block !important;

    margin-left: 5px !important;

    font-family: Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;

    vertical-align: top !important;
    transform: translateY(4px) !important;
}
/* =========================================================
   PHILOSOPHY QUOTE – FINAL ALIGNMENT
   ========================================================= */

.hg-loci-intro__quote{
    padding:34px 30px!important;
    justify-content:center!important;
}

.hg-loci-intro__quote-mark{
    margin-bottom:14px!important;
}

.hg-loci-intro__quote p{
    max-width:190px!important;
}

.hg-loci-intro__quote small{
    max-width:190px!important;
}
/* =========================================================
   PHILOSOPHY QUOTE – POLISHED
   ========================================================= */

.hg-loci-intro__quote{
    padding:38px 34px 34px !important;
    justify-content:center !important;
}

.hg-loci-intro__quote-mark{
    margin:0 0 20px !important;
    font-size:2.3rem !important;
    line-height:1 !important;
}

.hg-loci-intro__quote p{
    max-width:220px !important;
    margin:0 !important;

    font-size:1.08rem !important;
    line-height:1.48 !important;
}

.hg-loci-intro__quote-line{
    width:100% !important;
    margin:26px 0 18px !important;
}

.hg-loci-intro__quote small{
    max-width:220px !important;

    font-size:.84rem !important;
    line-height:1.5 !important;
}
/* =========================================================
   PHILOSOPHY QUOTE – CLEANER FINAL VERSION
   ========================================================= */

.hg-loci-intro__quote{
    padding:42px 34px !important;
    display:flex !important;
    flex-direction:column !important;
    justify-content:center !important;
    align-items:center !important;
}

/* Dölj det fristående stora citattecknet */
.hg-loci-intro__quote-mark{
    display:none !important;
}

/* Huvudcitat */
.hg-loci-intro__quote p{
    position:relative !important;

    width:100% !important;
    max-width:235px !important;
    margin:0 auto !important;
    padding-top:30px !important;

    font-size:1.04rem !important;
    line-height:1.48 !important;
    text-align:left !important;
}

/* Öppnande citattecken precis ovanför texten */
.hg-loci-intro__quote p::before{
    content:"“" !important;
    position:absolute !important;
    top:-5px !important;
    left:0 !important;

    font-family:var(--hg-serif) !important;
    font-size:2.3rem !important;
    line-height:1 !important;
    color:#fffdf8 !important;
}

/* Avslutande citattecken */
.hg-loci-intro__quote p::after{
    content:"”" !important;
    position:static !important;

    margin-left:2px !important;
    font-family:var(--hg-serif) !important;
    font-size:2.3rem !important;
    line-height:0 !important;
    vertical-align:-0.28em !important;
    color:#fffdf8 !important;
}

/* Linjen */
.hg-loci-intro__quote-line{
    width:100% !important;
    max-width:235px !important;
    margin:24px auto 18px !important;
}

/* Mindre text */
.hg-loci-intro__quote small{
    width:100% !important;
    max-width:235px !important;
    margin:0 auto !important;

    font-size:.76rem !important;
    line-height:1.55 !important;
    text-align:left !important;
}
/* =========================================================
   HEMGÅRDEN — COMPACT FOOTER
   Matchar statistikfältets gröna
   ========================================================= */

.hg-footer{
    margin:0 !important;
    background:var(--hg-blue) !important;
    color:var(--hg-warm-white) !important;
}

/* Huvuddelen av footern */
.hg-footer__grid{
    display:grid;
    grid-template-columns:minmax(300px, 1.8fr) repeat(3, minmax(130px, 1fr));
    gap:clamp(34px, 4.5vw, 68px);
    padding:48px 0 42px !important;
}

/* Logo */
.hg-footer__about img{
    width:155px !important;
    max-width:100%;
    margin-bottom:16px !important;
}

/* Introtext vänster */
.hg-footer__about p{
    max-width:330px;
    margin:0 !important;
    color:rgba(255,255,255,.78) !important;
    font-size:.88rem !important;
    line-height:1.65 !important;
}

/* Rubriker */
.hg-footer h4{
    margin:0 0 16px !important;
    color:var(--hg-warm-white) !important;
    font-size:.68rem !important;
    font-weight:700;
    letter-spacing:.15em;
    text-transform:uppercase;
}

/* Länkar */
.hg-footer__column a{
    display:block;
    margin-bottom:9px !important;
    color:rgba(255,255,255,.76) !important;
    font-size:.87rem !important;
    line-height:1.4;
    text-decoration:none;
}

.hg-footer a:hover,
.hg-footer a:focus-visible{
    color:#fff !important;
}

/* Nedre copyright-raden */
.hg-footer__bottom{
    border-top:1px solid rgba(255,255,255,.13) !important;
}

.hg-footer__bottom .hg-shell{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    padding:17px 0 !important;
}

.hg-footer__bottom span,
.hg-footer__legal a{
    color:rgba(255,255,255,.62) !important;
    font-size:.73rem !important;
}

.hg-footer__legal{
    display:flex;
    gap:24px;
}

/* Tablet */
@media  (max-width:900px){
    .hg-footer__grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:34px 50px;
        padding:44px 0 38px !important;
    }
}

/* Mobile */
@media  (max-width:620px){
    .hg-footer__grid{
        grid-template-columns:1fr;
        gap:28px;
        padding:38px 0 32px !important;
    }

    .hg-footer__bottom .hg-shell{
        align-items:flex-start;
        flex-direction:column;
        gap:12px;
        padding:16px 0 !important;
    }

    .hg-footer__legal{
        flex-wrap:wrap;
        gap:10px 20px;
    }
}
/* FOOTER LOGO — size & position */

.hg-footer__about img{
    width:185px !important;
    max-width:none !important;
    margin:0 0 18px 8px !important;
    display:block;
}

/* =========================================================
   HEMGÅRDEN — FOOTER FINAL
   Dark green + white footer logo
   ========================================================= */

.hg-footer{
    margin:0 !important;
    background:#173452 !important;
    color:#F7F5EF !important;
}

.hg-footer__main{
    display:grid !important;
    grid-template-columns:minmax(300px,1.35fr) minmax(560px,1.65fr) !important;
    gap:clamp(60px,7vw,110px) !important;
    padding-top:46px !important;
    padding-bottom:40px !important;
}

.hg-footer__brand{
    max-width:370px !important;
}

/* The PHP now loads hemgarden-logo-header-white.png */
.hg-footer__logo-link{
    display:inline-block !important;
    margin:0 0 16px 0 !important;
}

.hg-footer__logo{
    display:block !important;
    width:190px !important;
    height:auto !important;
    max-width:100% !important;
    margin:0 !important;
    object-fit:contain !important;
    object-position:left center !important;
}

.hg-footer__statement{
    max-width:340px !important;
    margin:0 !important;
    color:rgba(247,245,239,.80) !important;
    font-size:.88rem !important;
    line-height:1.65 !important;
}

.hg-footer__established{
    margin:14px 0 0 !important;
    color:rgba(247,245,239,.58) !important;
    font-size:.62rem !important;
    line-height:1.5 !important;
    letter-spacing:.18em !important;
    text-transform:uppercase !important;
}

.hg-footer__navigation{
    display:grid !important;
    grid-template-columns:repeat(3,minmax(130px,1fr)) !important;
    gap:clamp(28px,3vw,48px) !important;
    padding-top:5px !important;
}

.hg-footer__column h4{
    margin:0 0 16px !important;
    color:#F7F5EF !important;
    font-size:.68rem !important;
    font-weight:700 !important;
    letter-spacing:.15em !important;
    text-transform:uppercase !important;
}

.hg-footer__column nav,
.hg-footer__contact-links{
    display:flex !important;
    flex-direction:column !important;
    align-items:flex-start !important;
    gap:9px !important;
}

.hg-footer__column a{
    margin:0 !important;
    color:rgba(247,245,239,.76) !important;
    font-size:.87rem !important;
    line-height:1.4 !important;
}

.hg-footer__column a:hover,
.hg-footer__column a:focus-visible{
    color:#fff !important;
}

.hg-footer__location{
    margin:20px 0 0 !important;
    color:rgba(247,245,239,.66) !important;
    font-size:.84rem !important;
    line-height:1.5 !important;
}

.hg-footer__bottom{
    background:#173452 !important;
    border-top:1px solid rgba(247,245,239,.14) !important;
}

.hg-footer__bottom-inner{
    min-height:0 !important;
    padding-top:17px !important;
    padding-bottom:17px !important;
}

.hg-footer__copyright,
.hg-footer__legal a,
.hg-footer__legal span{
    color:rgba(247,245,239,.62) !important;
    font-size:.73rem !important;
}

.hg-footer__legal{
    gap:18px !important;
}

@media  (max-width:1000px){
    .hg-footer__main{
        grid-template-columns:1fr !important;
        gap:36px !important;
        padding-top:42px !important;
        padding-bottom:36px !important;
    }

    .hg-footer__navigation{
        max-width:760px !important;
    }
}

@media  (max-width:700px){
    .hg-footer__logo{
        width:180px !important;
    }

    .hg-footer__navigation{
        grid-template-columns:1fr 1fr !important;
        gap:30px !important;
    }

    .hg-footer__column--contact{
        grid-column:1 / -1 !important;
    }

    .hg-footer__bottom-inner{
        align-items:flex-start !important;
        flex-direction:column !important;
        gap:10px !important;
        padding-top:16px !important;
        padding-bottom:16px !important;
    }
}

@media  (max-width:440px){
    .hg-footer__navigation{
        grid-template-columns:1fr !important;
        gap:26px !important;
    }

    .hg-footer__column--contact{
        grid-column:auto !important;
    }
}

/* =========================================================
   HEMGÅRDEN — FINAL MATCHED DARK GREEN
   Statistikbanner + footer använder EXAKT samma färg
   ========================================================= */

:root{
    --hg-dark-band:#173452;
}

/* Statistikbannern */
.hg-stats,
.hg-stats__grid,
.hg-stat{
    background:#173452 !important;
}

/* Footern – hela ytan, inklusive nedersta raden */
.hg-footer,
.hg-footer__main,
.hg-footer__bottom{
    background:#173452 !important;
    background-color:#173452 !important;
}

/* Säkerställ att inga pseudo-element eller wrapper-bakgrunder
   ger en annan grön ton */
.hg-footer::before,
.hg-footer::after,
.hg-footer__main::before,
.hg-footer__main::after,
.hg-footer__bottom::before,
.hg-footer__bottom::after{
    background:#173452 !important;
    background-color:#173452 !important;
}


/* =========================================================
   MARKSEKTION — endast brödtexten större
   ========================================================= */
.hg-land__copy > p:not(.hg-eyebrow){
    font-size:clamp(1.08rem, 1.2vw, 1.18rem) !important;
    line-height:1.62 !important;
}
.hg-land__copy > p:not(.hg-eyebrow){
    font-size: 1rem !important;
    text-align:justify !important;
    text-align-last:left;
    hyphens:auto;
}

/* =========================================================
   OM OSS / ABOUT US — CANONICAL
   One shared visual system for both languages.
   Only the text content differs.
   ========================================================= */

body:has(.hg-about){
    overflow-x:hidden;
    background:#fbfaf6;
}

body:has(.hg-about) .wp-site-blocks{
    padding:0 !important;
}

body:has(.hg-about) .wp-site-blocks > header,
body:has(.hg-about) .wp-site-blocks > footer{
    display:none !important;
}

body:has(.hg-about) .wp-block-post-title{
    display:none !important;
}

body:has(.hg-about) .wp-block-post-content,
body:has(.hg-about) main.wp-block-group{
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
}

body:has(.hg-about) .wp-block-post-content > *{
    max-width:none !important;
    margin-block-start:0 !important;
    margin-block-end:0 !important;
}

.hg-about{
    --about-bg:#fbfaf6;
    --about-paper:#f5f3ed;
    --about-green:#395a43;
    --about-deep:#20231f;
    --about-muted:#666c65;
    --about-max:1310px;

    width:100%;
    margin:0 !important;
    padding:0 !important;

    overflow:hidden;
    color:var(--about-deep);
    background:var(--about-bg);
    font-family:var(--hg-sans);
}

.hg-about *,
.hg-about *::before,
.hg-about *::after{
    box-sizing:border-box;
}


/* =========================================================
   HEADER
   Same geometry in Swedish and English.
   Desktop: clean white header.
   Scroll: same content in a thin fixed white bar.
   ========================================================= */

.hg-about .hg-header--about-static{
    position:relative !important;
    inset:auto !important;

    width:100% !important;
    height:96px !important;
    min-height:96px !important;

    margin:0 !important;
    padding:0 !important;

    background:#fbfaf6 !important;
    color:#20231f !important;

    border:0 !important;
    box-shadow:none !important;

    z-index:9999 !important;
    transform:none !important;
    opacity:1 !important;
    visibility:visible !important;
    overflow:visible !important;
}

.hg-about .hg-header--about-static .hg-header__inner{
    width:100% !important;
    max-width:none !important;
    height:96px !important;
    min-height:96px !important;

    margin:0 !important;
    padding:0 38px !important;

    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:32px !important;
}





.hg-about .hg-header--about-static .hg-header__nav{
    height:96px !important;

    margin:0 !important;
    padding:0 !important;

    display:flex !important;
    align-items:center !important;

    gap:clamp(18px,2vw,34px) !important;

    color:#20231f !important;
    font-size:.69rem !important;
    font-weight:650 !important;
    letter-spacing:.11em !important;
    text-transform:uppercase !important;
}

.hg-about .hg-header--about-static .hg-header__nav > a,
.hg-about .hg-header--about-static .hg-menu-item > a,
.hg-about .hg-header--about-static .hg-header__language,
.hg-about .hg-header--about-static .hg-header__language a{
    color:#20231f !important;
}

/* Active About link */
.hg-about .hg-header--about-static .hg-header__nav > a.is-active::after{
    right:0 !important;
}

/* Existing site.js adds .is-scrolled via data-hg-header */
.hg-about .hg-header--about-static.is-scrolled{
    position:fixed !important;
    top:0 !important;
    left:0 !important;
    right:0 !important;

    height:68px !important;
    min-height:68px !important;

    padding:0 !important;

    background:rgba(251,250,246,.985) !important;
    color:#20231f !important;

    border:0 !important;
    box-shadow:0 1px 0 rgba(32,35,31,.08) !important;

    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
}

.hg-about .hg-header--about-static.is-scrolled .hg-header__inner{
    height:68px !important;
    min-height:68px !important;
}





.hg-about .hg-header--about-static.is-scrolled .hg-header__nav{
    height:68px !important;
}

body.admin-bar .hg-about .hg-header--about-static.is-scrolled{
    top:32px !important;
}

@media  (max-width:782px){
    body.admin-bar .hg-about .hg-header--about-static.is-scrolled{
        top:46px !important;
    }
}


/* =========================================================
   TYPOGRAPHY
   ========================================================= */

.hg-about h1,
.hg-about h2,
.hg-about h3{
    font-family:var(--hg-serif);
    font-weight:400;
    color:var(--about-deep);
}

.hg-about .hg-eyebrow{
    margin:0 0 14px;
    color:var(--about-green);
    font-size:.68rem;
    font-weight:700;
    letter-spacing:.18em;
    line-height:1.2;
    text-transform:uppercase;
}


/* =========================================================
   HERO
   Geometry intentionally matches the English version.
   ========================================================= */

.hg-about main{
    margin:0 !important;
    padding:0 !important;
}

.hg-about-hero{
    width:min(calc(100% - 80px), var(--about-max));
    min-height:330px;
    margin:0 auto;

    display:grid;
    grid-template-columns:48% 52%;

    overflow:hidden;
    background:#f8f7f2;
}

.hg-about-hero__copy{
    min-width:0;
    min-height:330px;

    display:flex;
    align-items:center;

    padding:34px 50px;
}

.hg-about-hero__copy-inner{
    width:100%;
    max-width:500px;
    min-width:0;
}

.hg-about-hero h1{
    width:100%;
    max-width:500px;
    margin:0;

    font-size:clamp(2.85rem,3.25vw,3.7rem);
    line-height:1.01;
    letter-spacing:-.035em;

    white-space:normal;
    overflow:visible;
}

.hg-about-rule{
    display:block;
    width:48px;
    height:1px;

    margin:23px 0 21px;

    background:var(--about-green);
}

.hg-about-hero__copy-inner > p:last-child{
    max-width:390px;
    margin:0;

    color:#444943;
    font-size:.95rem;
    line-height:1.56;
}

.hg-about-hero__image{
    min-width:0;
    min-height:330px;

    background:
        linear-gradient(90deg,rgba(248,247,242,.18) 0%,rgba(248,247,242,0) 8%),
        url("https://hemgarden.se/wp-content/uploads/2026/07/Kv-F-Innergard_web-1400x700-1.jpg")
        center center/cover no-repeat;
}


/* =========================================================
   INTRO / FACTS
   ========================================================= */

.hg-about-intro{
    padding:52px 0 56px;
}

.hg-about-intro__grid{
    width:min(calc(100% - 80px), var(--about-max));
    margin-inline:auto;

    display:grid;
    grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr);
    gap:56px;
    align-items:start;
}

.hg-about-intro__copy{
    max-width:500px;
    min-width:0;
}

.hg-about-intro h2{
    max-width:500px;
    margin:0 0 20px;

    font-size:clamp(2.1rem,2.45vw,2.7rem);
    line-height:1.04;
    letter-spacing:-.032em;
}

.hg-about-intro__copy > p:not(.hg-eyebrow){
    max-width:500px;
    margin:0 0 10px;

    color:var(--about-muted);
    font-size:.88rem;
    line-height:1.54;
}

.hg-about-facts{
    min-width:0;

    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));

    border-left:1px solid rgba(23,52,82,.14);
}

.hg-about-fact{
    min-width:0;
    min-height:190px;

    padding:18px 12px;

    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    text-align:center;
}

.hg-about-fact + .hg-about-fact{
    border-left:1px solid rgba(23,52,82,.14);
}

.hg-about-fact__icon{
    width:34px;
    height:34px;

    margin:0 auto 14px;

    color:var(--about-green);
}

.hg-about-fact__icon svg{
    width:32px;
    height:32px;

    fill:none;
    stroke:currentColor;
    stroke-width:1.15;
}

.hg-about-fact strong{
    display:block;

    margin:0;

    min-height:0;

    font-family:var(--hg-serif);
    font-size:clamp(1.85rem,2.25vw,2.45rem);
    font-weight:400;
    line-height:1;

    white-space:nowrap;
}

.hg-about-fact:last-child strong{
    font-family:var(--hg-sans);
    font-size:.7rem;
    font-weight:700;
    letter-spacing:.08em;
    line-height:1.25;
    text-transform:uppercase;
    white-space:normal;
}

.hg-about-fact small{
    max-width:120px;
    margin:9px auto 0;

    color:#474c47;
    font-size:.59rem;
    font-weight:700;
    letter-spacing:.09em;
    line-height:1.35;
    text-transform:uppercase;
}


/* =========================================================
   HISTORY
   ========================================================= */

.hg-about-history{
    padding:44px 0 46px;

    background:linear-gradient(180deg,#f2f3ee 0%,#f7f6f1 100%);
}

.hg-about-history > .hg-shell{
    width:min(calc(100% - 80px), var(--about-max));
}

.hg-about-section-heading{
    margin-bottom:30px;
}

.hg-about-section-heading h2,
.hg-about-values__heading h2{
    margin:0;

    font-size:clamp(2.1rem,2.55vw,2.85rem);
    line-height:1.03;
    letter-spacing:-.035em;
}

.hg-about-timeline{
    position:relative;

    display:grid;
    grid-template-columns:repeat(6,minmax(0,1fr));

    gap:0;
}

.hg-about-timeline::before{
    content:"";

    position:absolute;
    top:40px;
    left:0;
    right:0;

    height:1px;

    background:rgba(23,52,82,.42);
}

.hg-about-timeline article{
    position:relative;
    min-width:0;

    padding-right:18px;
}

.hg-about-timeline article + article{
    padding-left:18px;
}

.hg-about-timeline__year{
    display:block;
    height:32px;

    font-family:var(--hg-serif);
    font-size:1.14rem;
}

.hg-about-timeline__dot{
    position:relative;
    z-index:2;

    display:block;
    width:9px;
    height:9px;

    margin:5px 0 19px;

    border-radius:50%;
    background:#173452;
}

.hg-about-timeline h3{
    margin:0 0 7px;

    font-family:var(--hg-sans);
    font-size:.8rem;
    font-weight:700;
    line-height:1.35;
}

.hg-about-timeline p{
    width:auto;
    max-width:190px;
    margin:0;

    color:#5f645e;
    font-size:.71rem;
    line-height:1.48;

    overflow-wrap:break-word;
}

.hg-about-history__note{
    margin:18px 0 0;

    color:#8a8e88;
    font-size:.68rem;
    font-style:italic;
}


/* =========================================================
   PEOPLE
   ========================================================= */

.hg-about-people{
    padding:44px 0 48px;
}

.hg-about-people > .hg-shell{
    width:min(calc(100% - 80px), var(--about-max));
}

.hg-about-people__grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:22px;
}

.hg-about-person{
    min-width:0;
}

.hg-about-person__photo{
    width:100%;
    aspect-ratio:1 / 1.03;

    margin-bottom:14px;

    overflow:hidden;
    background:#e8e5dd;
}

.hg-about-person__photo--placeholder{
    display:grid;
    place-items:center;

    border:1px solid rgba(23,52,82,.08);
}

.hg-about-person__photo--placeholder span{
    color:#8b9089;
    font-size:.66rem;
    font-weight:700;
    letter-spacing:.12em;
    text-transform:uppercase;
}

.hg-about-person h3{
    margin:0 0 5px;

    font-size:1.18rem;
    line-height:1.15;
}

.hg-about-person__role{
    margin:0 0 9px !important;

    color:#173452 !important;
    font-size:.61rem !important;
    font-weight:700;
    letter-spacing:.1em;
    line-height:1.35;
    text-transform:uppercase;
}

.hg-about-person > p:last-child{
    width:100%;
    max-width:none;
    margin:0;

    color:#646963;
    font-size:.75rem;
    line-height:1.5;

    overflow-wrap:break-word;
}

.hg-about-person--placeholder{
    opacity:.72;
}




/* =========================================================
   ANNUAL REPORT
   Replaces the old "Vår grund" section
   ========================================================= */

.hg-about-report{
    background:#E7EEF8;
    padding:46px 0;
}

.hg-about-report__inner{
    width:min(calc(100% - 80px), var(--about-max));
    margin-inline:auto;

    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:60px;
}

.hg-about-report__copy{
    max-width:680px;
}

.hg-about-report__copy .hg-eyebrow{
    margin-bottom:12px;
}

.hg-about-report__copy h2{
    margin:0;

    font-family:var(--hg-serif);
    font-size:clamp(2rem,2.45vw,2.75rem);
    font-weight:400;
    line-height:1.05;
    letter-spacing:-.035em;

    color:var(--about-deep);
}

.hg-about-report__link{
    flex:0 0 auto;

    display:inline-flex;
    align-items:center;
    gap:18px;

    padding:15px 0 10px;

    color:var(--about-deep);
    text-decoration:none;

    font-size:.69rem;
    font-weight:700;
    letter-spacing:.11em;
    text-transform:uppercase;

    border-bottom:1px solid var(--about-green);

    transition:gap .25s ease, opacity .25s ease;
}

.hg-about-report__link span{
    font-size:1.1rem;
    line-height:1;
}

.hg-about-report__link:hover{
    gap:24px;
    opacity:.72;
}

@media  (max-width:820px){
    .hg-about-report{
        padding:38px 0;
    }

    .hg-about-report__inner{
        width:calc(100% - 48px);
        flex-direction:column;
        align-items:flex-start;
        gap:26px;
    }
}

@media  (max-width:620px){
    .hg-about-report__inner{
        width:calc(100% - 28px);
    }
}

/* =========================================================
   FOOTER
   The About shortcode contains the same custom footer as Home.
   The WordPress theme footer stays hidden.
   ========================================================= */

.hg-about > .hg-footer{
    margin-top:0 !important;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media  (max-width:1100px){
    .hg-about-hero,
    .hg-about-intro__grid,
    .hg-about-history > .hg-shell,
    .hg-about-people > .hg-shell{
        width:calc(100% - 48px);
    }

    .hg-about-intro__grid{
        grid-template-columns:1fr;
        gap:30px;
    }

    .hg-about-intro__copy{
        max-width:650px;
    }
}

@media  (max-width:900px){
    .hg-about .hg-header--about-static .hg-header__inner{
        padding-inline:24px !important;
    }

    .hg-about .hg-header--about-static .hg-header__nav{
        gap:16px !important;
        font-size:.64rem !important;
    }
}

@media  (max-width:820px){
    .hg-about-hero{
        grid-template-columns:1fr;
    }

    .hg-about-hero__copy{
        min-height:0;
        padding:40px 28px;
    }

    .hg-about-hero__image{
        min-height:300px;
    }

    .hg-about-facts{
        grid-template-columns:repeat(2,1fr);
        border-left:0;
    }

    .hg-about-fact:nth-child(3),
    .hg-about-fact:nth-child(4){
        border-top:1px solid rgba(23,52,82,.14);
    }

    .hg-about-fact:nth-child(3){
        border-left:0;
    }

    .hg-about-timeline{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:28px 26px;
    }

    .hg-about-timeline::before{
        display:none;
    }

    .hg-about-timeline article,
    .hg-about-timeline article + article{
        padding-left:0;
        padding-right:16px;
    }

    .hg-about-people__grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media  (max-width:620px){
    .hg-about .hg-header--about-static{
        height:72px !important;
        min-height:72px !important;
    }

    .hg-about .hg-header--about-static .hg-header__inner{
        height:72px !important;
        min-height:72px !important;
        padding-inline:18px !important;
    }

    

    .hg-about .hg-header--about-static .hg-menu-item--has-children{
        display:none !important;
    }

    .hg-about .hg-header--about-static .hg-header__nav > a{
        display:none !important;
    }

    .hg-about .hg-header--about-static .hg-header__language{
        display:inline-flex !important;
    }

    .hg-about-hero,
    .hg-about-intro__grid,
    .hg-about-history > .hg-shell,
    .hg-about-people > .hg-shell{
        width:calc(100% - 28px);
    }

    .hg-about-hero h1{
        font-size:clamp(2.4rem,11vw,3.4rem);
    }

    .hg-about-timeline,
    .hg-about-people__grid{
        grid-template-columns:1fr;
    }
}

/* ===== About page v4: intro balance refinements ===== */

/* Slightly less empty space before "Vår historia" */
.hg-about-intro{
    padding-bottom:20px;
}
.hg-about-history{
    padding-top:26px;
}

/* Give the copy side about 15% more room and keep stats on the right */
.hg-about-intro__grid{
    grid-template-columns:minmax(0,1.15fr) minmax(0,1.85fr);
    align-items:center;
}

/* Allow the copy to actually use the added width */
.hg-about-intro__copy{
    max-width:575px;
}

/* Move the four statistics a little lower and right, while keeping them centered */
.hg-about-stats{
    transform:translate(22px, 18px);
    align-self:center;
}

/* Keep the refinement desktop-only */
@media  (max-width:1100px){
    .hg-about-intro__grid{
        grid-template-columns:1fr;
    }

    .hg-about-intro__copy{
        max-width:620px;
    }

    .hg-about-stats{
        transform:none;
    }
}

/* =========================================================
   ABOUT V6 – compact hero, wider intro, tighter stats
   ========================================================= */

/* 1) Kortare hero + lägre bild */
.hg-about-hero{
    min-height:300px;
}

.hg-about-hero__copy{
    min-height:300px;
    padding:28px 50px;
}

.hg-about-hero__image{
    min-height:300px;
}

/* Behåll rubriken elegant men något kompaktare */
.hg-about-hero h1{
    font-size:clamp(2.65rem,3vw,3.45rem);
    line-height:1.00;
}

/* Lite mindre luft i hero-textdelen */
.hg-about-rule{
    margin:18px 0 17px;
}

.hg-about-hero__copy-inner > p:last-child{
    font-size:.95rem;
    line-height:1.52;
}


/* 2) Hemgården i korthet – bredare textdel */
.hg-about-intro__grid{
    grid-template-columns:minmax(0,1.28fr) minmax(0,1.72fr);
    gap:42px;
}

.hg-about-intro__copy{
    max-width:650px;
}

.hg-about-intro h2{
    max-width:620px;
}

.hg-about-intro__copy > p:not(.hg-eyebrow){
    max-width:610px;
}


/* 3) Statistik – mindre spacing mellan de fyra kolumnerna */
.hg-about-facts{
    column-gap:0;
}

.hg-about-fact{
    padding-left:8px;
    padding-right:8px;
}

.hg-about-fact__icon{
    margin-bottom:10px;
}

.hg-about-fact small{
    margin-top:7px;
}

/* Dra hela statistikblocket lite närmare textdelen */
.hg-about-stats{
    transform:translate(8px, 14px);
}


/* Responsive reset */
@media  (max-width:1100px){
    .hg-about-intro__grid{
        grid-template-columns:1fr;
        gap:28px;
    }

    .hg-about-intro__copy{
        max-width:650px;
    }

    .hg-about-stats{
        transform:none;
    }
}

/* =========================================================
   KONTAKT / CONTACT — V1
   ========================================================= */

body:has(.hg-contact-page){overflow-x:hidden;background:#fbfaf6;}
body:has(.hg-contact-page) .wp-site-blocks{padding:0 !important;}
body:has(.hg-contact-page) .wp-site-blocks > header,
body:has(.hg-contact-page) .wp-site-blocks > footer{display:none !important;}
body:has(.hg-contact-page) .wp-block-post-title{display:none !important;}
body:has(.hg-contact-page) .wp-block-post-content,
body:has(.hg-contact-page) main.wp-block-group{margin:0 !important;padding:0 !important;max-width:none !important;}
body:has(.hg-contact-page) .wp-block-post-content > *{margin-block:0 !important;max-width:none !important;}

.hg-contact-page{--contact-green:#395a43;--contact-deep:#20231f;--contact-muted:#666c65;--contact-bg:#fbfaf6;--contact-panel:#e7ece5;color:var(--contact-deep);background:var(--contact-bg);font-family:var(--hg-sans);}
.hg-contact-page *{box-sizing:border-box;}

/* Contact uses the exact About header classes/design */
.hg-contact-page .hg-about-topbar{position:sticky;top:0;z-index:9999;background:rgba(251,250,246,.985);box-shadow:0 1px 0 rgba(32,35,31,.08);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);}
body.admin-bar .hg-contact-page .hg-about-topbar{top:32px;}

.hg-contact-main{margin:0;padding:0;}
.hg-contact-hero{padding:72px 0 64px;background:#fbfaf6;}
.hg-contact-hero__inner{max-width:1280px;}
.hg-contact-hero .hg-eyebrow{margin-bottom:16px;}
.hg-contact-hero h1{max-width:820px;margin:0;font-family:var(--hg-serif);font-size:clamp(3.2rem,5vw,5.4rem);font-weight:400;line-height:.98;letter-spacing:-.045em;color:var(--contact-deep);}
.hg-contact-hero__lead{max-width:610px;margin:28px 0 0;color:var(--contact-muted);font-size:1.02rem;line-height:1.62;text-align:justify;text-justify:inter-word;hyphens:auto;-webkit-hyphens:auto;}

.hg-contact-panel{background:var(--contact-panel);}
.hg-contact-grid{display:grid;grid-template-columns:1.05fr .95fr 1.1fr;max-width:1280px;}
.hg-contact-card{min-width:0;min-height:440px;padding:54px 44px 50px;}
.hg-contact-card + .hg-contact-card{border-left:1px solid rgba(23,52,82,.16);}
.hg-contact-card__icon{display:block;width:38px;height:38px;margin-bottom:34px;color:var(--contact-green);}
.hg-contact-card__icon svg{width:38px;height:38px;fill:none;stroke:currentColor;stroke-width:1.25;}
.hg-contact-card__kicker{margin:0 0 12px;color:var(--contact-green);font-size:.68rem;font-weight:700;letter-spacing:.17em;text-transform:uppercase;}
.hg-contact-card h2{max-width:390px;margin:0 0 28px;font-family:var(--hg-serif);font-size:clamp(1.75rem,2.15vw,2.35rem);font-weight:400;line-height:1.08;letter-spacing:-.03em;}
.hg-contact-card address{margin:0 0 30px;color:var(--contact-muted);font-style:normal;font-size:.96rem;line-height:1.65;}
.hg-contact-row{padding:20px 0;border-top:1px solid rgba(23,52,82,.18);display:flex;flex-direction:column;align-items:flex-start;gap:4px;}
.hg-contact-row > span{color:var(--contact-muted);font-size:.72rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;}
.hg-contact-row a{color:var(--contact-deep);font-size:1.02rem;font-weight:600;text-decoration:none;line-height:1.45;overflow-wrap:anywhere;}
.hg-contact-row a[href^="mailto:"]{color:var(--contact-green);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px;}
.hg-contact-row small{color:var(--contact-muted);font-size:.76rem;line-height:1.45;}
.hg-contact-page > .hg-footer{margin-top:0 !important;}

@media  (max-width:980px){
  .hg-contact-hero{padding:54px 0 46px;}
  .hg-contact-grid{grid-template-columns:1fr;}
  .hg-contact-card{min-height:0;padding:40px 30px;}
  .hg-contact-card + .hg-contact-card{border-left:0;border-top:1px solid rgba(23,52,82,.16);}
}

@media  (max-width:782px){
  body.admin-bar .hg-contact-page .hg-about-topbar{top:46px;}
  .hg-contact-hero h1{font-size:clamp(2.8rem,12vw,4.2rem);}
}

@media  (max-width:620px){
  .hg-contact-hero{padding:42px 0 38px;}
  .hg-contact-card{padding:34px 22px;}
  .hg-contact-card__icon{margin-bottom:24px;}
}

/* CONTACT V2 FIX */
.hg-contact-page .hg-header--about-static{
    position:relative !important;
    inset:auto !important;

    width:100% !important;
    height:96px !important;
    min-height:96px !important;

    margin:0 !important;
    padding:0 !important;

    background:#fbfaf6 !important;
    color:#20231f !important;

    border:0 !important;
    box-shadow:none !important;

    z-index:9999 !important;
    transform:none !important;
    opacity:1 !important;
    visibility:visible !important;
    overflow:visible !important;
}

.hg-contact-page .hg-header--about-static .hg-header__inner{
    width:100% !important;
    max-width:none !important;
    height:96px !important;
    min-height:96px !important;

    margin:0 !important;
    padding:0 38px !important;

    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:32px !important;
}





.hg-contact-page .hg-header--about-static .hg-header__nav{
    height:96px !important;

    margin:0 !important;
    padding:0 !important;

    display:flex !important;
    align-items:center !important;

    gap:clamp(18px,2vw,34px) !important;

    color:#20231f !important;
    font-size:.69rem !important;
    font-weight:650 !important;
    letter-spacing:.11em !important;
    text-transform:uppercase !important;
}

.hg-contact-page .hg-header--about-static .hg-header__nav > a,
.hg-contact-page .hg-header--about-static .hg-menu-item > a,
.hg-contact-page .hg-header--about-static .hg-header__language,
.hg-contact-page .hg-header--about-static .hg-header__language a{
    color:#20231f !important;
}

/* Active About link */
.hg-contact-page .hg-header--about-static .hg-header__nav > a.is-active::after{
    right:0 !important;
}

/* Existing site.js adds .is-scrolled via data-hg-header */
.hg-contact-page .hg-header--about-static.is-scrolled{
    position:fixed !important;
    top:0 !important;
    left:0 !important;
    right:0 !important;

    height:68px !important;
    min-height:68px !important;

    padding:0 !important;

    background:rgba(251,250,246,.985) !important;
    color:#20231f !important;

    border:0 !important;
    box-shadow:0 1px 0 rgba(32,35,31,.08) !important;

    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
}

.hg-contact-page .hg-header--about-static.is-scrolled .hg-header__inner{
    height:68px !important;
    min-height:68px !important;
}





.hg-contact-page .hg-header--about-static.is-scrolled .hg-header__nav{
    height:68px !important;
}

body.admin-bar .hg-contact-page .hg-header--about-static.is-scrolled{
    top:32px !important;
}

@media  (max-width:782px){
    body.admin-bar .hg-contact-page .hg-header--about-static.is-scrolled{
        top:46px !important;
    }
}




.hg-contact-page .hg-about-wrap{
    width:min(calc(100% - 120px), 1280px) !important;
    max-width:1280px !important;
    margin-left:auto !important;
    margin-right:auto !important;
}

.hg-contact-page .hg-contact-hero{
    padding:48px 0 44px !important;
}

.hg-contact-page .hg-contact-hero h1{
    max-width:760px !important;
    font-size:clamp(3rem,4.35vw,4.65rem) !important;
    line-height:.98 !important;
}

.hg-contact-page .hg-contact-hero__lead{
    max-width:610px !important;
    margin-top:20px !important;
    font-size:1rem !important;
    line-height:1.58 !important;
}

.hg-contact-page .hg-contact-grid{
    width:min(calc(100% - 120px), 1280px) !important;
    max-width:1280px !important;
    margin-left:auto !important;
    margin-right:auto !important;
}

.hg-contact-page .hg-contact-card{
    min-height:405px !important;
    padding:44px 38px 40px !important;
}

.hg-contact-page .hg-header--about-static .hg-menu-item--has-children{
    position:relative !important;
}

.hg-contact-page .hg-header--about-static .hg-dropdown{
    position:absolute !important;
    top:100% !important;
    left:0 !important;
    min-width:250px !important;
    display:none !important;
    background:#fbfaf6 !important;
    box-shadow:0 18px 38px rgba(23,52,82,.12) !important;
    z-index:10020 !important;
}

.hg-contact-page .hg-header--about-static .hg-menu-item--has-children:hover > .hg-dropdown,
.hg-contact-page .hg-header--about-static .hg-menu-item--has-children:focus-within > .hg-dropdown{
    display:block !important;
}

@media  (max-width:980px){
    .hg-contact-page .hg-about-wrap,
    .hg-contact-page .hg-contact-grid{
        width:calc(100% - 48px) !important;
    }
}

@media  (max-width:620px){
    .hg-contact-page .hg-about-wrap,
    .hg-contact-page .hg-contact-grid{
        width:calc(100% - 28px) !important;
    }
}



/* =========================================================
   CONTACT V3 – MATCH AI REFERENCE
   Smaller typography + tighter vertical rhythm
   ========================================================= */

/* HERO — closer to AI mockup */
.hg-contact-page .hg-contact-hero{
    padding:38px 0 34px !important;
}

.hg-contact-page .hg-contact-hero .hg-eyebrow{
    margin-bottom:12px !important;
    font-size:.65rem !important;
    letter-spacing:.17em !important;
}

.hg-contact-page .hg-contact-hero h1{
    max-width:620px !important;
    font-size:clamp(2.65rem, 3.25vw, 3.35rem) !important;
    line-height:1.00 !important;
    letter-spacing:-.035em !important;
}

.hg-contact-page .hg-contact-hero__lead{
    max-width:530px !important;
    margin-top:18px !important;
    font-size:.91rem !important;
    line-height:1.55 !important;
}


/* CONTACT PANEL */
.hg-contact-page .hg-contact-grid{
    width:min(calc(100% - 110px), 1300px) !important;
}

.hg-contact-page .hg-contact-card{
    min-height:345px !important;
    padding:34px 36px 32px !important;
}

/* icons */
.hg-contact-page .hg-contact-card__icon{
    width:31px !important;
    height:31px !important;
    margin-bottom:18px !important;
}

.hg-contact-page .hg-contact-card__icon svg{
    width:31px !important;
    height:31px !important;
}

/* green labels */
.hg-contact-page .hg-contact-card__kicker{
    margin:0 0 11px !important;
    font-size:.63rem !important;
    letter-spacing:.16em !important;
}

/* card headings */
.hg-contact-page .hg-contact-card h2{
    max-width:340px !important;
    margin:0 0 17px !important;
    font-size:clamp(1.38rem, 1.55vw, 1.62rem) !important;
    line-height:1.08 !important;
    letter-spacing:-.025em !important;
}

/* address + text */
.hg-contact-page .hg-contact-card address{
    margin:0 0 17px !important;
    font-size:.86rem !important;
    line-height:1.48 !important;
}

.hg-contact-page .hg-contact-card dt{
    margin:0 0 4px !important;
    font-size:.63rem !important;
    line-height:1.3 !important;
    letter-spacing:.12em !important;
}

.hg-contact-page .hg-contact-card dd{
    margin:0 !important;
    font-size:.88rem !important;
    line-height:1.42 !important;
}

.hg-contact-page .hg-contact-card dd strong,
.hg-contact-page .hg-contact-card dd a{
    font-size:.91rem !important;
    line-height:1.4 !important;
}

/* dividers + spacing */
.hg-contact-page .hg-contact-card__row{
    padding:14px 0 !important;
}

.hg-contact-page .hg-contact-card__row:first-of-type{
    padding-top:13px !important;
}

.hg-contact-page .hg-contact-card__row:last-child{
    padding-bottom:0 !important;
}

.hg-contact-page .hg-contact-card small{
    margin-top:3px !important;
    font-size:.73rem !important;
    line-height:1.35 !important;
}


/* Slightly slimmer footer typography as in the AI mockup */
.hg-contact-page + .hg-footer,
.hg-contact-page .hg-footer{
    font-size:.82rem !important;
}


/* TABLET */
@media  (max-width:980px){
    .hg-contact-page .hg-contact-hero{
        padding:34px 0 30px !important;
    }

    .hg-contact-page .hg-contact-grid{
        width:calc(100% - 48px) !important;
    }

    .hg-contact-page .hg-contact-card{
        min-height:0 !important;
        padding:30px 28px !important;
    }
}

/* MOBILE */
@media  (max-width:620px){
    .hg-contact-page .hg-contact-hero h1{
        font-size:2.45rem !important;
    }

    .hg-contact-page .hg-contact-hero__lead{
        font-size:.9rem !important;
    }

    .hg-contact-page .hg-contact-card h2{
        font-size:1.45rem !important;
    }

    .hg-contact-page .hg-contact-card{
        padding:26px 20px !important;
    }
}



/* =========================================================
   CONTACT V4 — MATCH COMPACT AI MOCKUP
   ========================================================= */

/* Main content width and rhythm */
.hg-contact-page .hg-about-wrap{
    width:min(calc(100% - 112px), 1320px) !important;
    max-width:1320px !important;
    margin-inline:auto !important;
}

/* Hero: much more compact */
.hg-contact-page .hg-contact-hero{
    padding:34px 0 30px !important;
}

.hg-contact-page .hg-contact-hero .hg-eyebrow{
    margin:0 0 10px !important;
    font-size:.61rem !important;
    letter-spacing:.17em !important;
}

.hg-contact-page .hg-contact-hero h1{
    max-width:590px !important;
    margin:0 !important;
    font-size:clamp(2.35rem, 2.85vw, 2.95rem) !important;
    line-height:1 !important;
    letter-spacing:-.035em !important;
}

.hg-contact-page .hg-contact-hero__lead{
    max-width:500px !important;
    margin:16px 0 0 !important;
    font-size:.84rem !important;
    line-height:1.5 !important;
}

/* Pale-green panel */
.hg-contact-page .hg-contact-panel{
    background:#E7EEF8 !important;
}

.hg-contact-page .hg-contact-grid{
    width:min(calc(100% - 112px), 1320px) !important;
    max-width:1320px !important;
    grid-template-columns:1fr 1fr 1fr !important;
}

/* Cards: shorter and tighter */
.hg-contact-page .hg-contact-card{
    min-height:300px !important;
    padding:28px 34px 26px !important;
}

.hg-contact-page .hg-contact-card + .hg-contact-card{
    border-left:1px solid rgba(23,52,82,.14) !important;
}

/* Cleaner smaller icons */
.hg-contact-page .hg-contact-card__icon{
    display:block !important;
    width:30px !important;
    height:30px !important;
    margin:0 0 13px !important;
    color:#173452 !important;
}

.hg-contact-page .hg-contact-card__icon svg{
    display:block !important;
    width:30px !important;
    height:30px !important;
    fill:none !important;
    stroke:currentColor !important;
    stroke-width:1.35 !important;
    stroke-linecap:round !important;
    stroke-linejoin:round !important;
}

/* Small uppercase category */
.hg-contact-page .hg-contact-card__kicker{
    margin:0 0 9px !important;
    font-size:.59rem !important;
    font-weight:700 !important;
    line-height:1.2 !important;
    letter-spacing:.17em !important;
}

/* Main card headings */
.hg-contact-page .hg-contact-card h2{
    max-width:345px !important;
    margin:0 0 13px !important;
    font-size:clamp(1.25rem, 1.35vw, 1.48rem) !important;
    line-height:1.06 !important;
    letter-spacing:-.024em !important;
}

/* Address */
.hg-contact-page .hg-contact-card address{
    margin:0 0 12px !important;
    font-size:.78rem !important;
    line-height:1.45 !important;
}

/* Contact rows */
.hg-contact-page .hg-contact-row{
    padding:11px 0 !important;
    gap:2px !important;
    border-top:1px solid rgba(23,52,82,.16) !important;
}

.hg-contact-page .hg-contact-row > span{
    font-size:.57rem !important;
    line-height:1.25 !important;
    letter-spacing:.12em !important;
}

.hg-contact-page .hg-contact-row a{
    font-size:.82rem !important;
    line-height:1.34 !important;
    font-weight:650 !important;
}

.hg-contact-page .hg-contact-row small{
    margin-top:1px !important;
    font-size:.67rem !important;
    line-height:1.3 !important;
}

/* Footer closer to mockup */
.hg-contact-page > .hg-footer{
    margin-top:0 !important;
}

/* Tablet */
@media  (max-width:980px){
    .hg-contact-page .hg-about-wrap,
    .hg-contact-page .hg-contact-grid{
        width:calc(100% - 48px) !important;
    }

    .hg-contact-page .hg-contact-grid{
        grid-template-columns:1fr !important;
    }

    .hg-contact-page .hg-contact-card{
        min-height:0 !important;
        padding:25px 28px !important;
    }

    .hg-contact-page .hg-contact-card + .hg-contact-card{
        border-left:0 !important;
        border-top:1px solid rgba(23,52,82,.14) !important;
    }
}

/* Mobile */
@media  (max-width:620px){
    .hg-contact-page .hg-about-wrap,
    .hg-contact-page .hg-contact-grid{
        width:calc(100% - 28px) !important;
    }

    .hg-contact-page .hg-contact-hero{
        padding:28px 0 25px !important;
    }

    .hg-contact-page .hg-contact-hero h1{
        font-size:2.2rem !important;
    }

    .hg-contact-page .hg-contact-card h2{
        font-size:1.3rem !important;
    }

    .hg-contact-page .hg-contact-card{
        padding:23px 20px !important;
    }
}



/* =========================================================
   CONTACT V5 — SLIGHTLY LARGER + REFINED ICONS
   ========================================================= */

/* Slightly larger hero than V4, still compact */
.hg-contact-page .hg-contact-hero h1{
    font-size:clamp(2.55rem, 3.05vw, 3.15rem) !important;
}

.hg-contact-page .hg-contact-hero__lead{
    font-size:.88rem !important;
    line-height:1.52 !important;
}

/* Contact cards: +5–8% scale, without bringing back excess height */
.hg-contact-page .hg-contact-card{
    min-height:315px !important;
    padding:30px 36px 28px !important;
}

.hg-contact-page .hg-contact-card__icon{
    width:34px !important;
    height:34px !important;
    margin-bottom:14px !important;
}

.hg-contact-page .hg-contact-card__icon svg{
    width:34px !important;
    height:34px !important;
    stroke-width:1.25 !important;
}

.hg-contact-page .hg-contact-card__kicker{
    font-size:.61rem !important;
    margin-bottom:10px !important;
}

.hg-contact-page .hg-contact-card h2{
    font-size:clamp(1.33rem, 1.45vw, 1.55rem) !important;
    line-height:1.07 !important;
    margin-bottom:14px !important;
}

.hg-contact-page .hg-contact-card address{
    font-size:.81rem !important;
    line-height:1.48 !important;
}

.hg-contact-page .hg-contact-row{
    padding:12px 0 !important;
}

.hg-contact-page .hg-contact-row > span{
    font-size:.59rem !important;
}

.hg-contact-page .hg-contact-row a{
    font-size:.85rem !important;
}

.hg-contact-page .hg-contact-row small{
    font-size:.69rem !important;
}

/* Make icons feel more polished/airy */
.hg-contact-page .hg-contact-card__icon svg{
    stroke-linecap:round !important;
    stroke-linejoin:round !important;
}

/* Keep long heading from feeling cramped */
.hg-contact-page .hg-contact-card:nth-child(3) h2{
    max-width:330px !important;
}

/* Mobile */
@media  (max-width:620px){
    .hg-contact-page .hg-contact-hero h1{
        font-size:2.35rem !important;
    }

    .hg-contact-page .hg-contact-card h2{
        font-size:1.36rem !important;
    }

    .hg-contact-page .hg-contact-card__icon,
    .hg-contact-page .hg-contact-card__icon svg{
        width:32px !important;
        height:32px !important;
    }
}



/* =========================================================
   CONTACT V6 — CLEAN CONSISTENT ICONS
   ========================================================= */

.hg-contact-page .hg-contact-card__icon{
    width:31px !important;
    height:31px !important;
    margin-bottom:13px !important;
    color:#173452 !important;
}

.hg-contact-page .hg-contact-card__icon svg{
    display:block !important;
    width:31px !important;
    height:31px !important;
    fill:none !important;
    stroke:currentColor !important;
    stroke-width:1.15 !important;
    stroke-linecap:round !important;
    stroke-linejoin:round !important;
}



/* =========================================================
   CONTACT V7 — REMOVE SCROLL JUMP
   Keep the header in document flow with position: sticky.
   ========================================================= */

.hg-contact-page .hg-header--about-static,
.hg-contact-page .hg-header--about-static.is-scrolled{
    position:sticky !important;
    top:0 !important;
    left:auto !important;
    right:auto !important;

    height:76px !important;
    min-height:76px !important;

    background:rgba(251,250,246,.985) !important;
    box-shadow:0 1px 0 rgba(32,35,31,.07) !important;

    backdrop-filter:blur(10px) !important;
    -webkit-backdrop-filter:blur(10px) !important;

    transform:none !important;
    transition:none !important;
}

.hg-contact-page .hg-header--about-static .hg-header__inner,
.hg-contact-page .hg-header--about-static.is-scrolled .hg-header__inner,
.hg-contact-page .hg-header--about-static .hg-header__nav,
.hg-contact-page .hg-header--about-static.is-scrolled .hg-header__nav{
    height:76px !important;
    min-height:76px !important;
    transition:none !important;
}



/* WordPress admin bar */
body.admin-bar .hg-contact-page .hg-header--about-static,
body.admin-bar .hg-contact-page .hg-header--about-static.is-scrolled{
    top:32px !important;
}

@media  (max-width:782px){
    body.admin-bar .hg-contact-page .hg-header--about-static,
    body.admin-bar .hg-contact-page .hg-header--about-static.is-scrolled{
        top:46px !important;
    }
}



/* =========================================================
   HEADER V8 — HOME + PROPERTIES
   Adds one menu item without making the desktop header crowded.
   ========================================================= */

@media  (min-width:1101px){
    .hg-header__nav{
        gap:clamp(16px,1.65vw,28px) !important;
    }
}

/* Keep active state consistent for the new Home link */
.hg-header__nav > a.is-active{
    position:relative;
}

.hg-header__nav > a.is-active::after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom:-10px;
    height:1px;
    background:currentColor;
}



/* =========================================================
   BUYING GUIDE V9
   /att-kopa-bostad/ + /buying-a-home/
   ========================================================= */

body:has(.hg-buying-page){
    overflow-x:hidden;
    background:#fbfaf6;
}

body:has(.hg-buying-page) .wp-site-blocks{
    padding:0 !important;
}

body:has(.hg-buying-page) .wp-site-blocks > header,
body:has(.hg-buying-page) .wp-site-blocks > footer,
body:has(.hg-buying-page) .wp-block-post-title{
    display:none !important;
}

body:has(.hg-buying-page) .wp-block-post-content,
body:has(.hg-buying-page) main.wp-block-group{
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
}

body:has(.hg-buying-page) .wp-block-post-content > *{
    max-width:none !important;
    margin-block-start:0 !important;
    margin-block-end:0 !important;
}

.hg-buying-page{
    --buy-bg:#fbfaf6;
    --buy-green:#395a43;
    --buy-deep:#20231f;
    --buy-muted:#616761;
    --buy-line:rgba(23,52,82,.17);
    --buy-soft:#E7EEF8;
    --buy-card:#f7f5f0;
    --buy-max:1320px;

    width:100%;
    margin:0 !important;
    padding:0 !important;
    background:var(--buy-bg);
    color:var(--buy-deep);
    font-family:var(--hg-sans);
}

.hg-buying-page *,
.hg-buying-page *::before,
.hg-buying-page *::after{
    box-sizing:border-box;
}

.hg-buying-wrap{
    width:min(calc(100% - 112px), var(--buy-max));
    margin-inline:auto;
}

/* Header should behave like About/Contact */
.hg-buying-page .hg-header--about-static{
    position:sticky !important;
    top:0 !important;
    z-index:9999 !important;
    width:100% !important;
    height:76px !important;
    min-height:76px !important;
    background:rgba(251,250,246,.985) !important;
    color:var(--buy-deep) !important;
    border:0 !important;
    box-shadow:0 1px 0 rgba(32,35,31,.07) !important;
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
}

.hg-buying-page .hg-header--about-static .hg-header__inner,
.hg-buying-page .hg-header--about-static .hg-header__nav{
    height:76px !important;
    min-height:76px !important;
}

.hg-buying-page .hg-header--about-static .hg-header__inner{
    width:100% !important;
    max-width:none !important;
    padding:0 38px !important;
}



.hg-buying-page .hg-header--about-static .hg-header__nav{
    color:var(--buy-deep) !important;
}

.hg-buying-page .hg-header--about-static .hg-header__nav > a,
.hg-buying-page .hg-header--about-static .hg-menu-item > a,
.hg-buying-page .hg-header--about-static .hg-header__language,
.hg-buying-page .hg-header--about-static .hg-header__language a{
    color:var(--buy-deep) !important;
}

.hg-buying-page .hg-header--about-static .hg-menu-item--has-children{
    position:relative !important;
}

.hg-buying-page .hg-header--about-static .hg-dropdown{
    position:absolute !important;
    top:100% !important;
    left:0 !important;
    display:none !important;
    min-width:250px !important;
    background:#fbfaf6 !important;
    box-shadow:0 18px 38px rgba(23,52,82,.12) !important;
    z-index:10020 !important;
}

.hg-buying-page .hg-header--about-static .hg-menu-item--has-children:hover > .hg-dropdown,
.hg-buying-page .hg-header--about-static .hg-menu-item--has-children:focus-within > .hg-dropdown{
    display:block !important;
}

body.admin-bar .hg-buying-page .hg-header--about-static{
    top:32px !important;
}

/* Hero */
.hg-buying-hero{
    padding:52px 0 44px;
}

.hg-buying-hero__grid{
    display:grid;
    grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);
    min-height:330px;
    background:#f7f4ee;
}

.hg-buying-hero__copy{
    padding:56px 54px;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.hg-buying-page .hg-eyebrow{
    margin:0 0 13px;
    color:var(--buy-green);
    font-size:.64rem;
    font-weight:700;
    letter-spacing:.18em;
    line-height:1.2;
    text-transform:uppercase;
}

.hg-buying-hero h1{
    max-width:520px;
    margin:0;
    font-family:var(--hg-serif);
    font-size:clamp(3rem,4.4vw,4.7rem);
    font-weight:400;
    line-height:.98;
    letter-spacing:-.04em;
}

.hg-buying-hero__lead{
    max-width:450px;
    margin:22px 0 0;
    color:var(--buy-muted);
    font-size:.93rem;
    line-height:1.58;
}

.hg-buying-accent{
    width:48px;
    height:1px;
    margin-top:24px;
    background:var(--buy-green);
}

.hg-buying-hero__visual{
    min-height:330px;
    overflow:hidden;
    background:
        radial-gradient(circle at 72% 35%, rgba(255,255,255,.92), rgba(255,255,255,0) 26%),
        linear-gradient(125deg,#d7cdbf 0%,#ebe3d8 42%,#c5b9a9 100%);
}

.hg-buying-hero__visual-panel{
    position:relative;
    width:100%;
    height:100%;
    min-height:330px;
    background:
        linear-gradient(135deg,transparent 0 43%,rgba(23,52,82,.07) 43% 44%,transparent 44% 100%),
        linear-gradient(25deg,rgba(255,255,255,.42),transparent 55%);
}

.hg-buying-hero__line{
    position:absolute;
    display:block;
    height:1px;
    background:rgba(23,52,82,.18);
    transform-origin:left center;
}

.hg-buying-hero__line--1{width:58%;left:12%;top:62%;transform:rotate(-15deg);}
.hg-buying-hero__line--2{width:42%;left:44%;top:40%;transform:rotate(22deg);}
.hg-buying-hero__line--3{width:32%;left:58%;top:68%;transform:rotate(-42deg);}

/* Steps */
.hg-buying-steps{
    padding:0 0 34px;
}

.hg-buying-steps__grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:1px;
    background:var(--buy-line);
}

.hg-buying-step{
    display:grid;
    grid-template-columns:88px 1fr;
    gap:30px;
    min-height:285px;
    padding:38px 42px;
    background:#fbfaf6;
}

.hg-buying-step__number{
    padding-top:2px;
    color:#173452;
    font-family:var(--hg-serif);
    font-size:3.25rem;
    line-height:1;
    border-right:1px solid var(--buy-line);
}

.hg-buying-step__body{
    padding-right:8px;
}

.hg-buying-step h2,
.hg-buying-section-title{
    margin:0;
    font-family:var(--hg-serif);
    font-weight:400;
    letter-spacing:-.03em;
}

.hg-buying-step h2{
    font-size:1.75rem;
    line-height:1.05;
}

.hg-buying-step p{
    margin:16px 0 0;
    color:#424842;
    font-size:.84rem;
    line-height:1.62;
}

/* Banner */
.hg-buying-banner{
    width:min(calc(100% - 80px), 1440px);
    height:220px;
    margin:0 auto 42px;
    overflow:hidden;
}

.hg-buying-banner img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
    object-position:center;
}

/* Economy */
.hg-buying-economy{
    padding:8px 0 56px;
}

.hg-buying-section-title{
    max-width:700px;
    font-size:2.35rem;
    line-height:1.06;
}

.hg-buying-economy__grid{
    display:grid;
    grid-template-columns:1fr 1.45fr .85fr;
    margin-top:28px;
    border-top:1px solid var(--buy-line);
}

.hg-buying-info-card{
    padding:30px 34px 0 0;
}

.hg-buying-info-card + .hg-buying-info-card{
    padding-left:34px;
    border-left:1px solid var(--buy-line);
}

.hg-buying-info-card__icon,
.hg-buying-guarantee__icon{
    display:block;
    color:var(--buy-green);
}

.hg-buying-info-card__icon{
    width:30px;
    height:30px;
    margin-bottom:17px;
}

.hg-buying-info-card__icon svg,
.hg-buying-guarantee__icon svg{
    width:100%;
    height:100%;
    fill:none;
    stroke:currentColor;
    stroke-width:1.25;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.hg-buying-info-card h3,
.hg-buying-guarantee h3{
    margin:0;
    color:var(--buy-deep);
    font-size:.68rem;
    font-weight:750;
    letter-spacing:.12em;
    line-height:1.35;
    text-transform:uppercase;
}

.hg-buying-info-card p{
    margin:15px 0 0;
    color:#444a44;
    font-size:.8rem;
    line-height:1.62;
}

/* Guarantees */
.hg-buying-guarantees{
    padding:52px 0 58px;
    background:#E7EEF8;
}

.hg-buying-guarantees__grid{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:8px;
    margin-top:30px;
}

.hg-buying-guarantee{
    min-width:0;
    padding:25px 23px 28px;
    background:rgba(255,255,255,.64);
    border:1px solid rgba(23,52,82,.08);
}

.hg-buying-guarantee__icon{
    width:37px;
    height:37px;
    margin-bottom:20px;
    padding:8px;
    border-radius:50%;
    background:#f3f1ec;
}

.hg-buying-guarantee h3{
    min-height:38px;
}

.hg-buying-guarantee p{
    margin:14px 0 0;
    color:#484e48;
    font-size:.73rem;
    line-height:1.58;
}

/* CTA */
.hg-buying-cta{
    padding:42px 0;
    background:#f4efe7;
}

.hg-buying-cta__inner{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:50px;
}

.hg-buying-cta h2{
    margin:0;
    font-family:var(--hg-serif);
    font-size:2rem;
    font-weight:400;
    letter-spacing:-.03em;
}

.hg-buying-cta p:not(.hg-eyebrow){
    max-width:520px;
    margin:10px 0 0;
    color:var(--buy-muted);
    font-size:.86rem;
    line-height:1.55;
}

.hg-buying-cta__button{
    display:inline-flex;
    align-items:center;
    gap:12px;
    padding:14px 20px;
    color:#fff !important;
    background:#173452;
    font-size:.68rem;
    font-weight:700;
    letter-spacing:.12em;
    text-decoration:none !important;
    text-transform:uppercase;
}

.hg-buying-cta__button:hover{
    background:#173452;
}

/* Footer */
.hg-buying-page > .hg-footer{
    margin-top:0 !important;
}

/* Responsive */
@media  (max-width:1100px){
    .hg-buying-wrap{
        width:calc(100% - 48px);
    }

    .hg-buying-guarantees__grid{
        grid-template-columns:repeat(2,1fr);
    }

    .hg-buying-guarantee:last-child{
        grid-column:1 / -1;
    }
}

@media  (max-width:780px){
    .hg-buying-hero__grid,
    .hg-buying-steps__grid,
    .hg-buying-economy__grid{
        grid-template-columns:1fr;
    }

    .hg-buying-hero__copy{
        padding:42px 32px;
    }

    .hg-buying-hero__visual,
    .hg-buying-hero__visual-panel{
        min-height:220px;
    }

    .hg-buying-step{
        grid-template-columns:70px 1fr;
        min-height:0;
        padding:30px 28px;
    }

    .hg-buying-economy__grid{
        border-top:0;
    }

    .hg-buying-info-card,
    .hg-buying-info-card + .hg-buying-info-card{
        padding:26px 0;
        border-left:0;
        border-top:1px solid var(--buy-line);
    }

    .hg-buying-guarantees__grid{
        grid-template-columns:1fr;
    }

    .hg-buying-guarantee:last-child{
        grid-column:auto;
    }

    .hg-buying-cta__inner{
        align-items:flex-start;
        flex-direction:column;
    }
}

@media  (max-width:620px){
    .hg-buying-wrap{
        width:calc(100% - 28px);
    }

    .hg-buying-hero{
        padding:28px 0 30px;
    }

    .hg-buying-hero h1{
        font-size:2.75rem;
    }

    .hg-buying-banner{
        width:100%;
        height:165px;
        margin-bottom:34px;
    }

    .hg-buying-section-title{
        font-size:2rem;
    }

    body.admin-bar .hg-buying-page .hg-header--about-static{
        top:46px !important;
    }
}



/* =========================================================
   V11 — BUYING GUIDE HERO IMAGE + HEADER REFINEMENT
   ========================================================= */

.hg-buying-hero__visual{
    min-height:330px !important;
    background:none !important;
    overflow:hidden !important;
}

.hg-buying-hero__visual img{
    display:block !important;
    width:100% !important;
    height:100% !important;
    min-height:330px !important;
    object-fit:cover !important;
    object-position:center center !important;
}

.hg-buying-hero__visual-panel,
.hg-buying-hero__line{
    display:none !important;
}

.hg-buying-page .hg-header--about-static{
    height:86px !important;
    min-height:86px !important;
}

.hg-buying-page .hg-header--about-static .hg-header__inner,
.hg-buying-page .hg-header--about-static .hg-header__nav{
    height:86px !important;
    min-height:86px !important;
}

.hg-buying-page .hg-header--about-static .hg-header__inner{
    padding:0 46px !important;
}





.hg-buying-page .hg-header--about-static .hg-header__nav{
    gap:clamp(20px,1.7vw,30px) !important;
}

.hg-buying-page .hg-header--about-static .hg-header__nav > a,
.hg-buying-page .hg-header--about-static .hg-menu-item > a{
    font-size:.79rem !important;
    letter-spacing:.055em !important;
    font-weight:650 !important;
}

.hg-buying-page .hg-header--about-static .hg-header__language,
.hg-buying-page .hg-header--about-static .hg-header__language a{
    font-size:.76rem !important;
    letter-spacing:.04em !important;
}

.hg-buying-page .hg-header--about-static .hg-header__nav > a.is-active::after,
.hg-buying-page .hg-header--about-static .hg-menu-item > a.is-active::after{
    bottom:17px !important;
}

@media  (max-width:780px){
    .hg-buying-hero__visual img{
        min-height:220px !important;
    }
}



/* =========================================================
   V12 — HEADER + BUYING STEPS REFINEMENT
   Fixes small first-load header, line through header,
   double divider around step 02 and excess white space.
   ========================================================= */

/* ---- Header: same full size from first paint and after scroll ---- */
.hg-buying-page .hg-header--about-static,
.hg-buying-page .hg-header--about-static.is-scrolled{
    position:sticky !important;
    top:0 !important;
    height:102px !important;
    min-height:102px !important;
    background:rgba(251,250,246,.99) !important;
    border:0 !important;
    border-bottom:0 !important;
    box-shadow:none !important;
    transform:none !important;
    transition:none !important;
}

.hg-buying-page .hg-header--about-static .hg-header__inner,
.hg-buying-page .hg-header--about-static.is-scrolled .hg-header__inner{
    height:102px !important;
    min-height:102px !important;
    padding:0 52px !important;
    border:0 !important;
    box-shadow:none !important;
    display:flex !important;
    align-items:center !important;
}

.hg-buying-page .hg-header--about-static .hg-header__nav,
.hg-buying-page .hg-header--about-static.is-scrolled .hg-header__nav{
    height:102px !important;
    min-height:102px !important;
    display:flex !important;
    align-items:center !important;
    gap:clamp(20px,1.65vw,29px) !important;
    border:0 !important;
    box-shadow:none !important;
    transition:none !important;
}





.hg-buying-page .hg-header--about-static::before,
.hg-buying-page .hg-header--about-static::after,
.hg-buying-page .hg-header--about-static .hg-header__inner::before,
.hg-buying-page .hg-header--about-static .hg-header__inner::after{
    display:none !important;
    content:none !important;
}

/* Keep active underline close to text, not through header */
.hg-buying-page .hg-header--about-static .hg-header__nav > a.is-active::after,
.hg-buying-page .hg-header--about-static .hg-menu-item > a.is-active::after,
.hg-buying-page .hg-header--about-static.is-scrolled .hg-header__nav > a.is-active::after,
.hg-buying-page .hg-header--about-static.is-scrolled .hg-menu-item > a.is-active::after{
    bottom:28px !important;
    height:1px !important;
}

/* ---- Buying steps: remove double divider + reduce empty white space ---- */
.hg-buying-steps{
    padding:0 0 18px !important;
}

.hg-buying-steps__grid{
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:0 !important;
    background:transparent !important;
    border:0 !important;
}

.hg-buying-step{
    grid-template-columns:88px minmax(0,1fr) !important;
    gap:28px !important;
    min-height:0 !important;
    padding:30px 42px 32px !important;
    background:#fbfaf6 !important;
    border:0 !important;
    align-items:start !important;
}

.hg-buying-step + .hg-buying-step{
    border-left:0 !important;
}

.hg-buying-step__number{
    min-height:100% !important;
    padding:1px 24px 0 0 !important;
    border-right:1px solid rgba(23,52,82,.18) !important;
    border-left:0 !important;
}

.hg-buying-step__body{
    padding:0 !important;
}

.hg-buying-step h2{
    margin-top:0 !important;
}

.hg-buying-step p{
    margin-top:12px !important;
}

/* A subtle centre breathing gap without another vertical rule */
.hg-buying-step:first-child{
    padding-right:48px !important;
}

.hg-buying-step:last-child{
    padding-left:48px !important;
}

/* Remove possible inherited pseudo divider on step 02 */
.hg-buying-step::before,
.hg-buying-step::after,
.hg-buying-step__number::before,
.hg-buying-step__number::after{
    content:none !important;
    display:none !important;
}

body.admin-bar .hg-buying-page .hg-header--about-static,
body.admin-bar .hg-buying-page .hg-header--about-static.is-scrolled{
    top:32px !important;
}

@media  (max-width:782px){
    body.admin-bar .hg-buying-page .hg-header--about-static,
    body.admin-bar .hg-buying-page .hg-header--about-static.is-scrolled{
        top:46px !important;
    }
}

@media  (max-width:780px){
    .hg-buying-page .hg-header--about-static,
    .hg-buying-page .hg-header--about-static.is-scrolled,
    .hg-buying-page .hg-header--about-static .hg-header__inner,
    .hg-buying-page .hg-header--about-static.is-scrolled .hg-header__inner{
        min-height:82px !important;
        height:82px !important;
    }

    .hg-buying-steps__grid{
        grid-template-columns:1fr !important;
    }

    .hg-buying-step,
    .hg-buying-step:first-child,
    .hg-buying-step:last-child{
        padding:28px 26px !important;
    }
}



/* =========================================================
   V14 — SAFE RESTORE + HOMEPAGE-SIZED BUYING HEADER
   Built on the last working V12 stylesheet.
   ========================================================= */

/* Buying page header: use the same proportions as the homepage
   sticky/white header, without changing any other page. */
.hg-buying-page .hg-header--about-static,
.hg-buying-page .hg-header--about-static.is-scrolled{
    position:sticky !important;
    top:0 !important;
    width:100% !important;
    min-height:0 !important;
    height:auto !important;
    padding:6px 0 !important;
    background:rgba(251,250,246,.97) !important;
    color:var(--hg-charcoal) !important;
    border:0 !important;
    box-shadow:0 8px 30px rgba(23,52,82,.08) !important;
    backdrop-filter:blur(12px) !important;
    -webkit-backdrop-filter:blur(12px) !important;
    transform:none !important;
    transition:none !important;
}

.hg-buying-page .hg-header--about-static .hg-header__inner,
.hg-buying-page .hg-header--about-static.is-scrolled .hg-header__inner{
    width:100% !important;
    max-width:none !important;
    min-height:68px !important;
    height:auto !important;
    padding:0 40px !important;
    border:0 !important;
    box-shadow:none !important;
}



.hg-buying-page .hg-header--about-static .hg-header__nav,
.hg-buying-page .hg-header--about-static.is-scrolled .hg-header__nav{
    min-height:68px !important;
    height:auto !important;
    gap:clamp(14px,1.55vw,26px) !important;
    font-size:.66rem !important;
    align-items:center !important;
    transition:none !important;
}

.hg-buying-page .hg-header--about-static .hg-header__nav > a,
.hg-buying-page .hg-header--about-static .hg-menu-item > a,
.hg-buying-page .hg-header--about-static .hg-header__language,
.hg-buying-page .hg-header--about-static .hg-header__language a,
.hg-buying-page .hg-header--about-static.is-scrolled .hg-header__nav > a,
.hg-buying-page .hg-header--about-static.is-scrolled .hg-menu-item > a,
.hg-buying-page .hg-header--about-static.is-scrolled .hg-header__language,
.hg-buying-page .hg-header--about-static.is-scrolled .hg-header__language a{
    color:var(--hg-charcoal) !important;
}

/* No horizontal line through logo/menu */
.hg-buying-page .hg-header--about-static,
.hg-buying-page .hg-header--about-static .hg-header__inner{
    border-bottom:0 !important;
}

.hg-buying-page .hg-header--about-static::before,
.hg-buying-page .hg-header--about-static::after,
.hg-buying-page .hg-header--about-static .hg-header__inner::before,
.hg-buying-page .hg-header--about-static .hg-header__inner::after{
    content:none !important;
    display:none !important;
}

/* Keep active underline like homepage */
.hg-buying-page .hg-header--about-static .hg-header__nav > a.is-active::after,
.hg-buying-page .hg-header--about-static .hg-menu-item > a.is-active::after{
    bottom:-8px !important;
    height:1px !important;
}

/* Keep the page compact below the hero */
.hg-buying-steps{
    padding-bottom:14px !important;
}

.hg-buying-step{
    padding-top:28px !important;
    padding-bottom:28px !important;
}

body.admin-bar .hg-buying-page .hg-header--about-static,
body.admin-bar .hg-buying-page .hg-header--about-static.is-scrolled{
    top:32px !important;
}

@media  (max-width:782px){
    body.admin-bar .hg-buying-page .hg-header--about-static,
    body.admin-bar .hg-buying-page .hg-header--about-static.is-scrolled{
        top:46px !important;
    }
}



/* =========================================================
   V15 — TIGHTER GUARANTEES SECTION
   ========================================================= */

/* Reduce empty space above/below the guarantees section */
.hg-buying-guarantees{
    padding-top:46px !important;
    padding-bottom:50px !important;
}

/* Bring the cards closer to the section heading */
.hg-buying-guarantees__grid{
    margin-top:28px !important;
}

/* Slightly reduce padding inside each guarantee card */
.hg-buying-guarantee{
    padding:26px 24px 28px !important;
    min-height:0 !important;
}

/* Reduce the large gap before the following CTA section */
.hg-buying-cta{
    padding-top:42px !important;
}

@media  (max-width:780px){
    .hg-buying-guarantees{
        padding-top:36px !important;
        padding-bottom:38px !important;
    }

    .hg-buying-guarantees__grid{
        margin-top:22px !important;
    }

    .hg-buying-guarantee{
        padding:24px 22px !important;
    }
}


/* =========================================================
   V16 — GUARANTEES + CTA REFINEMENT
   ========================================================= */

/* Much tighter guarantees section, without shrinking the text */
.hg-buying-guarantees{
    padding:30px 0 32px !important;
}

.hg-buying-guarantees__grid{
    margin-top:20px !important;
}

/* Restore a little breathing room inside cards */
.hg-buying-guarantee{
    padding:27px 25px 28px !important;
}

/* Make guarantee copy slightly easier to read */
.hg-buying-guarantee p{
    font-size:.78rem !important;
    line-height:1.58 !important;
}

.hg-buying-guarantee h3{
    font-size:.72rem !important;
    line-height:1.35 !important;
}

/* CTA: clearly different background from guarantees */
.hg-buying-cta{
    padding:32px 0 34px !important;
    background:#e8dfd1 !important;
}

.hg-buying-cta h2{
    font-size:2.05rem !important;
}

.hg-buying-cta p:not(.hg-eyebrow){
    font-size:.9rem !important;
}

@media  (max-width:780px){
    .hg-buying-guarantees{
        padding:26px 0 28px !important;
    }

    .hg-buying-guarantees__grid{
        margin-top:18px !important;
    }

    .hg-buying-cta{
        padding:28px 0 30px !important;
    }
}


/* V17 — softer CTA background */
.hg-buying-cta{
    background:#f6f3ed !important;
}



/* =========================================================
   V18 — HYRESBOSTÄDER / RENTAL PROPERTIES
   ========================================================= */

body:has(.hg-rentals-page){
    overflow-x:hidden;
    background:#fbfaf6;
}

body:has(.hg-rentals-page) .wp-site-blocks{
    padding:0 !important;
}

body:has(.hg-rentals-page) .wp-site-blocks > header,
body:has(.hg-rentals-page) .wp-site-blocks > footer,
body:has(.hg-rentals-page) .wp-block-post-title{
    display:none !important;
}

body:has(.hg-rentals-page) .wp-block-post-content,
body:has(.hg-rentals-page) main.wp-block-group{
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
}

body:has(.hg-rentals-page) .wp-block-post-content > *{
    max-width:none !important;
    margin-block-start:0 !important;
    margin-block-end:0 !important;
}

.hg-rentals-page{
    --rent-bg:#fbfaf6;
    --rent-green:#294936;
    --rent-green-2:#395a43;
    --rent-ink:#20231f;
    --rent-muted:#626861;
    --rent-line:rgba(23,52,82,.17);
    --rent-soft:#E7EEF8;
    --rent-ivory:#f6f3ed;
    --rent-max:1320px;
    width:100%;
    margin:0;
    background:var(--rent-bg);
    color:var(--rent-ink);
}

.hg-rentals-page *,
.hg-rentals-page *::before,
.hg-rentals-page *::after{
    box-sizing:border-box;
}

.hg-rentals-wrap{
    width:min(calc(100% - 112px),var(--rent-max));
    margin-inline:auto;
}

/* Header: same family as About/Contact/Buying */
.hg-rentals-page .hg-header--about-static,
.hg-rentals-page .hg-header--about-static.is-scrolled{
    position:sticky !important;
    top:0 !important;
    z-index:9999 !important;
    background:rgba(251,250,246,.985) !important;
    color:var(--rent-ink) !important;
}

/* Hero */
.hg-rentals-hero__media{
    position:relative;
    min-height:470px;
    overflow:hidden;
}

.hg-rentals-hero__media > img{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
}

.hg-rentals-hero__shade{
    position:absolute;
    inset:0;
    background:linear-gradient(90deg,rgba(23,52,82,.82) 0%,rgba(23,52,82,.62) 34%,rgba(23,52,82,.18) 68%,rgba(23,52,82,.05) 100%);
}

.hg-rentals-hero__content{
    position:relative;
    z-index:2;
    min-height:470px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:flex-start;
    color:#fff;
}

.hg-rentals-eyebrow{
    margin:0 0 13px;
    color:#173452;
    font-size:.66rem;
    font-weight:750;
    letter-spacing:.18em;
    line-height:1.2;
    text-transform:uppercase;
}

.hg-rentals-hero .hg-rentals-eyebrow{
    color:#f4f1e9;
}

.hg-rentals-hero h1,
.hg-rentals-ownership h2,
.hg-rentals-interest h2,
.hg-rentals-tenant h2{
    margin:0;
    font-family:var(--hg-serif);
    font-weight:400;
    letter-spacing:-.035em;
}

.hg-rentals-hero h1{
    max-width:620px;
    font-size:clamp(3.7rem,5.8vw,5.6rem);
    line-height:.96;
}

.hg-rentals-hero__content > p:not(.hg-rentals-eyebrow){
    max-width:530px;
    margin:22px 0 0;
    color:rgba(255,255,255,.92);
    font-size:.95rem;
    line-height:1.65;
}

.hg-rentals-button{
    display:inline-flex;
    align-items:center;
    gap:14px;
    margin-top:26px;
    padding:14px 20px;
    font-size:.67rem;
    font-weight:750;
    letter-spacing:.11em;
    text-decoration:none !important;
    text-transform:uppercase;
}

.hg-rentals-button--outline{
    color:#fff !important;
    border:1px solid rgba(255,255,255,.8);
    background:rgba(23,52,82,.12);
}

/* Ownership */
.hg-rentals-ownership{
    padding:54px 0 50px;
}

.hg-rentals-ownership h2,
.hg-rentals-interest h2,
.hg-rentals-tenant h2{
    font-size:clamp(2.25rem,3.3vw,3.3rem);
    line-height:1;
}

.hg-rentals-short-line{
    display:block;
    width:42px;
    height:1px;
    margin-top:18px;
    background:#173452;
}

.hg-rentals-ownership__columns{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:90px;
    margin-top:30px;
}

.hg-rentals-ownership__columns p{
    margin:0;
    color:#474d47;
    font-size:.88rem;
    line-height:1.68;
    text-align:justify;
    text-align-last:left;
    hyphens:auto;
    -webkit-hyphens:auto;
}

/* Principles */
.hg-rentals-principles{
    background:var(--rent-green);
    color:#f7f3ea;
}

.hg-rentals-principles__grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
}

.hg-rentals-principle{
    min-height:150px;
    padding:28px 24px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
}

.hg-rentals-principle + .hg-rentals-principle{
    border-left:1px solid rgba(255,255,255,.18);
}

.hg-rentals-principle__icon{
    width:35px;
    height:35px;
    margin-bottom:15px;
}

.hg-rentals-principle__icon svg,
.hg-rentals-tenant-card__icon svg{
    width:100%;
    height:100%;
    fill:none;
    stroke:currentColor;
    stroke-width:1.25;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.hg-rentals-principle strong{
    max-width:210px;
    font-size:.68rem;
    line-height:1.45;
    letter-spacing:.11em;
    text-transform:uppercase;
}

/* Interest form */
.hg-rentals-interest{
    padding:58px 0 62px;
}

.hg-rentals-interest__grid{
    display:grid;
    grid-template-columns:minmax(0,1.05fr) minmax(380px,.95fr);
    gap:70px;
    align-items:stretch;
}

.hg-rentals-interest__intro{
    max-width:630px;
    margin:16px 0 26px;
    color:var(--rent-muted);
    font-size:.9rem;
    line-height:1.62;
}

.hg-rentals-form{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:17px 20px;
}

.hg-rentals-field{
    display:flex;
    flex-direction:column;
    gap:7px;
}

.hg-rentals-field--wide{
    grid-column:1 / -1;
}

.hg-rentals-field > span{
    font-size:.64rem;
    font-weight:750;
    letter-spacing:.11em;
    text-transform:uppercase;
}

.hg-rentals-field input,
.hg-rentals-field select{
    width:100%;
    min-height:43px;
    padding:9px 11px;
    border:1px solid rgba(32,35,31,.16);
    border-radius:0;
    background:#fff;
    color:var(--rent-ink);
    font:inherit;
    font-size:.84rem;
    outline:none;
}

.hg-rentals-field input:focus,
.hg-rentals-field select:focus{
    border-color:var(--rent-green-2);
}

.hg-rentals-form__submit{
    display:flex;
    align-items:flex-start;
    gap:16px;
    flex-direction:column;
}

.hg-rentals-form__submit button{
    display:inline-flex;
    align-items:center;
    gap:12px;
    padding:14px 19px;
    border:0;
    background:#173452;
    color:#fff;
    cursor:pointer;
    font-size:.66rem;
    font-weight:750;
    letter-spacing:.1em;
    text-transform:uppercase;
}

.hg-rentals-form__submit small{
    color:#7a8079;
    font-size:.69rem;
}

.hg-rentals-form-message{
    margin:0 0 20px;
    padding:12px 14px;
    font-size:.82rem;
}

.hg-rentals-form-message.is-success{
    background:#E7EEF8;
    color:#173452;
}

.hg-rentals-form-message.is-error{
    background:#f6eaea;
    color:#7b3434;
}

.hg-rentals-interest__image{
    min-height:610px;
    overflow:hidden;
}

.hg-rentals-interest__image img{
    display:block;
    width:100%;
    height:100%;
    min-height:610px;
    object-fit:cover;
}

/* Existing tenants */
.hg-rentals-tenant{
    padding:50px 0 56px;
    background:var(--rent-soft);
}

.hg-rentals-tenant__grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
    margin-top:28px;
}

.hg-rentals-tenant-card{
    display:grid;
    grid-template-columns:48px 1fr;
    gap:20px;
    min-height:220px;
    padding:30px;
    background:rgba(255,255,255,.68);
    border:1px solid rgba(23,52,82,.08);
}

.hg-rentals-tenant-card__icon{
    width:39px;
    height:39px;
    color:#173452;
}

.hg-rentals-tenant-card h3{
    margin:0;
    font-family:var(--hg-serif);
    font-size:1.55rem;
    font-weight:400;
}

.hg-rentals-tenant-card p{
    margin:12px 0 0;
    color:#535953;
    font-size:.82rem;
    line-height:1.6;
    text-align:justify;
    text-align-last:left;
    hyphens:auto;
    -webkit-hyphens:auto;
}

.hg-rentals-tenant-card a{
    color:var(--rent-green) !important;
    font-weight:650;
    text-decoration:none;
}

.hg-rentals-tenant-card > div > a{
    display:inline-block;
    margin-top:17px;
    font-size:.7rem;
    letter-spacing:.07em;
    text-transform:uppercase;
}

.hg-rentals-contact-details{
    margin-top:17px !important;
    font-size:.9rem !important;
    line-height:1.5 !important;
    text-align:left;
    hyphens:none;
    -webkit-hyphens:none;
}

/* Footer */
.hg-rentals-page > .hg-footer{
    margin-top:0 !important;
}

/* Responsive */
@media  (max-width:1000px){
    .hg-rentals-wrap{
        width:calc(100% - 48px);
    }

    .hg-rentals-interest__grid{
        grid-template-columns:1fr;
    }

    .hg-rentals-interest__image{
        min-height:390px;
    }

    .hg-rentals-interest__image img{
        min-height:390px;
    }
}

@media  (max-width:780px){
    .hg-rentals-hero__media,
    .hg-rentals-hero__content{
        min-height:500px;
    }

    .hg-rentals-ownership__columns,
    .hg-rentals-principles__grid,
    .hg-rentals-tenant__grid{
        grid-template-columns:1fr;
    }

    .hg-rentals-principle + .hg-rentals-principle{
        border-left:0;
        border-top:1px solid rgba(255,255,255,.18);
    }

    .hg-rentals-form{
        grid-template-columns:1fr;
    }

    .hg-rentals-field--wide{
        grid-column:auto;
    }
}

@media  (max-width:620px){
    .hg-rentals-wrap{
        width:calc(100% - 28px);
    }

    .hg-rentals-hero h1{
        font-size:3.25rem;
    }

    .hg-rentals-ownership,
    .hg-rentals-interest,
    .hg-rentals-tenant{
        padding-top:38px;
        padding-bottom:40px;
    }

    .hg-rentals-tenant-card{
        grid-template-columns:1fr;
    }
}


/* =========================================================
   V19 — RENTALS: COMPACT DARK-TEXT HEADER
   ========================================================= */
.hg-rentals-page .hg-header--about-static,
.hg-rentals-page .hg-header--about-static.is-scrolled{
    position:sticky !important;
    top:0 !important;
    padding:0 !important;
    min-height:68px !important;
    background:rgba(251,250,246,.99) !important;
    color:#20231f !important;
    box-shadow:0 1px 0 rgba(32,35,31,.07) !important;
    backdrop-filter:blur(10px) !important;
    -webkit-backdrop-filter:blur(10px) !important;
}
.hg-rentals-page .hg-header--about-static .hg-header__inner,
.hg-rentals-page .hg-header--about-static.is-scrolled .hg-header__inner{
    height:68px !important;
    min-height:68px !important;
}

.hg-rentals-page .hg-header--about-static .hg-header__nav,
.hg-rentals-page .hg-header--about-static.is-scrolled .hg-header__nav{
    height:68px !important;
    min-height:68px !important;
    gap:clamp(11px,1.2vw,19px) !important;
    font-size:.65rem !important;
}
.hg-rentals-page .hg-header--about-static .hg-header__nav > a,
.hg-rentals-page .hg-header--about-static .hg-menu-item > a,
.hg-rentals-page .hg-header--about-static .hg-header__language,
.hg-rentals-page .hg-header--about-static.is-scrolled .hg-header__nav > a,
.hg-rentals-page .hg-header--about-static.is-scrolled .hg-menu-item > a,
.hg-rentals-page .hg-header--about-static.is-scrolled .hg-header__language{
    color:#20231f !important;
}
.hg-rentals-page .hg-header--about-static .hg-header__nav a::after{
    bottom:-7px !important;
}
body.admin-bar .hg-rentals-page .hg-header--about-static,
body.admin-bar .hg-rentals-page .hg-header--about-static.is-scrolled{
    top:32px !important;
}
@media  (max-width:782px){
    body.admin-bar .hg-rentals-page .hg-header--about-static,
    body.admin-bar .hg-rentals-page .hg-header--about-static.is-scrolled{top:46px !important;}
}


/* =========================================================
   V20 — RENTALS HEADER = HOMEPAGE BEHAVIOUR, DARK TEXT
   Large on first load, smaller after scroll.
   Scoped ONLY to Hyresbostäder / Rental Properties.
   ========================================================= */

/* First-load state: same generous proportions as homepage */
.hg-rentals-page .hg-header--about-static,
.hg-rentals-page .hg-header--about-static:not(.is-scrolled){
    position:sticky !important;
    top:0 !important;
    z-index:9999 !important;
    width:100% !important;
    padding:12px 0 10px !important;
    background:rgba(251,250,246,.985) !important;
    color:#20231f !important;
    box-shadow:none !important;
    transform:none !important;
    transition:
        padding 220ms ease,
        box-shadow 220ms ease,
        background-color 220ms ease !important;
}

.hg-rentals-page .hg-header--about-static .hg-header__inner,
.hg-rentals-page .hg-header--about-static:not(.is-scrolled) .hg-header__inner{
    min-height:86px !important;
    height:auto !important;
    padding:0 40px !important;
    transition:min-height 220ms ease !important;
}





.hg-rentals-page .hg-header--about-static .hg-header__nav,
.hg-rentals-page .hg-header--about-static:not(.is-scrolled) .hg-header__nav{
    min-height:86px !important;
    height:auto !important;
    gap:clamp(16px,1.65vw,28px) !important;
    align-items:center !important;
    color:#20231f !important;
    transition:min-height 220ms ease,gap 220ms ease !important;
}

/* Force every menu/language element dark, including SV / EN */
.hg-rentals-page .hg-header--about-static .hg-header__nav > a,
.hg-rentals-page .hg-header--about-static .hg-menu-item > a,
.hg-rentals-page .hg-header--about-static .hg-header__language,
.hg-rentals-page .hg-header--about-static .hg-header__language a,
.hg-rentals-page .hg-header--about-static .hg-header__language span,
.hg-rentals-page .hg-header--about-static:not(.is-scrolled) .hg-header__nav > a,
.hg-rentals-page .hg-header--about-static:not(.is-scrolled) .hg-menu-item > a,
.hg-rentals-page .hg-header--about-static:not(.is-scrolled) .hg-header__language,
.hg-rentals-page .hg-header--about-static:not(.is-scrolled) .hg-header__language a,
.hg-rentals-page .hg-header--about-static:not(.is-scrolled) .hg-header__language span{
    color:#20231f !important;
}

/* Scroll state: homepage-style compact header */
.hg-rentals-page .hg-header--about-static.is-scrolled{
    position:fixed !important;
    top:0 !important;
    left:0 !important;
    right:0 !important;
    width:100% !important;
    padding:4px 0 !important;
    background:rgba(251,250,246,.97) !important;
    color:#20231f !important;
    box-shadow:0 6px 24px rgba(23,52,82,.08) !important;
    backdrop-filter:blur(14px) !important;
    -webkit-backdrop-filter:blur(14px) !important;
}

.hg-rentals-page .hg-header--about-static.is-scrolled .hg-header__inner{
    min-height:66px !important;
    height:auto !important;
    padding:0 40px !important;
}



.hg-rentals-page .hg-header--about-static.is-scrolled .hg-header__nav{
    min-height:66px !important;
    height:auto !important;
    gap:clamp(14px,1.45vw,24px) !important;
    color:#20231f !important;
}

.hg-rentals-page .hg-header--about-static.is-scrolled .hg-header__nav > a,
.hg-rentals-page .hg-header--about-static.is-scrolled .hg-menu-item > a,
.hg-rentals-page .hg-header--about-static.is-scrolled .hg-header__language,
.hg-rentals-page .hg-header--about-static.is-scrolled .hg-header__language a,
.hg-rentals-page .hg-header--about-static.is-scrolled .hg-header__language span{
    color:#20231f !important;
}

/* Keep the active underline neat */
.hg-rentals-page .hg-header--about-static .hg-header__nav > a.is-active::after,
.hg-rentals-page .hg-header--about-static .hg-menu-item > a.is-active::after{
    height:1px !important;
    background:#20231f !important;
}

/* WordPress admin bar offsets */
body.admin-bar .hg-rentals-page .hg-header--about-static.is-scrolled{
    top:32px !important;
}

@media  (max-width:782px){
    body.admin-bar .hg-rentals-page .hg-header--about-static.is-scrolled{
        top:46px !important;
    }
}


/* V21 — Match the HOME page logo/header scale */


.hg-rentals-page .hg-header--about-static:not(.is-scrolled) .hg-header__inner,
.hg-rentals-page .hg-header--about-static:not(.is-scrolled) .hg-header__nav{
    min-height:96px !important;
}

/* After scroll: same compact scale as Home */



/* =========================================================
   V22 — EXACT DESKTOP HOME HEADER DIMENSIONS
   Values copied from the existing Home-page CSS.
   Only colour differs: Rentals stays dark on light background.
   ========================================================= */
@media  (min-width:1101px){

    /* HOME: .hg-header { padding:38px 0 18px } */
    .hg-rentals-page .hg-header--about-static:not(.is-scrolled){
        padding:38px 0 18px !important;
        background:rgba(251,250,246,.985) !important;
        color:#20231f !important;
    }

    /* HOME: shell width = calc(100% - 72px) */
    .hg-rentals-page .hg-header--about-static:not(.is-scrolled) .hg-header__inner{
        width:calc(100% - 72px) !important;
        max-width:none !important;
        margin-left:auto !important;
        margin-right:auto !important;
        min-height:0 !important;
        padding:0 !important;
    }

    /* HOME exact logo box: 184 × 96 */
    

    

    /* HOME exact desktop nav spacing */
    .hg-rentals-page .hg-header--about-static:not(.is-scrolled) .hg-header__nav{
        min-height:0 !important;
        height:auto !important;
        gap:clamp(28px,2.5vw,44px) !important;
        font-size:.70rem !important;
        letter-spacing:.105em !important;
    }

    /* HOME scrolled state from existing CSS: 145 × 78, 4px vertical padding */
    .hg-rentals-page .hg-header--about-static.is-scrolled{
        padding:4px 0 !important;
        background:rgba(251,250,246,.97) !important;
        color:#20231f !important;
    }

    .hg-rentals-page .hg-header--about-static.is-scrolled .hg-header__inner{
        width:calc(100% - 72px) !important;
        max-width:none !important;
        margin-left:auto !important;
        margin-right:auto !important;
        min-height:0 !important;
        padding:0 !important;
    }

    

    

    /* Keep all rental navigation dark in BOTH states, including SV / EN */
    .hg-rentals-page .hg-header--about-static .hg-header__nav,
    .hg-rentals-page .hg-header--about-static .hg-header__nav a,
    .hg-rentals-page .hg-header--about-static .hg-menu-item > a,
    .hg-rentals-page .hg-header--about-static .hg-header__language,
    .hg-rentals-page .hg-header--about-static .hg-header__language a,
    .hg-rentals-page .hg-header--about-static .hg-header__language span{
        color:#20231f !important;
    }
}


/* =========================================================
   V23 — TRUE HOME HEADER VALUES
   These values come from the final active Home CSS cascade:
   .hg-header { padding:30px 0 20px; }
   .hg-header__brand { width:170px; height:100px; }
   .hg-header.is-scrolled { padding:10px 0; }
   .hg-header.is-scrolled .hg-header__brand { width:145px; height:78px; }
   .hg-shell { width:min(calc(100% - 64px), 1380px); }
   ========================================================= */

@media  (min-width:783px){

    /* Initial state — same geometry as Home */
    .hg-rentals-page .hg-header--about-static:not(.is-scrolled){
        padding:30px 0 20px !important;
        background:#fbfaf6 !important;
        color:#20231f !important;
        box-shadow:none !important;
    }

    .hg-rentals-page .hg-header--about-static:not(.is-scrolled) .hg-header__inner{
        width:min(calc(100% - 64px), 1380px) !important;
        max-width:none !important;
        min-height:0 !important;
        height:auto !important;
        margin-inline:auto !important;
        padding:0 !important;
    }

    

    

    /* Home's menu spacing */
    .hg-rentals-page .hg-header--about-static:not(.is-scrolled) .hg-header__nav{
        min-height:0 !important;
        height:auto !important;
        gap:clamp(18px,2.3vw,38px) !important;
        font-size:.75rem !important;
        letter-spacing:.07em !important;
    }

    /* Scrolled state — same geometry as Home */
    .hg-rentals-page .hg-header--about-static.is-scrolled{
        padding:10px 0 !important;
        background:rgba(251,250,246,.97) !important;
        color:#20231f !important;
        box-shadow:0 8px 30px rgba(23,52,82,.08) !important;
    }

    .hg-rentals-page .hg-header--about-static.is-scrolled .hg-header__inner{
        width:min(calc(100% - 64px), 1380px) !important;
        max-width:none !important;
        min-height:0 !important;
        height:auto !important;
        margin-inline:auto !important;
        padding:0 !important;
    }

    

    

    /* Dark text at all times on Rentals, including language switch */
    .hg-rentals-page .hg-header--about-static .hg-header__nav,
    .hg-rentals-page .hg-header--about-static .hg-header__nav a,
    .hg-rentals-page .hg-header--about-static .hg-menu-item > a,
    .hg-rentals-page .hg-header--about-static .hg-header__language,
    .hg-rentals-page .hg-header--about-static .hg-header__language a,
    .hg-rentals-page .hg-header--about-static .hg-header__language span{
        color:#20231f !important;
    }
}


/* =========================================================
   V24 — Hyresbostäder: same logo size, less white header space
   ========================================================= */
@media  (min-width:783px){

    /* Keep the 170x100 logo box, but reduce the header's outer whitespace */
    .hg-rentals-page .hg-header--about-static:not(.is-scrolled){
        padding:8px 0 6px !important;
    }

    .hg-rentals-page .hg-header--about-static:not(.is-scrolled) .hg-header__inner{
        min-height:0 !important;
        height:auto !important;
    }

    /* Slightly tighter scrolled version too */
    .hg-rentals-page .hg-header--about-static.is-scrolled{
        padding:4px 0 !important;
    }
}


/* =========================================================
   V25 — Compact shared headers:
   Hyresbostäder + Om oss + Kontakt
   Same logo behaviour, tighter whitespace on all three.
   ========================================================= */
@media  (min-width:783px){

    /* INITIAL STATE */
    .hg-rentals-page .hg-header--about-static:not(.is-scrolled),
    .hg-about-page .hg-header--about-static:not(.is-scrolled),
    .hg-contact-page .hg-header--about-static:not(.is-scrolled){
        padding:4px 0 3px !important;
        background:#fbfaf6 !important;
        color:#20231f !important;
    }

    .hg-rentals-page .hg-header--about-static:not(.is-scrolled) .hg-header__inner,
    .hg-about-page .hg-header--about-static:not(.is-scrolled) .hg-header__inner,
    .hg-contact-page .hg-header--about-static:not(.is-scrolled) .hg-header__inner{
        width:min(calc(100% - 64px), 1380px) !important;
        max-width:none !important;
        min-height:0 !important;
        height:auto !important;
        margin-inline:auto !important;
        padding:0 !important;
    }

    

    

    /* SCROLLED STATE */
    .hg-rentals-page .hg-header--about-static.is-scrolled,
    .hg-about-page .hg-header--about-static.is-scrolled,
    .hg-contact-page .hg-header--about-static.is-scrolled{
        padding:2px 0 !important;
        background:rgba(251,250,246,.97) !important;
        color:#20231f !important;
        box-shadow:0 8px 30px rgba(23,52,82,.08) !important;
    }

    

    /* BLACK NAV + LANGUAGE SWITCH ON ALL THREE */
    .hg-rentals-page .hg-header--about-static .hg-header__nav,
    .hg-rentals-page .hg-header--about-static .hg-header__nav a,
    .hg-rentals-page .hg-header--about-static .hg-header__language,
    .hg-rentals-page .hg-header--about-static .hg-header__language a,
    .hg-rentals-page .hg-header--about-static .hg-header__language span,
    .hg-about-page .hg-header--about-static .hg-header__nav,
    .hg-about-page .hg-header--about-static .hg-header__nav a,
    .hg-about-page .hg-header--about-static .hg-header__language,
    .hg-about-page .hg-header--about-static .hg-header__language a,
    .hg-about-page .hg-header--about-static .hg-header__language span,
    .hg-contact-page .hg-header--about-static .hg-header__nav,
    .hg-contact-page .hg-header--about-static .hg-header__nav a,
    .hg-contact-page .hg-header--about-static .hg-header__language,
    .hg-contact-page .hg-header--about-static .hg-header__language a,
    .hg-contact-page .hg-header--about-static .hg-header__language span{
        color:#20231f !important;
    }
}


/* =========================================================
   V26 — Om oss: new hero image
   ========================================================= */
.hg-about .hg-about-hero__image,
.hg-about-page .hg-about-hero__image{
    background:
        linear-gradient(90deg,rgba(248,247,242,.18) 0%,rgba(248,247,242,0) 8%),
        url("https://hemgarden.se/wp-content/uploads/2026/08/shutterstock_121564996-1400x700-1.jpg")
        center center/cover no-repeat !important;
}


/* =========================================================
   V27 — Home: new Scandinavian quality images
   Tidlös design + Material med omsorg
   ========================================================= */
.hg-home .hg-quality__image--design{
    background-image:
        url("https://hemgarden.se/wp-content/uploads/2026/07/Studio-2-1400x700-1.jpg") !important;
}

.hg-home .hg-quality__image--materials{
    background-image:
        url("https://hemgarden.se/wp-content/uploads/2026/08/Interor_style_1_3.jpg") !important;
}


/* =========================================================
   V28 — Requested image updates
   ========================================================= */

/* ATT KÖPA BOSTAD — hero image */
.hg-buying-page .hg-buying-hero,
.hg-buying-guide .hg-buying-hero,
.hg-buying-hero{
    background-image:
        linear-gradient(90deg,rgba(23,52,82,.42),rgba(23,52,82,.10)),
        url("https://hemgarden.se/wp-content/uploads/2026/08/top-1240x500-1.png") !important;
}

/* HOME — main hero/header image */
.hg-home .hg-hero,
.hg-home-page .hg-hero{
    background-image:
        linear-gradient(90deg,rgba(23,52,82,.38),rgba(23,52,82,.08)),
        url("https://hemgarden.se/wp-content/uploads/2026/08/Studio-2-1400x700-1.jpg") !important;
}

/* HOME — Material med omsorg */
.hg-home .hg-quality__image--materials{
    background-image:
        url("https://hemgarden.se/wp-content/uploads/2026/07/Interor_style_1_2.jpg") !important;
}

/* HOME — Tidlös design */
.hg-home .hg-quality__image--design{
    background-image:
        url("https://hemgarden.se/wp-content/uploads/2026/08/Interor_style_1_3.jpg") !important;
}


/* =========================================================
   V29 — Att köpa bostad: image only in the right-hand image box
   Restore the hero section background to its previous plain state.
   ========================================================= */
.hg-buying-page .hg-buying-hero,
.hg-buying-guide .hg-buying-hero,
.hg-buying-hero{
    background-image:none !important;
}


/* =========================================================
   V30 — CONTACT HEADER FIX
   Remove the old fixed 76px contact-header rules so Contact
   behaves exactly like the newer compact shared header.
   ========================================================= */
@media  (min-width:783px){

    .hg-contact-page .hg-header--about-static{
        position:sticky !important;
        top:0 !important;
        left:auto !important;
        right:auto !important;

        height:auto !important;
        min-height:0 !important;
        max-height:none !important;

        transform:none !important;
        transition:
            padding .22s ease,
            background-color .22s ease,
            box-shadow .22s ease !important;
    }

    .hg-contact-page .hg-header--about-static .hg-header__inner,
    .hg-contact-page .hg-header--about-static .hg-header__nav{
        height:auto !important;
        min-height:0 !important;
        max-height:none !important;
    }

    /* Before scroll — same compact header as Hyresbostäder / Om oss */
    .hg-contact-page .hg-header--about-static:not(.is-scrolled){
        padding:4px 0 3px !important;
        background:#fbfaf6 !important;
        box-shadow:0 1px 0 rgba(32,35,31,.07) !important;
    }

    .hg-contact-page .hg-header--about-static:not(.is-scrolled) .hg-header__inner{
        width:min(calc(100% - 64px), 1380px) !important;
        max-width:none !important;
        margin-inline:auto !important;
        padding:0 !important;
    }

    

    

    /* After scroll */
    .hg-contact-page .hg-header--about-static.is-scrolled{
        padding:2px 0 !important;
        background:rgba(251,250,246,.97) !important;
        box-shadow:0 8px 30px rgba(23,52,82,.08) !important;
    }

    .hg-contact-page .hg-header--about-static.is-scrolled .hg-header__inner{
        width:min(calc(100% - 64px), 1380px) !important;
        max-width:none !important;
        margin-inline:auto !important;
        padding:0 !important;
    }

    

    

    .hg-contact-page .hg-header--about-static .hg-header__nav,
    .hg-contact-page .hg-header--about-static .hg-header__nav a,
    .hg-contact-page .hg-header--about-static .hg-menu-item > a,
    .hg-contact-page .hg-header--about-static .hg-header__language,
    .hg-contact-page .hg-header--about-static .hg-header__language a,
    .hg-contact-page .hg-header--about-static .hg-header__language span{
        color:#20231f !important;
    }
}

/* Keep sticky header below the WordPress admin bar */
body.admin-bar .hg-contact-page .hg-header--about-static{
    top:32px !important;
}

@media  (max-width:782px){
    body.admin-bar .hg-contact-page .hg-header--about-static{
        top:46px !important;
    }
}


/* =========================================================
   V31 — ABOUT HEADER FIX
   Remove old About-specific header sizing so it matches the
   compact shared header used on Rentals + Contact.
   ========================================================= */
@media  (min-width:783px){

    .hg-about-page .hg-header--about-static{
        position:sticky !important;
        top:0 !important;
        left:auto !important;
        right:auto !important;

        height:auto !important;
        min-height:0 !important;
        max-height:none !important;

        transform:none !important;
        transition:
            padding .22s ease,
            background-color .22s ease,
            box-shadow .22s ease !important;
    }

    .hg-about-page .hg-header--about-static .hg-header__inner,
    .hg-about-page .hg-header--about-static .hg-header__nav{
        height:auto !important;
        min-height:0 !important;
        max-height:none !important;
    }

    /* Before scroll */
    .hg-about-page .hg-header--about-static:not(.is-scrolled){
        padding:4px 0 3px !important;
        background:#fbfaf6 !important;
        color:#20231f !important;
        box-shadow:0 1px 0 rgba(32,35,31,.07) !important;
    }

    .hg-about-page .hg-header--about-static:not(.is-scrolled) .hg-header__inner{
        width:min(calc(100% - 64px), 1380px) !important;
        max-width:none !important;
        margin-inline:auto !important;
        padding:0 !important;
    }

    

    

    /* After scroll */
    .hg-about-page .hg-header--about-static.is-scrolled{
        padding:2px 0 !important;
        background:rgba(251,250,246,.97) !important;
        color:#20231f !important;
        box-shadow:0 8px 30px rgba(23,52,82,.08) !important;
    }

    .hg-about-page .hg-header--about-static.is-scrolled .hg-header__inner{
        width:min(calc(100% - 64px), 1380px) !important;
        max-width:none !important;
        margin-inline:auto !important;
        padding:0 !important;
    }

    

    

    .hg-about-page .hg-header--about-static .hg-header__nav,
    .hg-about-page .hg-header--about-static .hg-header__nav a,
    .hg-about-page .hg-header--about-static .hg-menu-item > a,
    .hg-about-page .hg-header--about-static .hg-header__language,
    .hg-about-page .hg-header--about-static .hg-header__language a,
    .hg-about-page .hg-header--about-static .hg-header__language span{
        color:#20231f !important;
    }
}

body.admin-bar .hg-about-page .hg-header--about-static{
    top:32px !important;
}

@media  (max-width:782px){
    body.admin-bar .hg-about-page .hg-header--about-static{
        top:46px !important;
    }
}


/* =========================================================
   V32 — ATT KÖPA BOSTAD HEADER FIX
   Match the same compact shared header used on
   Hyresbostäder + Om oss + Kontakt.
   ========================================================= */
@media  (min-width:783px){

    .hg-buying-page .hg-header--about-static{
        position:sticky !important;
        top:0 !important;
        left:auto !important;
        right:auto !important;

        height:auto !important;
        min-height:0 !important;
        max-height:none !important;

        transform:none !important;
        transition:
            padding .22s ease,
            background-color .22s ease,
            box-shadow .22s ease !important;
    }

    .hg-buying-page .hg-header--about-static .hg-header__inner,
    .hg-buying-page .hg-header--about-static .hg-header__nav{
        height:auto !important;
        min-height:0 !important;
        max-height:none !important;
    }

    /* Before scroll */
    .hg-buying-page .hg-header--about-static:not(.is-scrolled){
        padding:4px 0 3px !important;
        background:#fbfaf6 !important;
        color:#20231f !important;
        box-shadow:0 1px 0 rgba(32,35,31,.07) !important;
    }

    .hg-buying-page .hg-header--about-static:not(.is-scrolled) .hg-header__inner{
        width:min(calc(100% - 64px), 1380px) !important;
        max-width:none !important;
        margin-inline:auto !important;
        padding:0 !important;
    }

    

    

    /* After scroll */
    .hg-buying-page .hg-header--about-static.is-scrolled{
        padding:2px 0 !important;
        background:rgba(251,250,246,.97) !important;
        color:#20231f !important;
        box-shadow:0 8px 30px rgba(23,52,82,.08) !important;
    }

    .hg-buying-page .hg-header--about-static.is-scrolled .hg-header__inner{
        width:min(calc(100% - 64px), 1380px) !important;
        max-width:none !important;
        margin-inline:auto !important;
        padding:0 !important;
    }

    

    

    .hg-buying-page .hg-header--about-static .hg-header__nav,
    .hg-buying-page .hg-header--about-static .hg-header__nav a,
    .hg-buying-page .hg-header--about-static .hg-menu-item > a,
    .hg-buying-page .hg-header--about-static .hg-header__language,
    .hg-buying-page .hg-header--about-static .hg-header__language a,
    .hg-buying-page .hg-header--about-static .hg-header__language span{
        color:#20231f !important;
    }
}

body.admin-bar .hg-buying-page .hg-header--about-static{
    top:32px !important;
}

@media  (max-width:782px){
    body.admin-bar .hg-buying-page .hg-header--about-static{
        top:46px !important;
    }
}


/* =========================================================
   V33 — HYRESBOSTÄDER: tighter interest-registration section
   Smaller image + less vertical spacing, while keeping the
   existing form structure and visual language.
   ========================================================= */
@media  (min-width:981px){

    .hg-rentals-page .hg-rentals-interest{
        padding-top:34px !important;
        padding-bottom:34px !important;
    }

    .hg-rentals-page .hg-rentals-interest__inner{
        align-items:start !important;
        gap:44px !important;
    }

    .hg-rentals-page .hg-rentals-interest__content{
        padding-top:0 !important;
        padding-bottom:0 !important;
    }

    .hg-rentals-page .hg-rentals-interest__content .hg-eyebrow{
        margin-bottom:10px !important;
    }

    .hg-rentals-page .hg-rentals-interest__content h2{
        margin-top:0 !important;
        margin-bottom:12px !important;
    }

    .hg-rentals-page .hg-rentals-interest__intro{
        margin-bottom:24px !important;
        max-width:690px !important;
    }

    .hg-rentals-page .hg-rentals-form{
        gap:15px 20px !important;
    }

    .hg-rentals-page .hg-rentals-form__field{
        gap:6px !important;
    }

    .hg-rentals-page .hg-rentals-form input,
    .hg-rentals-page .hg-rentals-form select{
        min-height:48px !important;
        height:48px !important;
        padding-top:9px !important;
        padding-bottom:9px !important;
    }

    .hg-rentals-page .hg-rentals-form__actions{
        margin-top:2px !important;
    }

    /* Smaller image instead of filling the full form height */
    .hg-rentals-page .hg-rentals-interest__visual{
        width:100% !important;
        max-width:560px !important;
        height:590px !important;
        min-height:0 !important;
        justify-self:end !important;
        align-self:start !important;
        overflow:hidden !important;
    }

    .hg-rentals-page .hg-rentals-interest__visual img{
        width:100% !important;
        height:100% !important;
        object-fit:cover !important;
        object-position:center !important;
    }
}


/* =========================================================
   V34 — HYRESBOSTÄDER
   Tighter hero + much more compact interest form section.
   Uses the actual rental-page class names.
   ========================================================= */

@media  (min-width:981px){

    /* HERO — lower overall height and move content upward */
    .hg-rentals-page .hg-rentals-hero__media{
        min-height:400px !important;
        height:400px !important;
    }

    .hg-rentals-page .hg-rentals-hero__content{
        min-height:400px !important;
        height:400px !important;
        justify-content:center !important;
        transform:translateY(-12px) !important;
    }

    .hg-rentals-page .hg-rentals-hero .hg-rentals-eyebrow{
        margin-bottom:8px !important;
    }

    .hg-rentals-page .hg-rentals-hero h1{
        margin:0 !important;
        line-height:.93 !important;
    }

    .hg-rentals-page .hg-rentals-hero__content > p:not(.hg-rentals-eyebrow){
        margin-top:14px !important;
        line-height:1.52 !important;
    }

    .hg-rentals-page .hg-rentals-button{
        margin-top:18px !important;
        padding:12px 18px !important;
    }

    /* INTEREST SECTION — reduce all excess whitespace */
    .hg-rentals-page .hg-rentals-interest{
        padding:34px 0 34px !important;
    }

    .hg-rentals-page .hg-rentals-interest__grid{
        grid-template-columns:minmax(0,1.12fr) minmax(300px,.72fr) !important;
        gap:38px !important;
        align-items:start !important;
    }

    .hg-rentals-page .hg-rentals-interest .hg-rentals-eyebrow{
        margin-bottom:7px !important;
    }

    .hg-rentals-page .hg-rentals-interest h2{
        margin:0 !important;
        line-height:.96 !important;
    }

    .hg-rentals-page .hg-rentals-interest__intro{
        margin:10px 0 18px !important;
        max-width:660px !important;
        line-height:1.5 !important;
    }

    .hg-rentals-page .hg-rentals-form{
        gap:12px 18px !important;
    }

    .hg-rentals-page .hg-rentals-field{
        gap:5px !important;
    }

    .hg-rentals-page .hg-rentals-field input,
    .hg-rentals-page .hg-rentals-field select{
        min-height:40px !important;
        height:40px !important;
        padding:7px 10px !important;
    }

    .hg-rentals-page .hg-rentals-form__submit{
        gap:10px !important;
    }

    .hg-rentals-page .hg-rentals-form__submit button{
        padding:12px 18px !important;
    }

    /* Much smaller image */
    .hg-rentals-page .hg-rentals-interest__image{
        width:100% !important;
        max-width:455px !important;
        min-height:0 !important;
        height:455px !important;
        justify-self:end !important;
        align-self:start !important;
        overflow:hidden !important;
    }

    .hg-rentals-page .hg-rentals-interest__image img{
        width:100% !important;
        height:455px !important;
        min-height:0 !important;
        object-fit:cover !important;
        object-position:center !important;
    }
}


/* =========================================================
   V36 — HYRESBOSTÄDER / RENTAL PROPERTIES
   New residential hero + English title on one line.
   ========================================================= */

/* Replace laptop image with D3X2458 */
.hg-rentals-page .hg-rentals-hero__media{
    background-image:
        linear-gradient(90deg,rgba(23,52,82,.62) 0%,rgba(23,52,82,.35) 43%,rgba(23,52,82,.08) 76%),
        url("https://hemgarden.se/wp-content/uploads/2026/08/D3X2458-1400x700-1.jpg") !important;
    background-size:cover !important;
    background-position:center center !important;
}

/* Keep English hero heading on one line on desktop */
@media  (min-width:1101px){
    html[lang^="en"] .hg-rentals-page .hg-rentals-hero h1,
    .hg-rentals-page.hg-is-en .hg-rentals-hero h1{
        white-space:nowrap !important;
        max-width:none !important;
        width:max-content !important;
        font-size:clamp(3.7rem,5.15vw,5.15rem) !important;
    }
}


/* =========================================================
   V37 — ATT KÖPA BOSTAD
   Reposition the wide lifestyle image so the woman's face
   is visible within the shallow panoramic crop.
   ========================================================= */
.hg-buying-page .hg-buying-wide-image img,
.hg-buying-guide .hg-buying-wide-image img,
.hg-buying-wide-image img{
    object-position:center 28% !important;
}


/* =========================================================
   V38 — ATT KÖPA BOSTAD
   Correct selector for the wide banner image.
   Move crop upward so the woman's face is visible.
   ========================================================= */
.hg-buying-banner img{
    object-position:center 18% !important;
}

/* V39 — move the buying-page lifestyle banner slightly higher */
.hg-buying-banner img{
    object-position:center 10% !important;
}


/* =========================================================
   V40 — HOME HERO
   Cleaner / lighter presentation, same text and same slider images.
   Keeps automatic rotation; makes the existing indicators feel clickable.
   ========================================================= */

@media  (min-width:981px){
    .hg-home .hg-hero,
    .hg-home-page .hg-hero{
        min-height:600px !important;
        height:600px !important;
    }

    .hg-home .hg-hero__inner,
    .hg-home-page .hg-hero__inner{
        min-height:600px !important;
        height:600px !important;
    }

    .hg-home .hg-hero__slide,
    .hg-home-page .hg-hero__slide{
        background-size:cover !important;
        background-position:center center !important;
    }

    .hg-home .hg-hero__shade,
    .hg-home-page .hg-hero__shade{
        background:
            linear-gradient(
                90deg,
                rgba(23,52,82,.72) 0%,
                rgba(23,52,82,.58) 25%,
                rgba(23,52,82,.30) 43%,
                rgba(23,52,82,.10) 60%,
                rgba(23,52,82,0) 78%
            ) !important;
    }

    .hg-home .hg-hero__content,
    .hg-home-page .hg-hero__content{
        min-height:600px !important;
        height:600px !important;
        justify-content:center !important;
        padding-top:24px !important;
        padding-bottom:34px !important;
    }

    .hg-home .hg-hero__kicker,
    .hg-home-page .hg-hero__kicker{
        margin-bottom:12px !important;
    }

    .hg-home .hg-hero h1,
    .hg-home-page .hg-hero h1{
        margin:0 !important;
        line-height:.94 !important;
    }

    .hg-home .hg-hero__lead,
    .hg-home-page .hg-hero__lead{
        margin-top:18px !important;
        margin-bottom:0 !important;
        max-width:620px !important;
        line-height:1.5 !important;
    }

    .hg-home .hg-hero .hg-button,
    .hg-home-page .hg-hero .hg-button{
        margin-top:22px !important;
    }

    .hg-home .hg-hero__caption,
    .hg-home-page .hg-hero__caption{
        bottom:28px !important;
    }

    .hg-home .hg-hero__progress,
    .hg-home-page .hg-hero__progress,
    .hg-home .hg-hero__dots,
    .hg-home-page .hg-hero__dots{
        bottom:28px !important;
    }
}

/* Give the existing indicators a more intentional interactive feel */
.hg-home .hg-hero__progress button,
.hg-home .hg-hero__progress span,
.hg-home-page .hg-hero__progress button,
.hg-home-page .hg-hero__progress span,
.hg-home .hg-hero__dots button,
.hg-home .hg-hero__dots span,
.hg-home-page .hg-hero__dots button,
.hg-home-page .hg-hero__dots span{
    cursor:pointer !important;
    transition:opacity .2s ease, transform .2s ease, width .2s ease !important;
}

.hg-home .hg-hero__progress button:hover,
.hg-home .hg-hero__progress span:hover,
.hg-home-page .hg-hero__progress button:hover,
.hg-home-page .hg-hero__progress span:hover,
.hg-home .hg-hero__dots button:hover,
.hg-home .hg-hero__dots span:hover,
.hg-home-page .hg-hero__dots button:hover,
.hg-home-page .hg-hero__dots span:hover{
    opacity:1 !important;
    transform:translateY(-1px) !important;
}


/* =========================================================
   V41 — ACTUAL HOME HERO TARGET
   The hero sits BEFORE <main class="hg-home">, so selectors such as
   ".hg-home .hg-hero" could never match it. This dedicated class
   applies the intended redesign to the real homepage hero.
   ========================================================= */

@media  (min-width:1101px){
    .hg-hero--home{
        height:600px !important;
        min-height:600px !important;
    }

    body:not(.admin-bar) .hg-hero--home{
        height:600px !important;
        min-height:600px !important;
    }

    .hg-hero--home .hg-hero__inner{
        height:600px !important;
        min-height:600px !important;
    }

    .hg-hero--home .hg-hero__content{
        height:auto !important;
        min-height:0 !important;
        justify-content:flex-start !important;
        padding:0 !important;
        transform:translateY(-2px) !important;
        max-width:515px !important;
    }

    .hg-hero--home .hg-hero__kicker{
        margin:0 0 12px !important;
    }

    .hg-hero--home h1{
        margin:0 0 18px !important;
        line-height:.94 !important;
    }

    .hg-hero--home .hg-hero__lead{
        margin:0 0 22px !important;
        max-width:500px !important;
        line-height:1.5 !important;
    }

    .hg-hero--home .hg-button,
    .hg-hero--home .hg-button--light{
        margin-top:0 !important;
    }

    .hg-hero--home .hg-hero__shade{
        background:
            linear-gradient(
                90deg,
                rgba(23,52,82,.72) 0%,
                rgba(23,52,82,.57) 25%,
                rgba(23,52,82,.31) 43%,
                rgba(23,52,82,.11) 59%,
                rgba(23,52,82,.02) 75%,
                rgba(23,52,82,0) 100%
            ) !important;
    }

    .hg-hero--home .hg-hero__slide,
    .hg-hero--home .hg-hero__slide.is-active{
        background-size:cover !important;
        transform:none !important;
    }

    .hg-hero--home .hg-hero__caption{
        bottom:24px !important;
    }

    .hg-hero--home .hg-hero__progress{
        bottom:28px !important;
    }
}

/* =========================================================
   V312 — Presence map sizing
   Keep the new city map, but return it to the calmer scale
   used by the previous Sweden map.
   ========================================================= */
@media  (min-width:981px){
  html body .hg-presence__map > svg{
    display:block !important;
    width:min(100%, 290px) !important;
    max-width:290px !important;
    height:auto !important;
    max-height:470px !important;
    margin:0 auto !important;
  }
}

@media  (max-width:980px){
  html body .hg-presence__map > svg{
    display:block !important;
    width:min(100%, 280px) !important;
    max-width:280px !important;
    height:auto !important;
    margin:0 auto !important;
  }
}

@media  (max-width:620px){
  html body .hg-presence__map > svg{
    width:min(100%, 245px) !important;
    max-width:245px !important;
  }
}

/* =========================================================
   V313 — Homes for sale hero/header + tighter awards
   ========================================================= */
html body .hg-homes-sale-page .hg-header,
html body .hg-homes-sale-page .hg-header.is-scrolled,
html body .hg-homes-sale-page .hg-header.hg-header--about-static,
html body .hg-homes-sale-page .hg-header.hg-header--about-static.is-scrolled{
  background:#fff !important;
  background-color:#fff !important;
}

@media  (min-width:901px){
  html body .hg-homes-sale-page .hg-sale-hero__copy{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    padding-left:42px !important;
    padding-right:42px !important;
  }
  html body .hg-homes-sale-page .hg-sale-hero__inner{
    width:min(100%,600px) !important;
    max-width:600px !important;
  }
  html body .hg-homes-sale-page .hg-sale-hero h1{
    font-size:clamp(62px,4.85vw,82px) !important;
    line-height:.96 !important;
    letter-spacing:-.038em !important;
  }
  html body .hg-homes-sale-page .hg-sale-hero__lead{
    max-width:545px !important;
    font-size:20px !important;
    line-height:1.55 !important;
  }
}

html body .hg-home .hg-awards,
html body .hg-home-page .hg-awards{
  padding-top:12px !important;
  padding-bottom:14px !important;
}
@media  (max-width:1100px){
  html body .hg-home .hg-awards,
  html body .hg-home-page .hg-awards{
    padding-top:14px !important;
    padding-bottom:14px !important;
  }
}


/* V314 — Awards: slightly tighter vertical spacing */
@media  (min-width:1101px){
html body .hg-home .hg-awards,
html body .hg-home-page .hg-awards,
html body .hg-awards{
    padding-top:9px !important;
    padding-bottom:10px !important;
}
}

/* V315 — Homes for sale hero typography matches About hero */
@media  (min-width:821px){
  html body .hg-homes-sale-page .hg-sale-hero h1{
    font-size:clamp(2.65rem,3vw,3.45rem)!important;
    line-height:1.00!important;
    letter-spacing:-.03em!important;
  }
  html body .hg-homes-sale-page .hg-sale-hero__lead{
    max-width:470px!important;
    font-size:.95rem!important;
    line-height:1.52!important;
  }
}

/* =========================================================
   V318 — Consolidated final overrides
   ========================================================= */
@media  (min-width:1101px){
  html body .hg-home .hg-awards,
  html body .hg-home-page .hg-awards,
  html body .hg-awards{
    padding-top:9px !important;
    padding-bottom:10px !important;
  }

  html body .hg-hero.hg-hero--home .hg-hero__media,
  html body .hg-hero.hg-hero--home .hg-hero__slides{
    position:absolute !important;
    inset:0 !important;
    width:100% !important;
    height:100% !important;
    overflow:hidden !important;
    background:#f7f4ef !important;
  }

  html body .hg-hero.hg-hero--home .hg-hero__slide,
  html body .hg-hero.hg-hero--home .hg-hero__slide.is-active,
  html body .hg-hero.hg-hero--home .hg-hero__slide--interior,
  html body .hg-hero.hg-hero--home .hg-hero__slide--interior.is-active{
    position:absolute !important;
    inset:-2px !important;
    width:calc(100% + 4px) !important;
    min-width:calc(100% + 4px) !important;
    height:calc(100% + 4px) !important;
    min-height:calc(100% + 4px) !important;
    max-width:none !important;
    max-height:none !important;
    background-size:cover !important;
    background-repeat:no-repeat !important;
    border:0 !important;
    box-shadow:none !important;
    outline:0 !important;
    transform:none !important;
  }

  html body .hg-hero.hg-hero--home::before{
    content:"" !important;
    display:block !important;
    position:absolute !important;
    z-index:8 !important;
    inset:0 !important;
    pointer-events:none !important;
    background:linear-gradient(90deg,
      rgba(247,244,239,1) 0%,
      rgba(247,244,239,1) 18%,
      rgba(247,244,239,.995) 22%,
      rgba(247,244,239,.96) 28%,
      rgba(247,244,239,.86) 34%,
      rgba(247,244,239,.68) 41%,
      rgba(247,244,239,.46) 48%,
      rgba(247,244,239,.27) 55%,
      rgba(247,244,239,.12) 62%,
      rgba(247,244,239,.04) 68%,
      rgba(247,244,239,0) 74%) !important;
  }
  html body .hg-hero.hg-hero--home .hg-hero__media::before,
  html body .hg-hero.hg-hero--home .hg-hero__media::after,
  html body .hg-hero.hg-hero--home .hg-hero__shade{
    content:none !important;
    display:none !important;
  }
}

html body .hg-homes-sale-page .hg-header,
html body .hg-homes-sale-page .hg-header.is-scrolled,
html body .hg-homes-sale-page .hg-header.hg-header--about-static,
html body .hg-homes-sale-page .hg-header.hg-header--about-static.is-scrolled{
  background:#fff !important;
  background-color:#fff !important;
}

@media  (min-width:821px){
  html body .hg-homes-sale-page .hg-sale-hero h1{
    font-size:clamp(2.65rem,3vw,3.45rem) !important;
    line-height:1 !important;
    letter-spacing:-.03em !important;
  }
  html body .hg-homes-sale-page .hg-sale-hero__lead{
    max-width:470px !important;
    font-size:.95rem !important;
    line-height:1.52 !important;
  }
}

/* V319 — Homes for sale: tighter spacing below hero */
html body .hg-homes-sale-page .hg-sale-projects{
  padding-top:32px !important;
}


/* V320 — Homes for sale hero: subtle beige-to-image fade */
@media  (min-width:901px){
  html body .hg-homes-sale-page .hg-sale-hero{
    position:relative !important;
    overflow:hidden !important;
  }
  html body .hg-homes-sale-page .hg-sale-hero__copy{
    position:relative !important;
    z-index:3 !important;
    background:#F7F4EF !important;
  }
  html body .hg-homes-sale-page .hg-sale-hero__media{
    position:relative !important;
    z-index:1 !important;
    overflow:visible !important;
  }
  html body .hg-homes-sale-page .hg-sale-hero__media::before{
    content:"" !important;
    display:block !important;
    position:absolute !important;
    z-index:2 !important;
    top:0 !important;
    bottom:0 !important;
    left:-165px !important;
    width:185px !important;
    pointer-events:none !important;
    background:linear-gradient(90deg,
      rgba(247,244,239,1) 0%,
      rgba(247,244,239,.98) 18%,
      rgba(247,244,239,.88) 38%,
      rgba(247,244,239,.62) 60%,
      rgba(247,244,239,.28) 79%,
      rgba(247,244,239,0) 100%) !important;
  }
  html body .hg-homes-sale-page .hg-sale-hero__media img{
    position:relative !important;
    z-index:1 !important;
  }
}

/* V321 — Homes for sale official project cards + modal styling */

.hg-homes-sale-page .hg-sale-card--clickable{cursor:pointer;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.hg-homes-sale-page .hg-sale-card--clickable:hover,.hg-homes-sale-page .hg-sale-card--clickable:focus-visible{transform:translateY(-3px);box-shadow:0 14px 34px rgba(23,52,82,.09);border-color:rgba(23,52,82,.25);outline:none}
.hg-homes-sale-page .hg-sale-modal{position:fixed;inset:0;z-index:100000;display:none;align-items:center;justify-content:center;padding:28px;box-sizing:border-box}
.hg-homes-sale-page .hg-sale-modal.is-open{display:flex}
.hg-homes-sale-page .hg-sale-modal__backdrop{position:absolute;inset:0;background:rgba(23,52,82,.62);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.hg-homes-sale-page .hg-sale-modal__dialog{position:relative;z-index:1;width:min(980px,100%);max-height:min(88vh,900px);overflow:auto;background:#FBFAF7;box-shadow:0 30px 90px rgba(23,52,82,.28)}
.hg-homes-sale-page .hg-sale-modal__close{position:absolute;z-index:4;top:14px;right:16px;width:42px;height:42px;border:0;border-radius:50%;background:rgba(251,250,247,.94);color:#173452;font:300 30px/1 Arial,sans-serif;cursor:pointer;box-shadow:0 4px 18px rgba(23,52,82,.12)}
.hg-homes-sale-page .hg-sale-modal__gallery{display:grid;grid-template-columns:2fr 1fr;grid-template-rows:repeat(2,150px);gap:4px;background:#e8e8e3}
.hg-homes-sale-page .hg-sale-modal__gallery figure{margin:0;overflow:hidden;background:#e8e8e3}
.hg-homes-sale-page .hg-sale-modal__gallery figure.is-main{grid-row:1/3}
.hg-homes-sale-page .hg-sale-modal__gallery img{display:block;width:100%;height:100%;object-fit:cover}
.hg-homes-sale-page .hg-sale-modal__gallery--single{display:block;height:300px}
.hg-homes-sale-page .hg-sale-modal__gallery--single figure{height:100%}
.hg-homes-sale-page .hg-sale-modal__gallery--multi figure:nth-child(n/**/+4){display:none}
.hg-homes-sale-page .hg-sale-modal__content{padding:34px 40px 38px}
.hg-homes-sale-page .hg-sale-modal__eyebrow{margin:0 0 10px;color:#173452;font:700 10px/1.2 Arial,Helvetica,sans-serif;letter-spacing:.14em;text-transform:uppercase}
.hg-homes-sale-page .hg-sale-modal h2{margin:0;color:#1F241F;font:400 clamp(36px,4vw,54px)/1 Georgia,"Times New Roman",serif;letter-spacing:-.03em}
.hg-homes-sale-page .hg-sale-modal__lead{max-width:800px;margin:20px 0 26px;color:#555B55;font:400 16px/1.62 Arial,Helvetica,sans-serif}
.hg-homes-sale-page .hg-sale-modal__facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid rgba(23,52,82,.13);border-bottom:1px solid rgba(23,52,82,.13)}
.hg-homes-sale-page .hg-sale-modal__facts>div{padding:18px 18px 18px 0}
.hg-homes-sale-page .hg-sale-modal__facts>div+div{padding-left:20px;border-left:1px solid rgba(23,52,82,.13)}
.hg-homes-sale-page .hg-sale-modal__facts span{display:block;margin-bottom:7px;color:#717771;font:700 9px/1 Arial,Helvetica,sans-serif;letter-spacing:.12em;text-transform:uppercase}
.hg-homes-sale-page .hg-sale-modal__facts strong{display:block;color:#173452;font:400 16px/1.3 Georgia,"Times New Roman",serif}
.hg-homes-sale-page .hg-sale-modal__actions{display:flex;align-items:center;gap:24px;margin-top:28px}
.hg-homes-sale-page .hg-sale-modal__source{color:#173452;font:700 10px/1.2 Arial,Helvetica,sans-serif;letter-spacing:.08em;text-transform:uppercase;text-decoration:none;border-bottom:1px solid rgba(23,52,82,.35);padding-bottom:3px}
body.hg-sale-modal-open{overflow:hidden!important}
@media (max-width:760px){.hg-homes-sale-page .hg-sale-modal{padding:12px}.hg-homes-sale-page .hg-sale-modal__dialog{max-height:92vh}.hg-homes-sale-page .hg-sale-modal__gallery{grid-template-columns:1fr;height:220px;display:block}.hg-homes-sale-page .hg-sale-modal__gallery figure{display:none!important;height:220px}.hg-homes-sale-page .hg-sale-modal__gallery figure.is-main{display:block!important}.hg-homes-sale-page .hg-sale-modal__content{padding:28px 24px 30px}.hg-homes-sale-page .hg-sale-modal__facts{grid-template-columns:1fr}.hg-homes-sale-page .hg-sale-modal__facts>div,.hg-homes-sale-page .hg-sale-modal__facts>div+div{padding:14px 0;border-left:0;border-top:1px solid rgba(23,52,82,.10)}.hg-homes-sale-page .hg-sale-modal__facts>div:first-child{border-top:0}.hg-homes-sale-page .hg-sale-modal__actions{align-items:flex-start;flex-direction:column;gap:18px}}


/* V322 — Homes for sale: visible beige-to-image hero fade. */
@media  (min-width:901px){
  html body .hg-homes-sale-page .hg-sale-hero__media{position:relative!important;overflow:hidden!important}
  html body .hg-homes-sale-page .hg-sale-hero__media::before{content:""!important;position:absolute!important;z-index:3!important;top:0!important;bottom:0!important;left:0!important;width:190px!important;pointer-events:none!important;background:linear-gradient(90deg,#F7F4EF 0%,rgba(247,244,239,.98) 12%,rgba(247,244,239,.88) 30%,rgba(247,244,239,.62) 52%,rgba(247,244,239,.30) 73%,rgba(247,244,239,.08) 90%,rgba(247,244,239,0) 100%)!important}
  html body .hg-homes-sale-page .hg-sale-hero__media img{position:relative!important;z-index:1!important}
}

/* V323 — Homes for sale: wider hero image / closer to copy. */
@media  (min-width:901px){
  html body .hg-homes-sale-page .hg-sale-hero{
    grid-template-columns:39% 61% !important;
  }
}

/* V324 — Homes for sale: optically center hero copy vertically. */
@media  (min-width:901px){
  html body .hg-homes-sale-page .hg-sale-hero__inner{
    transform:translateY(-28px) !important;
  }
}

/* V326 — Homes for sale: reduce gap above interest section. */
html body .hg-homes-sale-page .hg-sale-projects{
  padding-bottom:34px !important;
}
@media  (max-width:760px){
  html body .hg-homes-sale-page .hg-sale-projects{
    padding-bottom:34px !important;
  }
}

/* V327 — Global button hover: reverse foreground/background colours */
html body a[class*="button"],
html body button,
html body input[type="submit"],
html body input[type="button"]{
  transition:background-color .22s ease,color .22s ease,border-color .22s ease,transform .22s ease !important;
}

/* Light / outlined buttons → Hemgården green on hover */
html body .hg-sale-card__button:hover,
html body .hg-sale-outline-button:hover,
html body a[class*="button"]:not(.hg-sale-solid-button):not(.hg-btn--solid):hover{
  background:#173452 !important;
  border-color:#173452 !important;
  color:#FFFFFF !important;
}
html body .hg-sale-card__button:hover *,
html body .hg-sale-outline-button:hover *,
html body a[class*="button"]:not(.hg-sale-solid-button):not(.hg-btn--solid):hover *{
  color:#FFFFFF !important;
}

/* Filled green buttons → light background on hover */
html body .hg-sale-solid-button:hover,
html body .hg-btn--solid:hover,
html body button:hover,
html body input[type="submit"]:hover,
html body input[type="button"]:hover{
  background:#FFFFFF !important;
  border-color:#173452 !important;
  color:#173452 !important;
}
html body .hg-sale-solid-button:hover *,
html body .hg-btn--solid:hover *{
  color:#173452 !important;
}


/* V328 — Home hero: no image zoom + tighter Awards top spacing */
html body .hg-hero.hg-hero--home .hg-hero__slide,
html body .hg-hero.hg-hero--home .hg-hero__slide.is-active,
html body .hg-home .hg-hero__slide,
html body .hg-home .hg-hero__slide.is-active,
html body .hg-home-page .hg-hero__slide,
html body .hg-home-page .hg-hero__slide.is-active{
    transform:none !important;
    transition-property:opacity !important;
}
@media  (min-width:1101px){
    html body .hg-home .hg-awards,
    html body .hg-home-page .hg-awards,
    html body .hg-awards{padding-top:2px !important;}
}
@media  (max-width:1100px){
    html body .hg-home .hg-awards,
    html body .hg-home-page .hg-awards,
    html body .hg-awards{padding-top:8px !important;}
}

/* V331 — Home hero: restore normal framing, no animated zoom */
@media  (min-width:1101px){
  html body .hg-hero.hg-hero--home{
    overflow:hidden !important;
    position:relative !important;
  }
  html body .hg-hero.hg-hero--home .hg-hero__media,
  html body .hg-hero.hg-hero--home .hg-hero__slides{
    position:absolute !important;
    inset:0 !important;
    width:100% !important;
    height:100% !important;
    overflow:hidden !important;
  }
  html body .hg-hero.hg-hero--home .hg-hero__slide,
  html body .hg-hero.hg-hero--home .hg-hero__slide.is-active,
  html body .hg-hero.hg-hero--home .hg-hero__slide--interior,
  html body .hg-hero.hg-hero--home .hg-hero__slide--interior.is-active{
    position:absolute !important;
    inset:0 !important;
    width:100% !important;
    height:100% !important;
    min-width:100% !important;
    min-height:100% !important;
    max-width:none !important;
    max-height:none !important;
    background-size:cover !important;
    background-position:center center !important;
    background-repeat:no-repeat !important;
    transform:none !important;
    transition-property:opacity !important;
  }
  html body .hg-hero.hg-hero--home .hg-hero__slide--interior,
  html body .hg-hero.hg-hero--home .hg-hero__slide--interior.is-active{
    background-position:right center !important;
  }
  html body .hg-home .hg-stats,
  html body .hg-home-page .hg-stats{
    position:relative !important;
    z-index:30 !important;
    margin-top:0 !important;
  }
}


/* V332 — Home hero: stable framing + identical fade on all three slides */
@media  (min-width:1101px){
  html body .hg-hero.hg-hero--home,
  html body .hg-hero.hg-hero--home .hg-hero__inner,
  html body .hg-hero.hg-hero--home .hg-hero__content,
  html body .hg-hero.hg-hero--home .hg-hero__media{
    height:500px !important;
    min-height:500px !important;
    max-height:500px !important;
  }
  html body .hg-hero.hg-hero--home{
    position:relative !important;
    overflow:hidden !important;
    background:#F7F4EF !important;
    isolation:isolate !important;
  }
  html body .hg-hero.hg-hero--home .hg-hero__media,
  html body .hg-hero.hg-hero--home .hg-hero__slides{
    position:absolute !important;
    inset:0 !important;
    width:100% !important;
    height:500px !important;
    overflow:hidden !important;
    z-index:1 !important;
    background:#F7F4EF !important;
  }
  html body .hg-hero.hg-hero--home .hg-hero__slide,
  html body .hg-hero.hg-hero--home .hg-hero__slide.is-active,
  html body .hg-hero.hg-hero--home .hg-hero__slide--interior,
  html body .hg-hero.hg-hero--home .hg-hero__slide--interior.is-active{
    position:absolute !important;
    inset:0 !important;
    width:100% !important;
    height:500px !important;
    min-width:100% !important;
    min-height:500px !important;
    max-width:none !important;
    max-height:500px !important;
    background-size:84% 100% !important;
    background-position:right center !important;
    background-repeat:no-repeat !important;
    transform:none !important;
    transition:opacity 1400ms ease-in-out !important;
    border:0 !important;
    outline:0 !important;
    box-shadow:none !important;
  }
  html body .hg-hero.hg-hero--home::before{
    content:"" !important;
    display:block !important;
    position:absolute !important;
    inset:0 !important;
    z-index:8 !important;
    pointer-events:none !important;
    background:linear-gradient(90deg,#F7F4EF 0%,#F7F4EF 16.5%,rgba(247,244,239,.97) 18%,rgba(247,244,239,.84) 24%,rgba(247,244,239,.50) 32%,rgba(247,244,239,.16) 40%,rgba(247,244,239,.03) 46%,rgba(247,244,239,0) 50%) !important;
  }
  html body .hg-hero.hg-hero--home .hg-hero__media::before,
  html body .hg-hero.hg-hero--home .hg-hero__media::after,
  html body .hg-hero.hg-hero--home .hg-hero__shade{
    content:none !important;
    display:none !important;
  }
  html body .hg-hero.hg-hero--home .hg-hero__inner,
  html body .hg-hero.hg-hero--home .hg-hero__content{
    position:relative !important;
    z-index:10 !important;
  }
  html body .hg-home .hg-stats,
  html body .hg-home-page .hg-stats{
    position:relative !important;
    z-index:30 !important;
    margin-top:0 !important;
    background:#173452 !important;
  }
}


/* V334 — Home: 80% hero framing + tighter Awards gap */
@media  (min-width:1101px){
  html body .hg-hero.hg-hero--home .hg-hero__slide,
  html body .hg-hero.hg-hero--home .hg-hero__slide.is-active,
  html body .hg-hero.hg-hero--home .hg-hero__slide--interior,
  html body .hg-hero.hg-hero--home .hg-hero__slide--interior.is-active{
    background-size:75% 100% !important;
    background-position:right center !important;
  }
  html body .hg-hero.hg-hero--home::before{
    background:linear-gradient(90deg,#F7F4EF 0%,#F7F4EF 14%,rgba(247,244,239,.995) 20.5%,rgba(247,244,239,.88) 24%,rgba(247,244,239,.56) 30%,rgba(247,244,239,.22) 36%,rgba(247,244,239,.06) 41%,rgba(247,244,239,0) 46%) !important;
  }
  html body .hg-home .hg-awards,
  html body .hg-home-page .hg-awards,
  html body .hg-awards{padding-top:0 !important;margin-top:0 !important;}
  html body .hg-home .hg-awards > .hg-shell,
  html body .hg-home-page .hg-awards > .hg-shell,
  html body .hg-awards > .hg-shell,
  html body .hg-home .hg-awards .hg-section-heading,
  html body .hg-home-page .hg-awards .hg-section-heading,
  html body .hg-awards .hg-section-heading{padding-top:0 !important;margin-top:0 !important;}
}

/* V335 — Home hero: 75% horizontal framing */
@media  (min-width:1101px){
  html body .hg-hero.hg-hero--home .hg-hero__slide,
  html body .hg-hero.hg-hero--home .hg-hero__slide.is-active,
  html body .hg-hero.hg-hero--home .hg-hero__slide--interior,
  html body .hg-hero.hg-hero--home .hg-hero__slide--interior.is-active{
    background-size:75% 100% !important;
    background-position:right center !important;
  }
}

/* V336 — Home hero: 65% horizontal framing */
@media  (min-width:1101px){
  html body .hg-hero.hg-hero--home .hg-hero__slide,
  html body .hg-hero.hg-hero--home .hg-hero__slide.is-active,
  html body .hg-hero.hg-hero--home .hg-hero__slide--interior,
  html body .hg-hero.hg-hero--home .hg-hero__slide--interior.is-active{
    background-size:75% 100% !important;
    background-position:right center !important;
  }
}


/* V337 — Homes for sale hero typography matches Featured Projects hero */
@media  (min-width:761px){
  html body .hg-homes-sale-page .hg-sale-eyebrow{font-size:11px !important;line-height:1 !important;letter-spacing:.18em !important;margin-bottom:12px !important;}
  html body .hg-homes-sale-page .hg-sale-hero h1{font-family:Georgia,"Times New Roman",serif !important;font-size:clamp(46px,4.5vw,62px) !important;line-height:.98 !important;letter-spacing:-.035em !important;font-weight:400 !important;margin:0 !important;max-width:540px !important;}
  html body .hg-homes-sale-page .hg-sale-rule{width:58px !important;height:1px !important;margin:18px 0 17px !important;}
  html body .hg-homes-sale-page .hg-sale-hero__lead{max-width:540px !important;font-family:Arial,Helvetica,sans-serif !important;font-size:16px !important;line-height:1.5 !important;font-weight:400 !important;}
}

/* V338 — Home hero 70% + wider Homes for sale hero image */
@media  (min-width:1101px){
  html body .hg-hero.hg-hero--home .hg-hero__slide,
  html body .hg-hero.hg-hero--home .hg-hero__slide.is-active,
  html body .hg-hero.hg-hero--home .hg-hero__slide--interior,
  html body .hg-hero.hg-hero--home .hg-hero__slide--interior.is-active{
    background-size:75% 100% !important;
    background-position:right center !important;
  }
}
@media  (min-width:901px){
  html body .hg-homes-sale-page .hg-sale-hero{grid-template-columns:35% 65% !important;}
  html body .hg-homes-sale-page .hg-sale-hero__media img{width:100% !important;height:100% !important;object-fit:cover !important;object-position:center center !important;}
}


/* V339 — Homes for sale category tabs */
html body .hg-homes-sale-page .hg-sale-tabs{display:flex!important;align-items:flex-end!important;gap:52px!important;margin:28px 0 34px!important;border-bottom:1px solid rgba(23,52,82,.16)!important}
html body .hg-homes-sale-page .hg-sale-tab{appearance:none!important;border:0!important;border-bottom:3px solid transparent!important;background:transparent!important;color:#7A7E79!important;padding:0 0 16px!important;margin:0 0 -1px!important;font-family:Arial,Helvetica,sans-serif!important;font-size:17px!important;line-height:1.1!important;font-weight:700!important;cursor:pointer!important;transition:color .2s ease,border-color .2s ease!important}
html body .hg-homes-sale-page .hg-sale-tab:hover,html body .hg-homes-sale-page .hg-sale-tab.is-active{color:#173452!important}
html body .hg-homes-sale-page .hg-sale-tab.is-active{border-bottom-color:#173452!important}
html body .hg-homes-sale-page .hg-sale-tab-panel[hidden]{display:none!important}
html body .hg-homes-sale-page .hg-sale-tab-panel.is-active{display:block!important}
@media (max-width:760px){html body .hg-homes-sale-page .hg-sale-tabs{gap:28px!important;margin:22px 0 28px!important;overflow-x:auto!important}html body .hg-homes-sale-page .hg-sale-tab{font-size:15px!important;white-space:nowrap!important;padding-bottom:13px!important}}


/* V342 — Åby Ängar reference project */
html body .hg-featured-projects-page .hg-fp-card--abyangar{cursor:pointer}
html body .hg-featured-projects-page .hg-fp-card--abyangar .hg-fp-card__image{object-position:center center}
html body .hg-featured-projects-page .hg-fp-modal--abyangar .hg-fp-modal__hero img,
html body .hg-featured-projects-page .hg-fp-modal__gallery--abyangar img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
}


/* V344 — Höjdhopparen project/news addition; no additional styling required. */

/* V345 — Home hero: realign the beige/image fade for the 70% image framing. */
@media  (min-width:1101px){
    html body .hg-hero.hg-hero--home::before{
        content:"" !important;
        display:block !important;
        position:absolute !important;
        inset:0 !important;
        z-index:8 !important;
        pointer-events:none !important;
        background:linear-gradient(
            90deg,
            #F7F4EF 0%,
            #F7F4EF 30%,
            rgba(247,244,239,.99) 31.5%,
            rgba(247,244,239,.92) 34.5%,
            rgba(247,244,239,.72) 38%,
            rgba(247,244,239,.46) 41.5%,
            rgba(247,244,239,.22) 45%,
            rgba(247,244,239,.07) 48%,
            rgba(247,244,239,0) 51%
        ) !important;
    }
    html body .hg-hero.hg-hero--home .hg-hero__content{
        background:transparent !important;
    }
}

/* V347 — Home hero: wider image panel + accent line between title and body copy */
@media  (min-width:1101px){
  html body .hg-hero.hg-hero--home::before{
    background:linear-gradient(90deg,
      #F7F4EF 0%,
      #F7F4EF 25%,
      rgba(247,244,239,.99) 27%,
      rgba(247,244,239,.92) 30%,
      rgba(247,244,239,.72) 34%,
      rgba(247,244,239,.46) 38%,
      rgba(247,244,239,.22) 42%,
      rgba(247,244,239,.07) 45%,
      rgba(247,244,239,0) 48%) !important;
  }
}
html body .hg-hero.hg-hero--home #hg-hero-title{
  position:relative !important;
  margin-bottom:0 !important;
  padding-bottom:27px !important;
}
html body .hg-hero.hg-hero--home #hg-hero-title::after{
  content:"" !important;
  position:absolute !important;
  left:0 !important;
  bottom:0 !important;
  width:52px !important;
  height:1px !important;
  background:#173452 !important;
}
html body .hg-hero.hg-hero--home .hg-hero__lead{
  margin-top:25px !important;
  padding-bottom:0 !important;
  width:min(100%, 425px) !important;
  max-width:425px !important;
  text-align:justify !important;
  text-align-last:left;
  hyphens:auto;
}
html body .hg-hero.hg-hero--home .hg-hero__lead::after{content:none !important;display:none !important;}

/* V351 — Home hero: stable 75% image panel, no empty strip on the right */
@media  (min-width:1101px){
  html body .hg-hero.hg-hero--home .hg-hero__media,
  html body .hg-hero.hg-hero--home .hg-hero__slides{
    position:absolute !important;
    inset:0 !important;
    width:100% !important;
    height:500px !important;
    overflow:hidden !important;
  }
  html body .hg-hero.hg-hero--home .hg-hero__slide,
  html body .hg-hero.hg-hero--home .hg-hero__slide.is-active,
  html body .hg-hero.hg-hero--home .hg-hero__slide--interior,
  html body .hg-hero.hg-hero--home .hg-hero__slide--interior.is-active{
    position:absolute !important;
    top:0 !important;
    right:0 !important;
    bottom:0 !important;
    left:25% !important;
    width:75% !important;
    min-width:0 !important;
    height:500px !important;
    background-size:cover !important;
    background-position:center center !important;
    background-repeat:no-repeat !important;
    transform:none !important;
  }
  html body .hg-hero.hg-hero--home::before{
    background:linear-gradient(90deg,
      #F7F4EF 0%,
      #F7F4EF 25%,
      rgba(247,244,239,.99) 27%,
      rgba(247,244,239,.92) 30%,
      rgba(247,244,239,.72) 34%,
      rgba(247,244,239,.46) 38%,
      rgba(247,244,239,.22) 42%,
      rgba(247,244,239,.07) 45%,
      rgba(247,244,239,0) 48%) !important;
  }
}


/* V355 — About header, News hero, Home hero flush-right */
html body .hg-about-topbar{background:#FFFFFF!important;background-color:#FFFFFF!important}
html body .hg-news-page .hg-news-intro__media{position:relative!important}
html body .hg-news-page .hg-news-intro__media::before{content:"";position:absolute;z-index:3;top:0;bottom:0;left:0;width:190px;pointer-events:none;background:linear-gradient(90deg,#F7F4EF 0%,rgba(247,244,239,.98) 12%,rgba(247,244,239,.88) 30%,rgba(247,244,239,.62) 52%,rgba(247,244,239,.30) 73%,rgba(247,244,239,.08) 90%,rgba(247,244,239,0) 100%)}
html body .hg-news-page .hg-news-intro__lead{font-size:16px!important;line-height:1.5!important;max-width:520px!important}
@media  (min-width:1101px){
  html body .hg-hero.hg-hero--home{width:100%!important;max-width:none!important;overflow:hidden!important}
  html body .hg-hero.hg-hero--home .hg-hero__media,
  html body .hg-hero.hg-hero--home .hg-hero__slides{position:absolute!important;top:0!important;right:0!important;bottom:auto!important;left:0!important;width:100vw!important;max-width:none!important;height:500px!important;margin:0!important;padding:0!important;overflow:hidden!important}
  html body .hg-hero.hg-hero--home .hg-hero__slide,
  html body .hg-hero.hg-hero--home .hg-hero__slide.is-active,
  html body .hg-hero.hg-hero--home .hg-hero__slide--interior,
  html body .hg-hero.hg-hero--home .hg-hero__slide--interior.is-active{position:absolute!important;top:0!important;right:0!important;bottom:0!important;left:25vw!important;width:75vw!important;max-width:none!important;min-width:0!important;height:500px!important;margin:0!important;padding:0!important;background-size:cover!important;background-position:center center!important;background-repeat:no-repeat!important;transform:none!important}
}

/* V356 — Homepage header + hero truly flush to viewport right edge */
@media  (min-width:1101px){
  html body .hg-home .hg-header,
  html body .hg-home-page .hg-header,
  html body .hg-header.hg-header--home,
  html body .hg-header.hg-header--home.is-scrolled{
    left:0!important;
    right:0!important;
    width:100%!important;
    max-width:none!important;
    margin-left:0!important;
    margin-right:0!important;
    box-sizing:border-box!important;
  }
  html body .hg-home .hg-header__inner,
  html body .hg-home-page .hg-header__inner,
  html body .hg-header.hg-header--home .hg-header__inner{
    width:100%!important;
    max-width:none!important;
    box-sizing:border-box!important;
  }
  html body .hg-hero.hg-hero--home .hg-hero__media,
  html body .hg-hero.hg-hero--home .hg-hero__slides{
    inset:0!important;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
  }
  html body .hg-hero.hg-hero--home .hg-hero__slide,
  html body .hg-hero.hg-hero--home .hg-hero__slide.is-active,
  html body .hg-hero.hg-hero--home .hg-hero__slide--interior,
  html body .hg-hero.hg-hero--home .hg-hero__slide--interior.is-active{
    left:25%!important;
    right:0!important;
    width:auto!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    background-size:cover!important;
    background-position:center center!important;
  }
}


/* V357 — Homepage final geometry audit */
@media  (min-width:1101px){
  html body .hg-header.hg-header--home,
  html body .hg-header.hg-header--home.is-scrolled{left:0!important;right:0!important;width:100vw!important;max-width:none!important;margin:0!important;padding-left:0!important;padding-right:0!important;box-sizing:border-box!important}
  html body .hg-header.hg-header--home .hg-header__inner{width:calc(100% - 64px)!important;max-width:none!important;margin-left:32px!important;margin-right:32px!important;padding-left:0!important;padding-right:0!important;box-sizing:border-box!important}
  html body .hg-hero.hg-hero--home{position:relative!important;width:100vw!important;max-width:none!important;margin-left:0!important;margin-right:0!important;overflow:hidden!important}
  html body .hg-hero.hg-hero--home .hg-hero__media{position:absolute!important;top:0!important;right:0!important;bottom:0!important;left:25%!important;width:auto!important;max-width:none!important;height:500px!important;margin:0!important;padding:0!important;overflow:hidden!important}
  html body .hg-hero.hg-hero--home .hg-hero__slides{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;margin:0!important;padding:0!important;overflow:hidden!important}
  html body .hg-hero.hg-hero--home .hg-hero__slide,
  html body .hg-hero.hg-hero--home .hg-hero__slide.is-active,
  html body .hg-hero.hg-hero--home .hg-hero__slide--interior,
  html body .hg-hero.hg-hero--home .hg-hero__slide--interior.is-active{position:absolute!important;inset:0!important;width:100%!important;min-width:100%!important;max-width:none!important;height:100%!important;margin:0!important;padding:0!important;background-size:cover!important;background-position:center center!important;background-repeat:no-repeat!important;transform:none!important}
}

/* V359 — Hyresbostäder hero: softer fade + refined text panel */
@media  (min-width:901px){
  html body .hg-rentals-page .hg-rentals-hero--split{display:grid!important;grid-template-columns:31% 69%!important;min-height:500px!important;background:#173452!important;overflow:hidden!important}
  html body .hg-rentals-page .hg-rentals-hero__panel{position:relative!important;z-index:5!important;background:#173452!important;display:flex!important;align-items:center!important}
  html body .hg-rentals-page .hg-rentals-hero__panel-inner{width:100%!important;max-width:390px!important;margin:0 auto!important;padding:36px 48px!important;transform:translateY(-8px)!important}
  html body .hg-rentals-page .hg-rentals-hero__picture{position:relative!important;min-width:0!important;overflow:hidden!important}
  html body .hg-rentals-page .hg-rentals-hero__picture::before{content:""!important;position:absolute!important;z-index:3!important;top:0!important;bottom:0!important;left:0!important;width:220px!important;pointer-events:none!important;background:linear-gradient(90deg,#173452 0%,rgba(23,52,82,.98) 10%,rgba(23,52,82,.88) 28%,rgba(23,52,82,.62) 50%,rgba(23,52,82,.30) 72%,rgba(23,52,82,.08) 90%,rgba(23,52,82,0) 100%)!important}
  html body .hg-rentals-page .hg-rentals-hero__picture img{width:100%!important;height:500px!important;display:block!important;object-fit:cover!important;object-position:center center!important}
  html body .hg-rentals-page .hg-rentals-hero h1{font-family:Georgia,"Times New Roman",serif!important;font-size:clamp(52px,4.1vw,68px)!important;line-height:.98!important;letter-spacing:-.04em!important;font-weight:400!important;color:#F7F4EF!important;max-width:320px!important;margin:0!important}
  html body .hg-rentals-page .hg-rentals-hero__divider{display:block!important;width:58px!important;height:1px!important;background:rgba(247,244,239,.72)!important;margin:20px 0 34px!important}
  html body .hg-rentals-page .hg-rentals-hero .hg-rentals-eyebrow{font-size:11px!important;line-height:1!important;letter-spacing:.18em!important;font-weight:700!important;color:#F7F4EF!important;margin:0!important}
  html body .hg-rentals-page .hg-rentals-hero__lead{font-family:Arial,Helvetica,sans-serif!important;font-size:15px!important;line-height:1.6!important;font-weight:400!important;color:rgba(247,244,239,.82)!important;max-width:330px!important;margin:28px 0 0!important}
}
@media  (max-width:900px){html body .hg-rentals-page .hg-rentals-hero__lead{font-size:15px!important;line-height:1.55!important;color:rgba(247,244,239,.84)!important;margin-top:22px!important}}

/* V369 — Homepage hero final geometry + targeted refinements. Header/menu deliberately untouched.
   Desktop hero is intentionally taller; no change to horizontal geometry. */
@media  (min-width:1101px){
  html body .hg-hero.hg-hero--home{
    position:relative!important;width:100vw!important;max-width:none!important;
    height:680px!important;min-height:680px!important;max-height:680px!important;
    margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important;
    overflow:hidden!important;background:#F7F4EF!important;isolation:isolate!important;
  }
  html body .hg-hero.hg-hero--home .hg-hero__media{
    position:absolute!important;top:0!important;right:0!important;bottom:0!important;left:25%!important;
    width:auto!important;max-width:none!important;height:680px!important;margin:0!important;padding:0!important;
    overflow:hidden!important;background:#F7F4EF!important;z-index:1!important;
  }
  html body .hg-hero.hg-hero--home .hg-hero__slide,
  html body .hg-hero.hg-hero--home .hg-hero__slide.is-active,
  html body .hg-hero.hg-hero--home .hg-hero__slide--interior,
  html body .hg-hero.hg-hero--home .hg-hero__slide--interior.is-active{
    position:absolute!important;inset:0!important;width:100%!important;min-width:100%!important;max-width:none!important;
    height:680px!important;min-height:680px!important;max-height:680px!important;margin:0!important;padding:0!important;
    background-size:cover!important;background-position:center center!important;background-repeat:no-repeat!important;transform:none!important;
  }
  html body .hg-hero.hg-hero--home::before{
    content:""!important;display:block!important;position:absolute!important;inset:0!important;z-index:8!important;pointer-events:none!important;
    background:linear-gradient(90deg,#F7F4EF 0%,#F7F4EF 25%,rgba(247,244,239,.99) 27%,rgba(247,244,239,.92) 30%,rgba(247,244,239,.72) 34%,rgba(247,244,239,.46) 38%,rgba(247,244,239,.22) 42%,rgba(247,244,239,.07) 45%,rgba(247,244,239,0) 48%)!important;
  }
  html body .hg-hero.hg-hero--home .hg-hero__inner{
    position:relative!important;z-index:10!important;box-sizing:border-box!important;
    height:680px!important;min-height:680px!important;max-height:680px!important;
  }
  html body .hg-hero.hg-hero--home .hg-hero__content{
    position:relative!important;z-index:10!important;
    height:auto!important;min-height:0!important;max-height:none!important;
  }
}

/* V369 — Project modal buttons: same top edge and exact height. */
html body .hg-homes-sale-page .hg-sale-modal__actions{align-items:center!important;}
html body .hg-homes-sale-page .hg-sale-modal__actions .hg-sale-solid-button,
html body .hg-homes-sale-page .hg-sale-modal__actions .hg-sale-outline-button{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  box-sizing:border-box!important;height:52px!important;min-height:52px!important;
  margin-top:0!important;padding:0 24px!important;line-height:1!important;
}
html body .hg-homes-sale-page .hg-sale-modal__actions .hg-sale-solid-button{border:1px solid #173452!important;}
html body .hg-homes-sale-page .hg-sale-modal__actions .hg-sale-outline-button{align-self:auto!important;}

/* V369 — Tighter spacing between Passion för perfektion and Skandinavisk kvalitet. */
html body .hg-values{padding-bottom:18px!important;}
html body .hg-quality{padding-top:22px!important;}

@media  (max-width:760px){
  html body .hg-homes-sale-page .hg-sale-modal__actions{align-items:flex-start!important;}
  html body .hg-homes-sale-page .hg-sale-modal__actions .hg-sale-solid-button,
  html body .hg-homes-sale-page .hg-sale-modal__actions .hg-sale-outline-button{
    height:auto!important;min-height:48px!important;width:auto!important;
  }
}


/* V375 — Homepage hero fold-height fix: align breakpoint with desktop menu. The matching inline block in functions.php
   is emitted at PHP_INT_MAX. Hero uses 86% of the viewport (760px desktop floor) from the same 901px breakpoint as the desktop navigation,
   so the first screen ends around the statistics strip rather than the next content section. */
@media  (min-width:901px){
  html body .hg-hero.hg-hero--home{--hg-home-hero-height:max(760px,86vh);--hg-home-hero-height:max(760px,86svh);position:relative!important;width:100vw!important;max-width:none!important;height:var(--hg-home-hero-height)!important;min-height:var(--hg-home-hero-height)!important;max-height:var(--hg-home-hero-height)!important;margin-left:0!important;margin-right:0!important;overflow:hidden!important;background:#F7F4EF!important;isolation:isolate!important}
  html body .hg-hero.hg-hero--home .hg-hero__media{position:absolute!important;top:0!important;right:0!important;bottom:0!important;left:25%!important;width:auto!important;max-width:none!important;height:100%!important;min-height:100%!important;max-height:none!important;margin:0!important;padding:0!important;overflow:hidden!important;z-index:1!important}
  html body .hg-hero.hg-hero--home .hg-hero__slides{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:100%!important;max-width:none!important;margin:0!important;padding:0!important;overflow:hidden!important}
  html body .hg-hero.hg-hero--home .hg-hero__slide,
  html body .hg-hero.hg-hero--home .hg-hero__slide.is-active,
  html body .hg-hero.hg-hero--home .hg-hero__slide--interior,
  html body .hg-hero.hg-hero--home .hg-hero__slide--interior.is-active{position:absolute!important;inset:0!important;width:100%!important;min-width:100%!important;max-width:none!important;height:100%!important;min-height:100%!important;max-height:none!important;margin:0!important;padding:0!important;background-size:cover!important;background-position:center center!important;background-repeat:no-repeat!important;transform:none!important}
  html body .hg-hero.hg-hero--home::before{content:""!important;display:block!important;position:absolute!important;inset:0!important;z-index:8!important;pointer-events:none!important;background:linear-gradient(90deg,#F7F4EF 0%,#F7F4EF 25%,rgba(247,244,239,.99) 27%,rgba(247,244,239,.92) 30%,rgba(247,244,239,.72) 34%,rgba(247,244,239,.46) 38%,rgba(247,244,239,.22) 42%,rgba(247,244,239,.07) 45%,rgba(247,244,239,0) 48%)!important}
  html body .hg-hero.hg-hero--home .hg-hero__shade{display:none!important}
  html body .hg-hero.hg-hero--home .hg-hero__inner{position:relative!important;z-index:10!important;box-sizing:border-box!important;width:100%!important;max-width:none!important;height:100%!important;min-height:100%!important;max-height:none!important;margin:0!important;padding:0!important;display:block!important}
  html body .hg-hero.hg-hero--home .hg-hero__content{position:absolute!important;top:0!important;bottom:0!important;left:0!important;right:auto!important;box-sizing:border-box!important;width:31%!important;max-width:520px!important;height:100%!important;min-height:100%!important;max-height:none!important;margin:0!important;padding:112px 24px 46px 40px!important;display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:flex-start!important;transform:none!important;background:transparent!important;color:#1f241f!important;z-index:10!important}
  html body .hg-hero.hg-hero--home .hg-hero__copy{width:100%!important;max-width:500px!important;margin:0!important}
  html body .hg-hero.hg-hero--home .hg-hero__progress{right:20px!important;bottom:22px!important;z-index:12!important}
}

/* =========================================================
   V380 — AUTHORITATIVE HOME HERO TOP-ALIGNMENT + FADE REPAIR
   Same geometry as the final PHP block. The desktop artwork is a real <img>
   below the absolute header, with object-fit:contain and a dedicated fade.
   ========================================================= */
    @media  (min-width:901px){
        /* One desktop geometry. The home header is absolute, so the actual image/text stage
           starts below it instead of sitting underneath it. This is what was making the
           artwork look vertically cropped even when background-size was no-crop. */
        html body.admin-bar .hg-hero.hg-hero--home[data-hg-hero],
        html body:not(.admin-bar) .hg-hero.hg-hero--home[data-hg-hero]{
            --hg-home-hero-height:clamp(675px,76svh,700px);
            --hg-home-header-space:0px;
            position:relative !important;
            width:100vw !important;
            max-width:none !important;
            height:var(--hg-home-hero-height) !important;
            min-height:var(--hg-home-hero-height) !important;
            max-height:var(--hg-home-hero-height) !important;
            margin-left:0 !important;
            margin-right:0 !important;
            overflow:hidden !important;
            background:#F7F4EF !important;
            isolation:isolate !important;
        }

        /* Disable every legacy pseudo-element fade. One old rule still had height:500px!important,
           which is why the white/fade layer ended in a hard horizontal rectangle. */
        html body.admin-bar .hg-hero.hg-hero--home[data-hg-hero]::before,
        html body.admin-bar .hg-hero.hg-hero--home[data-hg-hero]::after,
        html body:not(.admin-bar) .hg-hero.hg-hero--home[data-hg-hero]::before,
        html body:not(.admin-bar) .hg-hero.hg-hero--home[data-hg-hero]::after{
            content:none !important;
            display:none !important;
            width:0 !important;
            height:0 !important;
            min-height:0 !important;
            max-height:0 !important;
            background:none !important;
        }

        /* The media stage begins below the absolute header. The image therefore keeps its
           complete top edge instead of losing the first ~150px behind the opaque header. */
        html body.admin-bar .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__media,
        html body:not(.admin-bar) .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__media{
            position:absolute !important;
            top:0 !important;
            right:0 !important;
            bottom:0 !important;
            left:25% !important;
            inset:0 0 0 25% !important;
            width:auto !important;
            min-width:0 !important;
            max-width:none !important;
            height:auto !important;
            min-height:0 !important;
            max-height:none !important;
            margin:0 !important;
            padding:0 !important;
            overflow:hidden !important;
            background:#F7F4EF !important;
            z-index:1 !important;
        }
        html body.admin-bar .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__slide[data-project],
        html body.admin-bar .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__slide[data-project].is-active,
        html body:not(.admin-bar) .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__slide[data-project],
        html body:not(.admin-bar) .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__slide[data-project].is-active{
            position:absolute !important;
            inset:0 !important;
            width:100% !important;
            min-width:100% !important;
            max-width:none !important;
            height:100% !important;
            min-height:100% !important;
            max-height:none !important;
            margin:0 !important;
            padding:0 !important;
            background-image:none !important;
            background:none !important;
            transform:none !important;
            overflow:hidden !important;
        }

        /* Real image element = no legacy background-size rule can zoom/crop it. */
        html body.admin-bar .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__image,
        html body:not(.admin-bar) .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__image{
            display:block !important;
            position:absolute !important;
            inset:0 !important;
            width:100% !important;
            height:100% !important;
            max-width:none !important;
            max-height:none !important;
            margin:0 !important;
            padding:0 !important;
            object-fit:contain !important;
            object-position:right top !important;
            transform:none !important;
            pointer-events:none !important;
        }

        /* A dedicated fade layer replaces ::before. The left copy area remains solid beige;
           only the first edge of the image receives the fade. */
        html body.admin-bar .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__fade,
        html body:not(.admin-bar) .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__fade{
            display:block !important;
            position:absolute !important;
            top:0 !important;
            bottom:0 !important;
            left:22% !important;
            right:auto !important;
            width:clamp(300px,24vw,400px) !important;
            height:auto !important;
            min-height:0 !important;
            max-height:none !important;
            margin:0 !important;
            padding:0 !important;
            background:linear-gradient(90deg,
                #F7F4EF 0%,
                #F7F4EF 18%,
                rgba(247,244,239,.99) 30%,
                rgba(247,244,239,.93) 42%,
                rgba(247,244,239,.76) 56%,
                rgba(247,244,239,.48) 70%,
                rgba(247,244,239,.20) 84%,
                rgba(247,244,239,0) 100%) !important;
            z-index:8 !important;
            pointer-events:none !important;
        }
        html body.admin-bar .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__shade,
        html body:not(.admin-bar) .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__shade{
            display:none !important;
        }

        html body.admin-bar .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__inner,
        html body:not(.admin-bar) .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__inner{
            position:relative !important;
            z-index:10 !important;
            box-sizing:border-box !important;
            width:100% !important;
            max-width:none !important;
            height:100% !important;
            min-height:100% !important;
            max-height:none !important;
            margin:0 !important;
            padding:0 !important;
            display:block !important;
        }
        html body.admin-bar .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__content,
        html body:not(.admin-bar) .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__content{
            position:absolute !important;
            top:0 !important;
            right:auto !important;
            bottom:0 !important;
            left:0 !important;
            box-sizing:border-box !important;
            width:31% !important;
            max-width:520px !important;
            height:auto !important;
            min-height:0 !important;
            max-height:none !important;
            margin:0 !important;
            padding:0 24px 0 40px !important;
            display:flex !important;
            flex-direction:column !important;
            justify-content:center !important;
            align-items:flex-start !important;
            transform:none !important;
            background:#F7F4EF !important;
            color:#1f241f !important;
            z-index:10 !important;
        }
        html body.admin-bar .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__copy,
        html body:not(.admin-bar) .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__copy{
            width:100% !important;
            max-width:500px !important;
            margin:0 !important;
            padding:0 !important;
            background:transparent !important;
        }
        html body.admin-bar .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__progress,
        html body:not(.admin-bar) .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__progress{
            right:20px !important;
            bottom:20px !important;
            z-index:12 !important;
        }
    }
    @media  (max-width:900px){
        .hg-hero__image,.hg-hero__fade{display:none !important;}
    }

/* V381 — Hero full-height image, visible fade, slightly taller fold. */

@media  (min-width:901px){
  html body.admin-bar .hg-hero.hg-hero--home[data-hg-hero],
  html body:not(.admin-bar) .hg-hero.hg-hero--home[data-hg-hero]{
    --hg-home-hero-height:clamp(700px,78svh,725px)!important;
    height:var(--hg-home-hero-height)!important;
    min-height:var(--hg-home-hero-height)!important;
    max-height:var(--hg-home-hero-height)!important;
  }
  html body.admin-bar .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__media,
  html body:not(.admin-bar) .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__media,
  html body.admin-bar .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__slide[data-project],
  html body:not(.admin-bar) .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__slide[data-project]{
    height:100%!important;
    min-height:100%!important;
    max-height:100%!important;
    bottom:0!important;
  }
  html body.admin-bar .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__image,
  html body:not(.admin-bar) .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__image{
    display:block!important;
    position:absolute!important;
    top:0!important;
    right:0!important;
    bottom:auto!important;
    left:auto!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    height:100%!important;
    min-height:100%!important;
    max-height:100%!important;
    margin:0!important;
    padding:0!important;
    object-fit:contain!important;
    object-position:right bottom!important;
    transform:none!important;
  }
  html body.admin-bar .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__fade,
  html body:not(.admin-bar) .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__fade{
    display:block!important;
    top:0!important;
    bottom:0!important;
    left:23.5%!important;
    width:clamp(360px,30vw,520px)!important;
    height:auto!important;
    background:linear-gradient(90deg,
      #F7F4EF 0%,
      #F7F4EF 14%,
      rgba(247,244,239,.99) 26%,
      rgba(247,244,239,.94) 40%,
      rgba(247,244,239,.78) 56%,
      rgba(247,244,239,.50) 72%,
      rgba(247,244,239,.22) 86%,
      rgba(247,244,239,0) 100%)!important;
    z-index:8!important;
  }
  html body.admin-bar .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__content,
  html body:not(.admin-bar) .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__content{
    background:transparent!important;
  }
}


/* V383 — Homepage project carousel: mixed project types + refined, functional controls. */
.hg-current .hg-project-carousel{
  position:relative;
  overflow:visible;
}
.hg-current .hg-project-grid{
  display:flex;
  gap:22px;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-behavior:smooth;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
  overscroll-behavior-inline:contain;
  padding:0;
  outline:none;
}
.hg-current .hg-project-grid::-webkit-scrollbar{display:none;}
.hg-current .hg-project-card{
  flex:0 0 calc((100% - 44px) / 3);
  min-width:0;
  scroll-snap-align:start;
  scroll-snap-stop:always;
}
.hg-current .hg-project-card__meta{
  align-items:flex-start;
}
.hg-current .hg-project-card__meta strong{
  line-height:1.12;
}
.hg-current .hg-project-card__meta small{
  max-width:54%;
  line-height:1.45;
  text-align:right;
}
.hg-current .hg-project-arrow{
  position:absolute;
  z-index:8;
  top:42%;
  width:46px;
  height:46px;
  padding:0;
  border:1px solid rgba(23,52,82,.18);
  border-radius:50%;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.94);
  color:#173452;
  box-shadow:0 10px 28px rgba(23,52,82,.10);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  cursor:pointer;
  transform:translateY(-50%);
  transition:background-color .2s ease,color .2s ease,border-color .2s ease,box-shadow .2s ease,transform .2s ease,opacity .2s ease;
}
.hg-current .hg-project-arrow svg{
  width:18px;
  height:18px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.55;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.hg-current .hg-project-arrow--prev{left:-23px;}
.hg-current .hg-project-arrow--next{right:-23px;}
.hg-current .hg-project-arrow:not(:disabled):hover,
.hg-current .hg-project-arrow:not(:disabled):focus-visible{
  background:#173452;
  border-color:#173452;
  color:#fff;
  box-shadow:0 12px 32px rgba(23,52,82,.16);
  transform:translateY(-50%) scale(1.045);
  outline:none;
}
.hg-current .hg-project-arrow:focus-visible{
  outline:2px solid rgba(23,52,82,.32);
  outline-offset:3px;
}
.hg-current .hg-project-arrow:disabled{
  opacity:.24;
  cursor:default;
  box-shadow:none;
}
@media  (max-width:1100px){
  .hg-current .hg-project-card{flex-basis:calc((100% - 22px) / 2);}
  .hg-current .hg-project-arrow--prev{left:-12px;}
  .hg-current .hg-project-arrow--next{right:-12px;}
}
@media  (max-width:700px){
  .hg-current .hg-project-grid{gap:14px;}
  .hg-current .hg-project-card{flex-basis:86%;}
  .hg-current .hg-project-card__meta{gap:12px;}
  .hg-current .hg-project-card__meta small{max-width:52%;}
  .hg-current .hg-project-arrow{width:40px;height:40px;top:40%;}
  .hg-current .hg-project-arrow--prev{left:4px;}
  .hg-current .hg-project-arrow--next{right:4px;}
}


/* V384 — Final visual consolidation requested 17 Sep 2026. */
html body .hg-about .hg-header.hg-header--about-static,
html body .hg-about .hg-header.hg-header--about-static .hg-header__inner,
html body .hg-about-topbar,
html body .hg-about-topbar__inner{background:#FFFFFF!important;background-color:#FFFFFF!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;}
@media  (min-width:901px){
  html body.admin-bar .hg-hero.hg-hero--home[data-hg-hero],html body:not(.admin-bar) .hg-hero.hg-hero--home[data-hg-hero]{--hg-home-hero-height:clamp(660px,74svh,690px)!important;height:var(--hg-home-hero-height)!important;min-height:var(--hg-home-hero-height)!important;max-height:var(--hg-home-hero-height)!important;}
  html body.admin-bar .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__media,html body:not(.admin-bar) .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__media{left:15%!important;inset:0 0 0 15%!important;height:100%!important;background:#F7F4EF!important;}
  html body.admin-bar .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__image,html body:not(.admin-bar) .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__image{top:0!important;right:0!important;bottom:0!important;left:auto!important;width:100%!important;height:auto!important;min-height:100%!important;max-height:100%!important;object-fit:contain!important;object-position:right bottom!important;transform:none!important;}
  html body.admin-bar .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__fade,html body:not(.admin-bar) .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__fade{left:19%!important;width:clamp(320px,27vw,455px)!important;height:100%!important;background:linear-gradient(90deg,#F7F4EF 0%,#F7F4EF 9%,rgba(247,244,239,.98) 25%,rgba(247,244,239,.88) 43%,rgba(247,244,239,.62) 62%,rgba(247,244,239,.30) 79%,rgba(247,244,239,.08) 92%,rgba(247,244,239,0) 100%)!important;}
  html body .hg-hero.hg-hero--home #hg-hero-title{font-size:clamp(62px,4.9vw,80px)!important;line-height:.96!important;}
  html body.admin-bar .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__content,html body:not(.admin-bar) .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__content{width:29%!important;max-width:500px!important;}
  html body .hg-news-page .hg-news-intro,html body .hg-news-page .hg-news-intro__grid,html body .hg-news-page .hg-news-intro__copy,html body .hg-news-page .hg-news-intro__media{height:365px!important;min-height:365px!important;max-height:365px!important;}
  html body .hg-news-page .hg-news-intro__media img{width:100%!important;height:365px!important;object-fit:cover!important;object-position:center 52%!important;}
  html body .hg-loci-intro{padding-top:0!important;padding-bottom:0!important;overflow:hidden!important;}
  html body .hg-loci-intro__inner{align-items:stretch!important;}
  html body .hg-loci-intro__copy{align-self:center!important;padding-top:46px!important;padding-bottom:46px!important;}
  html body .hg-loci-intro__visual{min-height:430px!important;align-self:stretch!important;}
  html body .hg-loci-intro__image{height:100%!important;min-height:430px!important;max-height:none!important;background-size:104% auto!important;background-position:center center!important;}
  html body .hg-loci-intro__quote{min-height:430px!important;}
}
html body .hg-featured-projects-page .hg-fp-card--oreslandet .hg-fp-card__image{object-fit:cover!important;object-position:center 68%!important;}
html body .hg-featured-projects-page #hg-oreslandet3-modal .hg-fp-modal__hero img{object-fit:cover!important;object-position:center 68%!important;}
html body .hg-featured-projects-page .hg-fp-card--reference{cursor:pointer;}
html body .hg-featured-projects-page .hg-fp-modal__gallery--reference{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;margin-top:30px!important;}
html body .hg-featured-projects-page .hg-fp-modal__gallery--reference figure{margin:0!important;min-height:260px!important;overflow:hidden!important;}
html body .hg-featured-projects-page .hg-fp-modal__gallery--reference img{width:100%!important;height:100%!important;min-height:260px!important;object-fit:cover!important;display:block!important;}
html body .hg-featured-projects-page .hg-fp-modal__story-grid--technology{margin-top:28px!important;}
html body .hg-featured-projects-page .hg-fp-modal__gallery--gips{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
html body .hg-featured-projects-page .hg-fp-modal__gallery--gips .hg-fp-modal__gallery-wide{grid-column:1 / -1!important;}
@media (max-width:760px){html body .hg-featured-projects-page .hg-fp-modal__gallery--reference,html body .hg-featured-projects-page .hg-fp-modal__gallery--gips{grid-template-columns:1fr!important;}}

/* =========================================================
   V385 — Home hero final fold / white copy panel / tighter fade
   19 Sep 2026
   ========================================================= */
@media  (min-width:901px){
  /* Taller first fold: after the site header, the hero occupies almost the
     whole screen. Only a small top slice of the green statistics strip is
     visible before scrolling; the awards section stays below the fold. */
  html body.admin-bar .hg-hero.hg-hero--home[data-hg-hero],
  html body:not(.admin-bar) .hg-hero.hg-hero--home[data-hg-hero]{
    --hg-home-hero-height:clamp(760px,84svh,840px)!important;
    height:var(--hg-home-hero-height)!important;
    min-height:var(--hg-home-hero-height)!important;
    max-height:var(--hg-home-hero-height)!important;
    background:#FBFAF7!important;
    overflow:hidden!important;
  }

  /* Keep every slide completely outside the text panel. */
  html body.admin-bar .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__media,
  html body:not(.admin-bar) .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__media{
    left:29%!important;
    inset:0 0 0 29%!important;
    background:#FBFAF7!important;
    overflow:hidden!important;
  }

  /* The real image is never scaled beyond its natural full-height framing.
     This removes the extra zoom/crop on slide 2 and keeps the roof visible. */
  html body.admin-bar .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__image,
  html body:not(.admin-bar) .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__image{
    top:0!important;
    right:0!important;
    bottom:0!important;
    left:0!important;
    width:100%!important;
    height:100%!important;
    min-width:0!important;
    min-height:0!important;
    max-width:none!important;
    max-height:none!important;
    object-fit:contain!important;
    object-position:right bottom!important;
    transform:none!important;
    background:#FBFAF7!important;
  }

  /* Slide 2 (Pergolan) explicitly uses no zoom and keeps the roof/top edge. */
  html body .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__slide[data-project="Brf Pergolan"] .hg-hero__image{
    object-fit:contain!important;
    object-position:right top!important;
    transform:none!important;
  }

  /* More white/cream behind the copy. The media cannot show through it. */
  html body.admin-bar .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__content,
  html body:not(.admin-bar) .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__content{
    width:29%!important;
    max-width:none!important;
    background:#FBFAF7!important;
    z-index:20!important;
    padding-left:44px!important;
    padding-right:26px!important;
  }

  /* Fade begins exactly at the image edge and ends sooner, so it sits closer
     to the text instead of washing over a large part of the photograph. */
  html body.admin-bar .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__fade,
  html body:not(.admin-bar) .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__fade{
    left:29%!important;
    width:clamp(190px,16vw,285px)!important;
    height:100%!important;
    min-height:100%!important;
    background:linear-gradient(90deg,
      #FBFAF7 0%,
      rgba(251,250,247,.99) 10%,
      rgba(251,250,247,.92) 28%,
      rgba(251,250,247,.68) 48%,
      rgba(251,250,247,.36) 68%,
      rgba(251,250,247,.12) 86%,
      rgba(251,250,247,0) 100%)!important;
    z-index:12!important;
    pointer-events:none!important;
  }

  html body .hg-hero.hg-hero--home #hg-hero-title{
    font-size:clamp(60px,4.7vw,77px)!important;
  }
}

/* V385 — News hero: wider image, less zoom, copy elements slightly tighter. */
@media  (min-width:901px){
  html body .hg-news-page .hg-news-intro__grid{
    grid-template-columns:43% 57%!important;
  }
  html body .hg-news-page .hg-news-intro__copy{
    padding-right:28px!important;
  }
  html body .hg-news-page .hg-news-intro__copy h1{
    margin-bottom:12px!important;
  }
  html body .hg-news-page .hg-news-intro__lead{
    margin-top:14px!important;
    max-width:500px!important;
  }
  html body .hg-news-page .hg-news-intro__media img{
    object-fit:cover!important;
    object-position:center center!important;
    transform:scale(.96)!important;
    transform-origin:center center!important;
  }
  html body .hg-news-page .hg-news-intro__media{
    overflow:hidden!important;
    background:#F7F4EF!important;
  }
  html body .hg-news-page .hg-news-intro__media::before{
    width:150px!important;
  }
}

/* V386 — Definitive home/news hero overrides. Keep mirrored with functions.php inline CSS. */
@media  (min-width:901px){
  html body.admin-bar .hg-hero.hg-hero--home[data-hg-hero]{--hg-home-hero-height:clamp(700px,calc(100svh - 130px),900px)!important;}
  html body:not(.admin-bar) .hg-hero.hg-hero--home[data-hg-hero]{--hg-home-hero-height:clamp(700px,calc(100svh - 98px),900px)!important;}
  html body .hg-hero.hg-hero--home[data-hg-hero]{width:100%!important;max-width:none!important;height:var(--hg-home-hero-height)!important;min-height:var(--hg-home-hero-height)!important;max-height:var(--hg-home-hero-height)!important;margin:0!important;padding:0!important;overflow:hidden!important;isolation:isolate!important;background:#FBFAF7!important;}
  html body .hg-hero.hg-hero--home[data-hg-hero]::before,html body .hg-hero.hg-hero--home[data-hg-hero]::after{content:none!important;display:none!important;background:none!important;}
  html body .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__content{position:absolute!important;inset:0 auto 0 0!important;width:31%!important;max-width:none!important;height:100%!important;min-height:100%!important;padding:0 30px 0 44px!important;display:flex!important;justify-content:center!important;align-items:flex-start!important;background:#FBFAF7!important;color:#1F241F!important;z-index:40!important;overflow:visible!important;}
  html body .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__copy{position:relative!important;z-index:41!important;width:100%!important;background:#FBFAF7!important;}
  html body .hg-hero.hg-hero--home[data-hg-hero] #hg-hero-title{font-size:clamp(60px,4.7vw,77px)!important;line-height:.96!important;}
  html body .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__media{position:absolute!important;inset:0 0 0 31%!important;left:31%!important;width:69%!important;height:100%!important;margin:0!important;padding:0!important;overflow:hidden!important;background:#FBFAF7!important;z-index:1!important;}
  html body .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__slide,html body .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__slide.is-active{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;margin:0!important;padding:0!important;overflow:hidden!important;background-image:none!important;background:none!important;transform:none!important;}
  html body .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__image{display:block!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-width:100%!important;min-height:100%!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;object-fit:cover!important;object-position:center center!important;transform:none!important;background:transparent!important;}
  html body .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__slide[data-project="Brf Pergolan"] .hg-hero__image{object-fit:cover!important;object-position:center top!important;transform:none!important;}
  html body .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__fade{display:block!important;position:absolute!important;top:0!important;bottom:0!important;left:31%!important;right:auto!important;width:clamp(150px,12vw,220px)!important;height:100%!important;margin:0!important;padding:0!important;background:linear-gradient(90deg,#FBFAF7 0%,rgba(251,250,247,.98) 12%,rgba(251,250,247,.86) 30%,rgba(251,250,247,.58) 52%,rgba(251,250,247,.25) 73%,rgba(251,250,247,0) 100%)!important;z-index:20!important;pointer-events:none!important;}
  html body .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__shade{display:none!important;}
  html body .hg-news-page .hg-news-intro__grid{grid-template-columns:40% 60%!important;}
  html body .hg-news-page .hg-news-intro__copy{padding-right:20px!important;}
  html body .hg-news-page .hg-news-intro__copy h1{margin-bottom:8px!important;}
  html body .hg-news-page .hg-news-intro__lead{margin-top:10px!important;max-width:520px!important;}
  html body .hg-news-page .hg-news-intro__media{overflow:hidden!important;background:#FBFAF7!important;}
  html body .hg-news-page .hg-news-intro__media img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center center!important;transform:none!important;}
  html body .hg-news-page .hg-news-intro__media::before{width:125px!important;}
}


/* V387 — definitive homepage hero geometry, fade seam and slide framing. */
@media  (min-width:901px){
  /* Make the hero ~70px taller than V386 so only a slim part of the green stats strip is visible. */
  html body.admin-bar .hg-hero.hg-hero--home[data-hg-hero]{--hg-home-hero-height:clamp(760px,calc(100svh - 60px),980px)!important;}
  html body:not(.admin-bar) .hg-hero.hg-hero--home[data-hg-hero]{--hg-home-hero-height:clamp(760px,calc(100svh - 28px),980px)!important;}
  html body.admin-bar .hg-hero.hg-hero--home[data-hg-hero],
  html body:not(.admin-bar) .hg-hero.hg-hero--home[data-hg-hero]{height:var(--hg-home-hero-height)!important;min-height:var(--hg-home-hero-height)!important;max-height:var(--hg-home-hero-height)!important;overflow:hidden!important;background:#FBFAF7!important;isolation:isolate!important;}

  /* Critical stacking fix: older hero code gives .hg-hero__inner z-index:10,
     which traps all text underneath the sibling fade at z-index:45.  Keep the inner
     positioned for geometry, but remove its stacking context. */
  html body.admin-bar .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__inner,
  html body:not(.admin-bar) .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__inner{
    position:relative!important;
    z-index:auto!important;
    width:100%!important;
    max-width:none!important;
    height:100%!important;
    min-height:100%!important;
    margin:0!important;
    padding:0!important;
  }

  /* Solid copy panel. These selectors deliberately include admin-bar/not(.admin-bar)
     so they outrank the old V381/V384 rules still present earlier in the stylesheet. */
  html body.admin-bar .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__content,
  html body:not(.admin-bar) .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__content{
    position:absolute!important;inset:0 auto 0 0!important;width:27%!important;max-width:none!important;height:100%!important;
    display:block!important;padding:0!important;background:#FBFAF7!important;z-index:60!important;overflow:visible!important;
  }
  html body.admin-bar .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__copy,
  html body:not(.admin-bar) .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__copy{position:absolute!important;z-index:61!important;top:50%!important;left:28px!important;width:clamp(470px,34vw,600px)!important;max-width:none!important;margin:0!important;padding:0!important;transform:translateY(-50%)!important;background:transparent!important;}

  /* Give the photographs a slightly wider stage (less apparent zoom), but let it run
     4% behind the opaque copy panel. Nothing can show through the text. */
  html body.admin-bar .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__media,
  html body:not(.admin-bar) .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__media{
    position:absolute!important;inset:0 0 0 16%!important;left:16%!important;width:84%!important;height:100%!important;
    margin:0!important;padding:0!important;overflow:hidden!important;background:#FBFAF7!important;z-index:1!important;
  }
  html body.admin-bar .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__slide,
  html body.admin-bar .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__slide.is-active,
  html body:not(.admin-bar) .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__slide,
  html body:not(.admin-bar) .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__slide.is-active{
    position:absolute!important;inset:0!important;width:100%!important;height:100%!important;margin:0!important;padding:0!important;
    overflow:hidden!important;background:none!important;background-image:none!important;transform:none!important;
  }
  html body.admin-bar .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__image,
  html body:not(.admin-bar) .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__image{
    display:block!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
    min-width:100%!important;min-height:100%!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;
    object-fit:cover!important;object-position:center center!important;transform:none!important;background:transparent!important;
  }
  /* Pergolan: winning high-specificity rule. Preserve the full vertical source
     (sky through grass) with no cover-crop/zoom; anchor it to the right. */
  html body.admin-bar .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__slide[data-project="Brf Pergolan"] .hg-hero__image,
  html body:not(.admin-bar) .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__slide[data-project="Brf Pergolan"] .hg-hero__image{
    top:0!important;right:0!important;bottom:0!important;left:auto!important;width:86.9047619%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;object-fit:contain!important;object-position:right center!important;transform:none!important;}

  /* Sirius / slide 3: maximum upward framing. Same specificity as the winning
     desktop image rule, so this genuinely changes the crop. */
  html body.admin-bar .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__slide[data-project="Brf Sirius"] .hg-hero__image,
  html body:not(.admin-bar) .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__slide[data-project="Brf Sirius"] .hg-hero__image{
    top:0!important;right:0!important;bottom:0!important;left:auto!important;width:86.9047619%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;object-fit:contain!important;object-position:right top!important;transform:none!important;}
  /* Interior/third slide: no legacy scale either. */
  html body.admin-bar .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__slide--interior .hg-hero__image,
  html body:not(.admin-bar) .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__slide--interior .hg-hero__image{object-position:right bottom!important;transform:scale(1)!important;}

  /* Seamless fade: starts 8px inside the solid copy panel to remove the visible vertical seam. */
  html body.admin-bar .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__fade,
  html body:not(.admin-bar) .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__fade{
    display:block!important;position:absolute!important;top:0!important;bottom:0!important;left:calc(27% - 8px)!important;right:auto!important;
    width:calc(clamp(175px,13vw,235px) + 4vw)!important;height:100%!important;margin:0!important;padding:0!important;
    background:linear-gradient(90deg,#FBFAF7 0%,#FBFAF7 6%,rgba(251,250,247,.97) 18%,rgba(251,250,247,.82) 36%,rgba(251,250,247,.55) 56%,rgba(251,250,247,.25) 76%,rgba(251,250,247,.07) 91%,rgba(251,250,247,0) 100%)!important;
    z-index:45!important;pointer-events:none!important;border:0!important;box-shadow:none!important;
  }
  html body.admin-bar .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__shade,
  html body:not(.admin-bar) .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__shade{display:none!important;background:none!important;}
}

/* V404 — HOME HERO WIDTH/Fade + PERGOLAN FULL-FRAME CORRECTION.
   Replaces the V388–V400 patch stack with one authoritative rule set. */
@media  (min-width:901px){
  html body.admin-bar .hg-hero.hg-hero--home[data-hg-hero]{--hg-home-hero-height:clamp(705px,calc(100svh - 110px),885px)!important;}
  html body:not(.admin-bar) .hg-hero.hg-hero--home[data-hg-hero]{--hg-home-hero-height:clamp(705px,calc(100svh - 78px),885px)!important;}
  html body .hg-hero.hg-hero--home[data-hg-hero]{height:var(--hg-home-hero-height)!important;min-height:var(--hg-home-hero-height)!important;max-height:var(--hg-home-hero-height)!important;overflow:hidden!important;}

  /* Keep copy at its current readable width, but let BOTH photos begin farther left underneath the fade. */
  html body .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__content{width:27%!important;background:#FBFAF7!important;overflow:visible!important;position:relative!important;z-index:50!important;}
  html body .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__copy{background:#FBFAF7!important;position:relative!important;z-index:51!important;}
  html body .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__media{left:23%!important;right:0!important;top:0!important;bottom:0!important;width:77%!important;height:100%!important;overflow:hidden!important;background:#FBFAF7!important;}

  html body .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__slide{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;overflow:hidden!important;background-image:none!important;background:#FBFAF7!important;}
  html body .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__slide > img.hg-hero__image{display:block!important;visibility:visible!important;opacity:1!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-width:100%!important;min-height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;object-position:center center!important;transform:none!important;margin:0!important;padding:0!important;}

  /* Pergolan: preserve the COMPLETE original frame (roof + lawn) while filling the hero exactly to the green banner.
     The source is 2:1 while the hero window is slightly taller, so use a very small vertical stretch instead of cropping. */
  html body .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__slide.hg-hero__slide--pergolan > img.hg-hero__image{object-fit:fill!important;object-position:center center!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;transform:none!important;}

  /* Slightly wider fade, extending back toward the text while the image continues underneath it. */
  html body .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__fade{display:block!important;position:absolute!important;top:0!important;bottom:0!important;left:calc(27% - 8px)!important;width:clamp(235px,17vw,325px)!important;height:100%!important;background:linear-gradient(90deg,#FBFAF7 0%,#FBFAF7 7%,rgba(251,250,247,.98) 18%,rgba(251,250,247,.86) 36%,rgba(251,250,247,.60) 56%,rgba(251,250,247,.31) 75%,rgba(251,250,247,.10) 90%,rgba(251,250,247,0) 100%)!important;z-index:45!important;pointer-events:none!important;border:0!important;box-shadow:none!important;}
  html body .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__shade{display:none!important;background:none!important;}

  html body .hg-hero.hg-hero--home[data-hg-hero] #hg-hero-title{font-size:clamp(54px,4.15vw,68px)!important;line-height:.98!important;}
}

/* V410 — Pergolan only: preserve the complete source frame without cropping.
   The photo is sized from HERO HEIGHT (not container width), so roof + lawn remain visible.
   Media extends farther left under the opaque copy/fade so both homepage photos feel wider. */
@media  (min-width:901px){
  html body .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__media{
    left:16%!important;
    right:0!important;
    width:84%!important;
    height:100%!important;
    overflow:hidden!important;
    background:#FBFAF7!important;
  }
  html body .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__fade{
    left:calc(27% - 10px)!important;
    width:clamp(255px,18.5vw,350px)!important;
  }
  html body .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__slide.hg-hero__slide--pergolan > img.hg-hero__image,
  html body .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__slide[data-project="Brf Pergolan"] > img.hg-hero__image{display:block!important;position:absolute!important;top:0!important;right:0!important;bottom:0!important;left:auto!important;width:86.9047619%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;object-fit:contain!important;object-position:right center!important;transform:none!important;margin:0!important;padding:0!important;}

  html body .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__slide[data-project="Brf Sirius"] > img.hg-hero__image{display:block!important;position:absolute!important;top:0!important;right:0!important;bottom:0!important;left:auto!important;width:86.9047619%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;object-fit:contain!important;object-position:right top!important;transform:none!important;margin:0!important;padding:0!important;}
}

/* V411 — FINAL HOME HERO GEOMETRY: only desktop homepage hero.
   Hero is the exact viewport strip between the menu and the visible stats banner.
   Pergolan keeps the full 1400x700 frame: no crop, no stretch. */
@media  (min-width:901px){
  html body:not(.admin-bar) .hg-hero.hg-hero--home[data-hg-hero]{
    --hg-home-hero-height:calc(100svh - 207px)!important;
    height:var(--hg-home-hero-height)!important;
    min-height:var(--hg-home-hero-height)!important;
    max-height:var(--hg-home-hero-height)!important;
  }
  html body.admin-bar .hg-hero.hg-hero--home[data-hg-hero]{
    --hg-home-hero-height:calc(100svh - 239px)!important;
    height:var(--hg-home-hero-height)!important;
    min-height:var(--hg-home-hero-height)!important;
    max-height:var(--hg-home-hero-height)!important;
  }
  html body .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__media{
    position:absolute!important;
    inset:0 0 0 12%!important;
    width:88%!important;
    height:100%!important;
    min-height:0!important;
    max-height:none!important;
    overflow:hidden!important;
  }
  html body .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__slide{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    overflow:hidden!important;
  }
  html body .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__fade{
    left:calc(26% - 18px)!important;
    width:clamp(285px,20vw,390px)!important;
    height:100%!important;
  }
  html body .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__slide.hg-hero__slide--pergolan > img.hg-hero__image,
  html body .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__slide[data-project="Brf Pergolan"] > img.hg-hero__image{
    display:block!important;position:absolute!important;inset:0!important;top:0!important;right:0!important;bottom:0!important;left:0!important;height:100%!important;width:100%!important;min-width:100%!important;min-height:100%!important;max-width:none!important;max-height:none!important;object-fit:contain!important;object-position:right center!important;transform:none!important;margin:0!important;padding:0!important;
  }
}


/* V416 — HOME STATS ONLY: exact vertical centering + equal line spacing. Hero untouched. */
@media  (min-width:901px){
  html body .hg-home .hg-stat,
  html body .hg-home-page .hg-stat{
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:0!important;
    text-align:center!important;
    padding:0 18px!important;
  }
  html body .hg-home .hg-stat__icon,
  html body .hg-home-page .hg-stat__icon{
    display:none!important;
  }
  html body .hg-home .hg-stat__text,
  html body .hg-home-page .hg-stat__text,
  html body .hg-home .hg-stat > div,
  html body .hg-home-page .hg-stat > div{
    display:grid!important;
    grid-template-rows:38px 14px!important;
    row-gap:4px!important;
    align-content:center!important;
    justify-items:center!important;
    width:100%!important;
    height:56px!important;
    min-height:56px!important;
    margin:0!important;
    padding:0!important;
    text-align:center!important;
  }
  html body .hg-home .hg-stat strong,
  html body .hg-home-page .hg-stat strong{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    height:38px!important;
    margin:0!important;
    padding:0!important;
    line-height:1!important;
    text-align:center!important;
  }
  html body .hg-home .hg-stat__text > span,
  html body .hg-home-page .hg-stat__text > span,
  html body .hg-home .hg-stat small,
  html body .hg-home-page .hg-stat small{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    height:14px!important;
    margin:0!important;
    padding:0!important;
    line-height:1!important;
    text-align:center!important;
  }
}

/* V417 — HOME HERO COPY: vertical centering only.
   Keeps V411 image/media geometry and V416 stats banner untouched. */
@media  (min-width:901px){
  html body .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__inner{
    height:100%!important;
    min-height:100%!important;
  }
  html body .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__content{
    height:100%!important;
    min-height:100%!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    align-items:flex-start!important;
    padding-top:0!important;
    padding-bottom:0!important;
    transform:none!important;
  }
  html body .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__copy{
    margin-top:0!important;
    margin-bottom:0!important;
  }
}

/* V420 — Brf Sirius: richer reference-project modal, extra imagery and source attribution. */
html body .hg-featured-projects-page #hg-ref-sirius-modal .hg-fp-modal__lead--extra{
  margin-top:16px!important;
}
html body .hg-featured-projects-page #hg-ref-sirius-modal .hg-fp-modal__sources{
  margin:16px 0 0!important;
  font-size:12px!important;
  line-height:1.55!important;
  color:#6a716b!important;
}
html body .hg-featured-projects-page #hg-ref-sirius-modal .hg-fp-modal__sources a{
  color:#173452!important;
  text-decoration:underline!important;
  text-underline-offset:2px!important;
}

/* V432 — Homepage awards: refined centering + elegant divider */
@media  (min-width:901px){
  html body .hg-home .hg-awards > .hg-shell,
  html body .hg-home-page .hg-awards > .hg-shell{
    align-items:stretch !important;
  }
  html body .hg-home .hg-awards .hg-section-heading,
  html body .hg-home-page .hg-awards .hg-section-heading{
    display:flex !important;
    flex-direction:column !important;
    justify-content:center !important;
    padding:0 28px 0 0 !important;
  }
  html body .hg-home .hg-awards .hg-section-heading h2,
  html body .hg-home-page .hg-awards .hg-section-heading h2{
    margin:0 !important;
  }
  html body .hg-home .hg-awards .hg-section-heading h2::after,
  html body .hg-home-page .hg-awards .hg-section-heading h2::after{
    content:"" !important;
    display:block !important;
    width:48px !important;
    height:1px !important;
    margin:10px 0 10px !important;
    background:#173452 !important;
    opacity:.85 !important;
  }
  html body .hg-home .hg-awards .hg-section-heading > p:not(.hg-eyebrow),
  html body .hg-home-page .hg-awards .hg-section-heading > p:not(.hg-eyebrow){
    margin:0 !important;
  }
  html body .hg-home .hg-awards__grid,
  html body .hg-home-page .hg-awards__grid{
    align-items:stretch !important;
  }
  html body .hg-home .hg-award,
  html body .hg-home-page .hg-award{
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    text-align:center !important;
    min-height:132px !important;
    padding:12px 28px !important;
  }
  html body .hg-home .hg-award:first-child,
  html body .hg-home-page .hg-award:first-child{
    padding-left:28px !important;
  }
  html body .hg-home .hg-award__top,
  html body .hg-home-page .hg-award__top{
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    gap:5px !important;
    width:100% !important;
    margin:0 0 9px !important;
  }
  html body .hg-home .hg-award__icon,
  html body .hg-home-page .hg-award__icon{
    margin:0 auto !important;
  }
  html body .hg-home .hg-award__type,
  html body .hg-home-page .hg-award__type,
  html body .hg-home .hg-award h3,
  html body .hg-home-page .hg-award h3,
  html body .hg-home .hg-award p,
  html body .hg-home-page .hg-award p{
    width:100% !important;
    text-align:center !important;
  }
  html body .hg-home .hg-award h3,
  html body .hg-home-page .hg-award h3{
    margin:0 !important;
  }
}



/* V434 — Homepage awards compact + strict alignment.
   Keeps the section in the same location, restores a low elegant height,
   and gives every award identical vertical spacing. */
@media  (min-width:1101px){
  html body .hg-home .hg-awards,
  html body .hg-home-page .hg-awards{
    padding:12px 0 13px!important;
    min-height:0!important;
  }

  html body .hg-home .hg-awards > .hg-shell,
  html body .hg-home-page .hg-awards > .hg-shell{
    display:grid!important;
    grid-template-columns:minmax(320px,.95fr) minmax(0,3.05fr)!important;
    column-gap:0!important;
    align-items:stretch!important;
    min-height:108px!important;
  }

  /* Left intro: left aligned, vertically centred, compact. */
  html body .hg-home .hg-awards .hg-section-heading,
  html body .hg-home-page .hg-awards .hg-section-heading{
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    justify-content:center!important;
    text-align:left!important;
    margin:0!important;
    padding:0 34px 0 0!important;
    max-width:none!important;
  }

  html body .hg-home .hg-awards .hg-section-heading .hg-eyebrow,
  html body .hg-home-page .hg-awards .hg-section-heading .hg-eyebrow{
    display:none!important;
  }

  html body .hg-home .hg-awards .hg-section-heading h2,
  html body .hg-home-page .hg-awards .hg-section-heading h2{
    margin:0!important;
    font-size:2.10rem!important;
    line-height:1!important;
    text-align:left!important;
  }

  html body .hg-home .hg-awards .hg-section-heading h2::after,
  html body .hg-home-page .hg-awards .hg-section-heading h2::after{
    content:""!important;
    display:block!important;
    width:46px!important;
    height:1px!important;
    margin:4px 0 8px!important;
    background:#173452!important;
    opacity:.9!important;
  }

  html body .hg-home .hg-awards .hg-section-heading > p:not(.hg-eyebrow),
  html body .hg-home-page .hg-awards .hg-section-heading > p:not(.hg-eyebrow){
    margin:0!important;
    max-width:305px!important;
    font-size:.79rem!important;
    line-height:1.34!important;
    text-align:left!important;
  }

  /* Four equal award cells with a shared vertical rhythm. */
  html body .hg-home .hg-awards__grid,
  html body .hg-home-page .hg-awards__grid{
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:0!important;
    align-items:stretch!important;
    margin:0!important;
    padding:0!important;
    height:100%!important;
  }

  html body .hg-home .hg-award,
  html body .hg-home-page .hg-award,
  html body .hg-home .hg-award:first-child,
  html body .hg-home-page .hg-award:first-child{
    display:grid!important;
    grid-template-rows:50px 42px!important;
    align-content:center!important;
    justify-items:center!important;
    min-height:108px!important;
    height:100%!important;
    padding:6px 22px!important;
    margin:0!important;
    border:0!important;
    border-left:1px solid rgba(23,52,82,.18)!important;
    background:transparent!important;
    text-align:center!important;
  }

  html body .hg-home .hg-award__top,
  html body .hg-home-page .hg-award__top{
    display:grid!important;
    grid-template-rows:24px 18px!important;
    row-gap:3px!important;
    align-content:center!important;
    justify-items:center!important;
    width:100%!important;
    height:50px!important;
    margin:0!important;
    padding:0!important;
  }

  html body .hg-home .hg-award__icon,
  html body .hg-home-page .hg-award__icon{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:22px!important;
    height:22px!important;
    margin:0!important;
  }

  html body .hg-home .hg-award__icon svg,
  html body .hg-home-page .hg-award__icon svg{
    width:22px!important;
    height:22px!important;
  }

  html body .hg-home .hg-award__type,
  html body .hg-home-page .hg-award__type{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    min-height:18px!important;
    margin:0!important;
    font-size:.58rem!important;
    line-height:1.05!important;
    letter-spacing:.09em!important;
    text-align:center!important;
    white-space:normal!important;
  }

  html body .hg-home .hg-award h3,
  html body .hg-home-page .hg-award h3{
    display:flex!important;
    align-items:flex-start!important;
    justify-content:center!important;
    width:100%!important;
    max-width:255px!important;
    min-height:42px!important;
    margin:0!important;
    font-size:1.05rem!important;
    line-height:1.12!important;
    text-align:center!important;
  }

  /* Descriptions are intentionally omitted in this compact homepage strip. */
  html body .hg-home .hg-award > p,
  html body .hg-home-page .hg-award > p{
    display:none!important;
  }
}

@media  (min-width:901px) and (max-width:1100px){
  html body .hg-home .hg-awards,
  html body .hg-home-page .hg-awards{padding:16px 0!important;}
}




/* V437 — About team portrait refinement.
   Zoom Marcus Halvorsen slightly further in and keep focus on the face. */
html body .hg-about .hg-about-person__photo[aria-label="Marcus Halvorsen"]{
    background-size:156% auto !important;
    background-position:center 12% !important;
    background-repeat:no-repeat !important;
}




/* V436 — About founders: two people only, text to the right of each portrait. */
@media  (min-width:901px){
  html body .hg-about .hg-about-people__grid{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:clamp(34px,3.2vw,62px)!important;
    align-items:start!important;
  }

  html body .hg-about .hg-about-person{
    display:grid!important;
    grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr)!important;
    grid-template-rows:auto auto 1fr!important;
    column-gap:clamp(22px,2vw,34px)!important;
    row-gap:0!important;
    align-items:start!important;
    min-width:0!important;
  }

  html body .hg-about .hg-about-person__photo{
    grid-column:1!important;
    grid-row:1 / 4!important;
    width:100%!important;
    aspect-ratio:1 / 1.03!important;
    margin:0!important;
    align-self:start!important;
  }

  html body .hg-about .hg-about-person h3,
  html body .hg-about .hg-about-person__role,
  html body .hg-about .hg-about-person > p:last-child{
    grid-column:2!important;
  }

  html body .hg-about .hg-about-person h3{
    grid-row:1!important;
    margin:2px 0 7px!important;
    font-size:clamp(1.28rem,1.35vw,1.55rem)!important;
    line-height:1.08!important;
  }

  html body .hg-about .hg-about-person__role{
    grid-row:2!important;
    margin:0 0 14px!important;
  }

  html body .hg-about .hg-about-person > p:last-child{
    grid-row:3!important;
    margin:0!important;
    max-width:34em!important;
    font-size:.78rem!important;
    line-height:1.55!important;
  }
}

@media  (max-width:900px){
  html body .hg-about .hg-about-people__grid{
    grid-template-columns:1fr!important;
    gap:34px!important;
  }
}

@media  (min-width:621px) and (max-width:900px){
  html body .hg-about .hg-about-person{
    display:grid!important;
    grid-template-columns:minmax(220px,.9fr) minmax(0,1.1fr)!important;
    grid-template-rows:auto auto 1fr!important;
    column-gap:26px!important;
    align-items:start!important;
  }

  html body .hg-about .hg-about-person__photo{
    grid-column:1!important;
    grid-row:1 / 4!important;
    margin:0!important;
  }

  html body .hg-about .hg-about-person h3,
  html body .hg-about .hg-about-person__role,
  html body .hg-about .hg-about-person > p:last-child{
    grid-column:2!important;
  }
}




/* V440 — Hyresbostäder hero refinement.
   Narrower copy panel, softer transition and lower image crop for more of the homes. */
@media  (min-width:901px){
  html body .hg-rentals-page .hg-rentals-hero.hg-rentals-hero--split{
    display:grid!important;
    grid-template-columns:28% 72%!important;
    min-height:520px!important;
    height:520px!important;
    background:#173452!important;
    overflow:hidden!important;
  }

  html body .hg-rentals-page .hg-rentals-hero__panel,
  html body .hg-rentals-page .hg-rentals-hero__picture{
    min-height:520px!important;
    height:520px!important;
  }

  html body .hg-rentals-page .hg-rentals-hero__panel{
    position:relative!important;
    z-index:5!important;
    display:flex!important;
    align-items:center!important;
    background:#173452!important;
  }

  html body .hg-rentals-page .hg-rentals-hero__panel-inner{
    width:100%!important;
    max-width:330px!important;
    margin:0 auto!important;
    padding:30px 34px!important;
    transform:none!important;
  }

  html body .hg-rentals-page .hg-rentals-hero .hg-rentals-eyebrow{
    margin:0!important;
    font-size:11px!important;
    line-height:1!important;
    letter-spacing:.18em!important;
  }

  html body .hg-rentals-page .hg-rentals-hero__divider{
    width:54px!important;
    height:1px!important;
    margin:18px 0 28px!important;
  }

  html body .hg-rentals-page .hg-rentals-hero__panel h1{
    max-width:270px!important;
    margin:0!important;
    font-size:clamp(48px,3.55vw,60px)!important;
    line-height:.98!important;
    letter-spacing:-.035em!important;
  }

  html body .hg-rentals-page .hg-rentals-hero__lead{
    max-width:290px!important;
    margin:22px 0 0!important;
    font-size:14px!important;
    line-height:1.55!important;
  }

  html body .hg-rentals-page .hg-rentals-hero__picture{
    position:relative!important;
    overflow:hidden!important;
    min-width:0!important;
  }

  html body .hg-rentals-page .hg-rentals-hero__picture::before{
    content:""!important;
    position:absolute!important;
    z-index:3!important;
    top:0!important;
    bottom:0!important;
    left:0!important;
    width:175px!important;
    pointer-events:none!important;
    background:linear-gradient(90deg,#173452 0%,rgba(23,52,82,.97) 12%,rgba(23,52,82,.82) 34%,rgba(23,52,82,.52) 58%,rgba(23,52,82,.22) 78%,rgba(23,52,82,0) 100%)!important;
  }

  html body .hg-rentals-page .hg-rentals-hero__picture img{
    display:block!important;
    width:100%!important;
    height:520px!important;
    object-fit:cover!important;
    object-position:center 60%!important;
  }
}




/* V441 — Hyresbostäder hero: lower profile, vertically centred copy,
   and footer-inspired cream/white typography. */
@media  (min-width:901px){
  html body .hg-rentals-page .hg-rentals-hero.hg-rentals-hero--split{
    min-height:470px!important;
    height:470px!important;
  }

  html body .hg-rentals-page .hg-rentals-hero__panel,
  html body .hg-rentals-page .hg-rentals-hero__picture{
    min-height:470px!important;
    height:470px!important;
  }

  html body .hg-rentals-page .hg-rentals-hero__panel{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
  }

  html body .hg-rentals-page .hg-rentals-hero__panel-inner{
    width:100%!important;
    max-width:330px!important;
    margin:0 auto!important;
    padding:0 34px!important;
    transform:none!important;
  }

  /* Footer palette: warm cream + crisp white. */
  html body .hg-rentals-page .hg-rentals-hero .hg-rentals-eyebrow{
    color:#F7F5EF!important;
  }

  html body .hg-rentals-page .hg-rentals-hero__divider{
    background:rgba(247,245,239,.62)!important;
  }

  html body .hg-rentals-page .hg-rentals-hero__panel h1{
    color:#FFFFFF!important;
  }

  html body .hg-rentals-page .hg-rentals-hero__lead{
    color:rgba(247,245,239,.80)!important;
  }

  html body .hg-rentals-page .hg-rentals-hero__picture img{
    height:470px!important;
    object-position:center 60%!important;
  }
}




/* V444 — Hyresbostäder: Studio image moved to hero; registration section full-width and compact. */
@media  (min-width:901px){
  html body .hg-rentals-page .hg-rentals-interest{
    padding:30px 0 32px!important;
  }
  html body .hg-rentals-page .hg-rentals-interest__grid{
    display:block!important;
    width:100%!important;
    max-width:none!important;
  }
  html body .hg-rentals-page .hg-rentals-interest__content{
    width:100%!important;
    max-width:none!important;
  }
  html body .hg-rentals-page .hg-rentals-interest__intro{
    max-width:900px!important;
    margin:10px 0 17px!important;
  }
  html body .hg-rentals-page .hg-rentals-form{
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:12px 18px!important;
    align-items:end!important;
  }
  html body .hg-rentals-page .hg-rentals-field--wide{
    grid-column:auto!important;
  }
  html body .hg-rentals-page .hg-rentals-field:nth-of-type(1){grid-column:span 2!important;}
  html body .hg-rentals-page .hg-rentals-field:nth-of-type(4){grid-column:span 2!important;}
  html body .hg-rentals-page .hg-rentals-form__submit{
    grid-column:span 2!important;
    flex-direction:row!important;
    align-items:center!important;
    gap:14px!important;
    padding-top:1px!important;
  }
  html body .hg-rentals-page .hg-rentals-interest__image{display:none!important;}
}
@media  (min-width:641px) and (max-width:900px){
  html body .hg-rentals-page .hg-rentals-interest__grid{display:block!important;}
  html body .hg-rentals-page .hg-rentals-interest__image{display:none!important;}
}




/* V445 — Hyresbostäder hero: light-grey editorial panel, wider image, taller composition. */
@media  (min-width:901px){
  html body .hg-rentals-page .hg-rentals-hero.hg-rentals-hero--split{
    display:grid!important;
    grid-template-columns:24% 76%!important;
    min-height:500px!important;
    height:500px!important;
    background:#F7F4EF!important;
    overflow:hidden!important;
  }

  html body .hg-rentals-page .hg-rentals-hero__panel,
  html body .hg-rentals-page .hg-rentals-hero__picture{
    min-height:500px!important;
    height:500px!important;
  }

  html body .hg-rentals-page .hg-rentals-hero__panel{
    position:relative!important;
    z-index:5!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    background:#F7F4EF!important;
  }

  html body .hg-rentals-page .hg-rentals-hero__panel-inner{
    width:100%!important;
    max-width:300px!important;
    margin:0 auto!important;
    padding:0 32px!important;
    transform:none!important;
  }

  html body .hg-rentals-page .hg-rentals-hero .hg-rentals-eyebrow{
    margin:0!important;
    color:#173452!important;
    font-size:11px!important;
    line-height:1!important;
    letter-spacing:.18em!important;
    font-weight:700!important;
  }

  html body .hg-rentals-page .hg-rentals-hero__divider{
    display:block!important;
    width:54px!important;
    height:1px!important;
    margin:18px 0 28px!important;
    background:rgba(23,52,82,.55)!important;
  }

  html body .hg-rentals-page .hg-rentals-hero__panel h1{
    max-width:260px!important;
    margin:0!important;
    color:#1F241F!important;
    font-size:clamp(50px,3.6vw,62px)!important;
    line-height:.98!important;
    letter-spacing:-.035em!important;
    font-weight:400!important;
  }

  html body .hg-rentals-page .hg-rentals-hero__lead{
    max-width:285px!important;
    margin:22px 0 0!important;
    color:#5F655F!important;
    font-size:14px!important;
    line-height:1.55!important;
  }

  html body .hg-rentals-page .hg-rentals-hero__picture{
    position:relative!important;
    overflow:hidden!important;
    min-width:0!important;
  }

  html body .hg-rentals-page .hg-rentals-hero__picture::before{
    content:""!important;
    position:absolute!important;
    z-index:3!important;
    top:0!important;
    bottom:0!important;
    left:0!important;
    width:150px!important;
    pointer-events:none!important;
    background:linear-gradient(
      90deg,
      #F7F4EF 0%,
      rgba(247,244,239,.98) 11%,
      rgba(247,244,239,.84) 32%,
      rgba(247,244,239,.52) 58%,
      rgba(247,244,239,.20) 80%,
      rgba(247,244,239,0) 100%
    )!important;
  }

  html body .hg-rentals-page .hg-rentals-hero__picture img{
    display:block!important;
    width:100%!important;
    height:500px!important;
    object-fit:cover!important;
    object-position:center 60%!important;
  }
}




/* V448 — Hem till salu hero height adjustment only. */
@media  (min-width:901px){
  html body .hg-homes-sale-page .hg-sale-hero,
  html body .hg-homes-sale-page .hg-sale-hero__copy,
  html body .hg-homes-sale-page .hg-sale-hero__media{
    height:480px!important;
    min-height:480px!important;
    max-height:480px!important;
  }
}



/* V449 — Homepage stats: preserve V416 banner/layout; move only the text group slightly upward. */
@media  (min-width:901px){
  html body .hg-home .hg-stat__text,
  html body .hg-home-page .hg-stat__text,
  html body .hg-home .hg-stat > div,
  html body .hg-home-page .hg-stat > div{
    transform:translateY(-3px)!important;
  }
}



/* V450 — Process images: ~15% larger, no other layout changes. */
@media  (min-width:901px){
  html body .hg-loci-process__image{
    width:173px!important;
    height:173px!important;
  }
}




/* V451 — Genius Loci factors: slightly more air, one row, larger typography. */
@media  (min-width:1101px){
  html body .hg-loci-factors__grid{
    grid-template-columns:repeat(9,minmax(0,1fr))!important;
    max-width:1500px!important;
    column-gap:8px!important;
    row-gap:0!important;
  }

  html body .hg-loci-card{
    padding-left:12px!important;
    padding-right:12px!important;
  }

  html body .hg-loci-card h3{
    font-size:.96rem!important;
    line-height:1.16!important;
  }

  html body .hg-loci-card p{
    max-width:148px!important;
    font-size:.72rem!important;
    line-height:1.46!important;
  }

  html body .hg-loci-factors__statement p{
    font-size:1rem!important;
  }
}



/* V478 — SINGLE authoritative desktop homepage hero framing.
   Older historical rules remain in the theme, but this one is the only late override.
   Each slide now has intentionally different geometry. */
@media  (min-width:901px){
  /* Never use the inline/background copy of the hero photo on desktop.
     Only the real <img> is rendered, so there is no duplicate layer fighting the crop. */
  html body.admin-bar .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__slide,
  html body:not(.admin-bar) .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__slide{
    background-image:none!important;
    background:none!important;
    overflow:hidden!important;
  }

  /* Slide 1: keep its cover treatment, only move the photographic framing a little lower. */
  html body.admin-bar .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__slide:first-child .hg-hero__image,
  html body:not(.admin-bar) .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__slide:first-child .hg-hero__image{
    display:block!important;
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    min-width:100%!important;
    min-height:100%!important;
    max-width:none!important;
    max-height:none!important;
    object-fit:cover!important;
    object-position:center 57%!important;
    transform:none!important;
    margin:0!important;
    padding:0!important;
  }

  /* Slide 2 / Pergolan:
     LOCK THE COMPLETE SOURCE HEIGHT to the complete hero height.
     Width follows the image's natural aspect ratio, so only the sides may be cropped.
     No white band can appear above or below. */
  html body.admin-bar .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__slide[data-project="Brf Pergolan"] .hg-hero__image,
  html body:not(.admin-bar) .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__slide[data-project="Brf Pergolan"] .hg-hero__image{
    display:block!important;
    position:absolute!important;
    top:0!important;
    bottom:auto!important;
    left:auto!important;
    right:0!important;
    height:100%!important;
    width:auto!important;
    min-height:100%!important;
    min-width:0!important;
    max-height:100%!important;
    max-width:none!important;
    object-fit:contain!important;
    object-position:right top!important;
    transform:none!important;
    margin:0!important;
    padding:0!important;
  }

  /* Slide 3 / Sirius:
     Use the full hero box with a top-right crop so more of the sky and the right-hand
     part of the building are prioritised. This is deliberately NOT the Pergolan rule. */
  html body.admin-bar .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__slide[data-project="Brf Sirius"] .hg-hero__image,
  html body:not(.admin-bar) .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__slide[data-project="Brf Sirius"] .hg-hero__image{
    display:block!important;
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    min-width:100%!important;
    min-height:100%!important;
    max-width:none!important;
    max-height:none!important;
    object-fit:cover!important;
    object-position:right top!important;
    transform:none!important;
    margin:0!important;
    padding:0!important;
  }
}


/* V478 — Land CTA geometry.
   The vertical divider belongs to the whole right grid cell, not to the button itself.
   Stretch that cell to the full row height, then center the button inside it. */
.hg-land__inner{
  align-items:stretch!important;
}
.hg-land__details{
  align-self:stretch!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:100%!important;
}
.hg-land__details .hg-button{
  width:max-content!important;
  margin:auto!important;
}



/* V482 — Homepage header + hero copy panel to pure white. */
html body .hg-home .hg-header,
html body .hg-home-page .hg-header,
html body.home .hg-header,
html body .hg-hero.hg-hero--home .hg-hero__content{
  background:#FFFFFF!important;
}

/* Match the homepage hero fade to the same pure white so header + text panel read as one surface. */
@media  (min-width:901px){
  html body .hg-hero.hg-hero--home .hg-hero__fade{
    background:linear-gradient(
      90deg,
      #FFFFFF 0%,
      #FFFFFF 7%,
      rgba(255,255,255,.98) 18%,
      rgba(255,255,255,.86) 36%,
      rgba(255,255,255,.60) 56%,
      rgba(255,255,255,.31) 75%,
      rgba(255,255,255,.10) 90%,
      rgba(255,255,255,0) 100%
    )!important;
  }
}




/* V483 — Homepage hero text panel uses the same light background as Hyresbostäder.
   Header/menu stays pure white. */
html body .hg-hero.hg-hero--home .hg-hero__content{
  background:#FBFAF6!important;
}

@media  (min-width:901px){
  html body .hg-hero.hg-hero--home .hg-hero__fade{
    background:linear-gradient(
      90deg,
      #FBFAF6 0%,
      #FBFAF6 7%,
      rgba(251,250,246,.98) 18%,
      rgba(251,250,246,.86) 36%,
      rgba(251,250,246,.60) 56%,
      rgba(251,250,246,.31) 75%,
      rgba(251,250,246,.10) 90%,
      rgba(251,250,246,0) 100%
    )!important;
  }
}




/* V485 — Homepage: no colour panel behind hero text + header remains pure white on scroll. */

/* Hero text area: no solid background colour. */
html body .hg-hero.hg-hero--home .hg-hero__content{
  background:transparent!important;
  background-color:transparent!important;
}

/* Remove the separate colour/fade layer as well. */
@media  (min-width:901px){
  html body .hg-hero.hg-hero--home .hg-hero__fade{
    background:none!important;
    background-image:none!important;
  }
}

/* Homepage header must stay critical white in BOTH initial and scrolled states. */
html body .hg-header.hg-header--home,
html body .hg-header.hg-header--home.is-scrolled,
html body .hg-home .hg-header,
html body .hg-home .hg-header.is-scrolled,
html body .hg-home-page .hg-header,
html body .hg-home-page .hg-header.is-scrolled,
html body.home .hg-header,
html body.home .hg-header.is-scrolled{
  background:#FFFFFF!important;
  background-color:#FFFFFF!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}

/* Prevent a translucent/cream inner header layer from appearing after scroll. */
html body .hg-header.hg-header--home .hg-header__inner,
html body .hg-header.hg-header--home.is-scrolled .hg-header__inner,
html body .hg-home .hg-header__inner,
html body .hg-home-page .hg-header__inner,
html body.home .hg-header__inner{
  background:transparent!important;
  background-color:transparent!important;
}




/* V491 — Homepage hero rolled back one more step to v485.
   Keep only the approved Awards + Vår filosofi background colour. */
html body .hg-home .hg-awards,
html body .hg-home-page .hg-awards,
html body .hg-awards,
html body .hg-loci-intro{
  background:#F7F4EF!important;
  background-color:#F7F4EF!important;
}

html body .hg-loci-intro__quote{
  background:#173452!important;
  background-color:#173452!important;
}




/* V492 — "Nästa plats" CTA styled like the Annual Report text link. */
html body .hg-land__link{
  width:min(100%,295px)!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:18px!important;
  padding:15px 0 10px!important;
  margin:0!important;
  color:#173452!important;
  background:transparent!important;
  border:0!important;
  border-bottom:1px solid #173452!important;
  border-radius:0!important;
  box-shadow:none!important;
  text-decoration:none!important;
  font-size:.78rem!important;
  font-weight:700!important;
  letter-spacing:.11em!important;
  line-height:1.2!important;
  text-transform:uppercase!important;
  transition:opacity .25s ease!important;
}
html body .hg-land__link span:last-child{
  flex:0 0 auto!important;
  font-size:1.45rem!important;
  font-weight:400!important;
  line-height:1!important;
}
html body .hg-land__link:hover,
html body .hg-land__link:focus-visible{
  opacity:.72!important;
}




/* V493 — Nästa plats: remove the vertical divider between copy and CTA. */
html body .hg-land__details{
  border-left:0!important;
  border-inline-start:0!important;
}




/* V542 — Referensprojekt hero: move the visible image crop fully to the left, keeping the same vertical crop. */
html body .hg-featured-projects-page .hg-fp-hero__media img{
  object-position:0% 64% !important;
}




/* V495 — News hero: shorter image / less sky + About-page typography colours. */
@media  (min-width:901px){
  html body .hg-news-page .hg-news-intro,
  html body .hg-news-page .hg-news-intro__grid,
  html body .hg-news-page .hg-news-intro__copy,
  html body .hg-news-page .hg-news-intro__media{
    height:320px!important;
    min-height:320px!important;
    max-height:320px!important;
  }
  html body .hg-news-page .hg-news-intro__media img{
    width:100%!important;
    height:320px!important;
    min-height:320px!important;
    max-height:320px!important;
    object-fit:cover!important;
    object-position:center 68%!important;
    transform:none!important;
  }
}

/* Match Om oss hero text palette exactly. */
html body .hg-news-page .hg-news-intro .hg-eyebrow{
  color:#173452!important;
}
html body .hg-news-page .hg-news-intro h1{
  color:#20231F!important;
}
html body .hg-news-page .hg-news-intro__lead{
  color:#666C65!important;
}
html body .hg-news-page .hg-news-intro h1::after,
html body .hg-news-page .hg-news-intro__rule{
  background:#173452!important;
  border-color:#173452!important;
}




/* V509 — Nästa plats CTA: compact link so text, underline and arrow sit together on the right. */
@media  (min-width:901px){
  html body .hg-land__details{
    justify-content:flex-end!important;
  }
  html body .hg-land__link{
    width:210px!important;
    max-width:210px!important;
    margin-left:auto!important;
    margin-right:0!important;
    gap:14px!important;
  }
}


/* V513 — Nästa plats CTA: compact and positioned near the original arrow location. */
@media  (min-width:901px){
  html body .hg-land__details{
    justify-content:flex-end!important;
  }
  html body .hg-land__link{
    width:172px!important;
    max-width:172px!important;
    margin-left:auto!important;
    margin-right:8vw!important;
    gap:10px!important;
    justify-content:flex-start!important;
  }
  html body .hg-land__link span:first-child{
    white-space:nowrap!important;
    flex:0 0 auto!important;
  }
  html body .hg-land__link span:last-child{
    margin-left:auto!important;
    flex:0 0 auto!important;
  }
}


/* V519 — News page: raise the visible image crop, restore the slim divider, and keep the crisp off-white header. */
html body .hg-news-page .hg-header,
html body .hg-news-page .hg-header.is-scrolled,
html body .hg-news-page .hg-header[data-hg-header],
html body .hg-news-page .hg-header[data-hg-header].is-scrolled{
  background:#FBFAF7 !important;
  background-color:#FBFAF7 !important;
  border:0 !important;
  border-bottom:0 !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}

html body .hg-news-page .hg-header::after,
html body .hg-news-page .hg-header.is-scrolled::after,
html body .hg-news-page .hg-header[data-hg-header]::after,
html body .hg-news-page .hg-header[data-hg-header].is-scrolled::after{
  content:"" !important;
  display:block !important;
  position:absolute !important;
  left:0 !important;
  right:0 !important;
  bottom:0 !important;
  height:1px !important;
  background:rgba(23,52,82,.10) !important;
  pointer-events:none !important;
}

html body .hg-news-page .hg-news-intro,
html body .hg-news-page .hg-news-intro__grid,
html body .hg-news-page .hg-news-intro__media{
  border-top:0 !important;
  box-shadow:none !important;
}

html body .hg-news-page .hg-news-intro__media img{
  object-position:center 17% !important;
}

@media  (max-width:980px) and (min-width:701px){
  html body .hg-news-page .hg-news-intro__media img{
    object-position:center 19% !important;
  }
}

@media  (max-width:700px){
  html body .hg-news-page .hg-news-intro__media img{
    object-position:center 24% !important;
  }
}


/* V521 — Årsredovisning: short decorative rule under eyebrow. */
.hg-about-report__copy .hg-eyebrow{
  position:relative!important;
  padding-bottom:15px!important;
  margin-bottom:11px!important;
}
.hg-about-report__copy .hg-eyebrow::after{
  content:""!important;
  position:absolute!important;
  left:0!important;
  bottom:0!important;
  width:48px!important;
  height:1px!important;
  background:#173452!important;
  opacity:.62!important;
}


/* V522 — Thin grey divider between header/menu and hero on About + Rentals. */
html body .hg-about .hg-header.hg-header--about-static,
html body .hg-about .hg-header.hg-header--about-static.is-scrolled{
  border-bottom:1px solid rgba(32,35,31,.10) !important;
  box-shadow:none !important;
}
html body .hg-rentals-page .hg-header,
html body .hg-rentals-page .hg-header.is-scrolled,
html body .hg-rentals-page .hg-header[data-hg-header],
html body .hg-rentals-page .hg-header[data-hg-header].is-scrolled{
  border-bottom:1px solid rgba(32,35,31,.10) !important;
  box-shadow:none !important;
}
html body .hg-about .hg-about-hero,
html body .hg-rentals-page .hg-rentals-hero{
  border-top:0 !important;
}


/* V523 — Buying guide CTA: same background as the “Så går köpet till” hero panel. */
html body .hg-buying-page .hg-buying-cta{
  background:#F7F4EE !important;
  background-color:#F7F4EE !important;
}


/* V524 — Homepage hero: no rectangular background behind the wide copy wrapper. */
@media  (min-width:901px){
  html body .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__content{
    background:#F7F4EF!important;
    background-color:#F7F4EF!important;
  }
  html body .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__copy{
    background:transparent!important;
    background-color:transparent!important;
    box-shadow:none!important;
  }
  html body .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__fade{
    background:linear-gradient(90deg,#F7F4EF 0%,#F7F4EF 7%,rgba(247,244,239,.98) 19%,rgba(247,244,239,.86) 38%,rgba(247,244,239,.59) 58%,rgba(247,244,239,.28) 77%,rgba(247,244,239,.07) 91%,rgba(247,244,239,0) 100%)!important;
  }
}


/* V525 — About page: visible thin grey divider between header/menu and hero. */
html body .hg-about main .hg-about-hero,
html body .hg-about .hg-about-hero{
  border-top:1px solid rgba(32,35,31,.12) !important;
  box-shadow:none !important;
}
html body .hg-about .hg-header.hg-header--about-static,
html body .hg-about .hg-header.hg-header--about-static.is-scrolled{
  border-bottom:0 !important;
  box-shadow:none !important;
}


/* V527 — Homepage header matches "Hem för livet" background + thin grey divider. */
html body .hg-header.hg-header--home,
html body .hg-header.hg-header--home.is-scrolled,
html body .hg-home .hg-header,
html body .hg-home .hg-header.is-scrolled,
html body .hg-home-page .hg-header,
html body .hg-home-page .hg-header.is-scrolled,
html body.home .hg-header,
html body.home .hg-header.is-scrolled{
  background:#F7F4EF!important;
  background-color:#F7F4EF!important;
  border:0!important;
  border-bottom:1px solid rgba(32,35,31,.11)!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
html body .hg-header.hg-header--home .hg-header__inner,
html body .hg-header.hg-header--home.is-scrolled .hg-header__inner,
html body .hg-home .hg-header__inner,
html body .hg-home-page .hg-header__inner,
html body.home .hg-header__inner{
  background:transparent!important;
  background-color:transparent!important;
}
html body .hg-header.hg-header--home::after,
html body .hg-header.hg-header--home.is-scrolled::after,
html body .hg-home .hg-header::after,
html body .hg-home-page .hg-header::after,
html body.home .hg-header::after{
  content:none!important;
  display:none!important;
}


/* V529 — Öreslandet 3: crop away more sky and keep focus on the upper roofs/building. */
html body .hg-featured-projects-page .hg-fp-card[data-hg-ores3-open] .hg-fp-card__image{
  object-fit:cover !important;
  object-position:center 80% !important;
}
html body .hg-featured-projects-page #hg-oreslandet3-modal .hg-fp-modal__hero img{
  object-fit:cover !important;
  object-position:center 80% !important;
}


/* V531 — Buying guide CTA: same background as Economy + short rule under eyebrow. */
html body .hg-buying-page .hg-buying-cta{
  background:var(--buy-bg, #FBFAF6) !important;
  background-color:var(--buy-bg, #FBFAF6) !important;
}
html body .hg-buying-page .hg-buying-cta .hg-eyebrow{
  position:relative !important;
  display:inline-block !important;
  padding-bottom:15px !important;
  margin-bottom:11px !important;
}
html body .hg-buying-page .hg-buying-cta .hg-eyebrow::after{
  content:"" !important;
  position:absolute !important;
  left:0 !important;
  bottom:0 !important;
  width:48px !important;
  height:1px !important;
  background:#173452 !important;
  opacity:.62 !important;
}


/* V544 — News hero crop moved further down so more of the building shows and less sky is visible. */
html body .hg-news-page .hg-news-intro__media img{
  object-position:center 43% !important;
}
@media  (max-width:980px) and (min-width:701px){
  html body .hg-news-page .hg-news-intro__media img{object-position:center 44% !important;}
}
@media  (max-width:700px){
  html body .hg-news-page .hg-news-intro__media img{object-position:center 45% !important;}
}


/* V537 — Hem till salu: wider hero image + slim divider below header. */
@media  (min-width:901px){
  html body .hg-homes-sale-page .hg-sale-hero{
    grid-template-columns:29% 71% !important;
    border-top:1px solid rgba(32,35,31,.10) !important;
  }
  html body .hg-homes-sale-page .hg-sale-hero__copy{
    padding-left:clamp(42px,4.2vw,72px) !important;
    padding-right:24px !important;
  }
}

/* V543 — Contact hero: stronger left fade and image crop shifted right so no circular lamp shape shows at the transition. */
@media  (min-width:901px){
  html body .hg-contact-page .hg-contact-hero__visual{
    position:relative !important;
    overflow:hidden !important;
    background-position:62% center !important;
    background-size:cover !important;
    background-repeat:no-repeat !important;
  }

  html body .hg-contact-page .hg-contact-hero__visual::before{
    content:"" !important;
    display:block !important;
    position:absolute !important;
    z-index:2 !important;
    top:0 !important;
    bottom:0 !important;
    left:0 !important;
    width:340px !important;
    pointer-events:none !important;
    background:linear-gradient(
      90deg,
      #F7F4EF 0%,
      #F7F4EF 34%,
      rgba(247,244,239,.99) 44%,
      rgba(247,244,239,.95) 56%,
      rgba(247,244,239,.82) 70%,
      rgba(247,244,239,.58) 82%,
      rgba(247,244,239,.28) 92%,
      rgba(247,244,239,0) 100%
    ) !important;
  }

  html body .hg-contact-page .hg-contact-hero__visual::after{
    content:none !important;
    display:none !important;
  }
}


/* V545 — Process section refinements: less vertical white space, images 10% larger, arrows aligned to image centers. */
@media  (min-width:901px){
  html body .hg-loci-process{
    padding:28px 0 34px!important;
  }

  html body .hg-loci-process__step p{
    margin:0 0 12px!important;
  }

  html body .hg-loci-process__image{
    width:165px!important;
    height:165px!important;
  }

  html body .hg-loci-process__arrow{
    position:relative!important;
    top:56px!important;
    align-self:center!important;
  }
}


/* V546 — Homepage stat banner text/icons and hero slider controls changed from pure white to the same warm off-white used in the homepage header/intro background. */
html body .hg-home .hg-stat,
html body .hg-home-page .hg-stat{
  color:var(--hg-warm-white)!important;
}

html body .hg-home .hg-stat__icon,
html body .hg-home-page .hg-stat__icon,
html body .hg-home .hg-stat__icon svg,
html body .hg-home-page .hg-stat__icon svg,
html body .hg-home .hg-stat svg,
html body .hg-home-page .hg-stat svg,
html body .hg-home .hg-stat strong,
html body .hg-home-page .hg-stat strong,
html body .hg-home .hg-stat span,
html body .hg-home-page .hg-stat span,
html body .hg-home .hg-stat small,
html body .hg-home-page .hg-stat small,
html body .hg-home .hg-stat__text strong,
html body .hg-home-page .hg-stat__text strong,
html body .hg-home .hg-stat__text > span,
html body .hg-home-page .hg-stat__text > span{
  color:var(--hg-warm-white)!important;
  stroke:currentColor!important;
}

html body .hg-home .hg-hero.hg-hero--home .hg-hero__progress span,
html body .hg-home-page .hg-hero.hg-hero--home .hg-hero__progress span{
  background:rgba(251,250,246,.58)!important;
}

html body .hg-home .hg-hero.hg-hero--home .hg-hero__progress span.is-active,
html body .hg-home-page .hg-hero.hg-hero--home .hg-hero__progress span.is-active{
  background:var(--hg-warm-white)!important;
}

html body .hg-home .hg-hero.hg-hero--home .hg-hero__progress button::before,
html body .hg-home-page .hg-hero.hg-hero--home .hg-hero__progress button::before{
  background:rgba(251,250,246,.58)!important;
}

html body .hg-home .hg-hero.hg-hero--home .hg-hero__progress button:hover::before,
html body .hg-home-page .hg-hero.hg-hero--home .hg-hero__progress button:hover::before{
  background:rgba(251,250,246,.82)!important;
}

html body .hg-home .hg-hero.hg-hero--home .hg-hero__progress button.is-active::before,
html body .hg-home-page .hg-hero.hg-hero--home .hg-hero__progress button.is-active::before{
  background:var(--hg-warm-white)!important;
}


/* V547 — Presence section spacing tune. */
@media  (min-width:901px){
  html body .hg-presence__copy > p:not(.hg-eyebrow):not(.hg-presence__quote){
    margin-bottom:18px !important;
  }

  html body .hg-presence__principles{
    margin-top:18px !important;
  }

  html body .hg-presence__principles > div{
    padding-top:34px !important;
    padding-bottom:34px !important;
  }

  html body .hg-presence__quote{
    margin-top:28px !important;
  }
}


/* V548 — Homepage tinted backgrounds switched to the lighter grey tone from the Rentals page side panel (#f7f4f0). */
html body .hg-home,
html body .hg-home-page{
  --hg-warm-white:#f7f4f0 !important;
  --hg-stone:#f7f4f0 !important;
}

html body .hg-home,
html body .hg-home-page,
html body .hg-home .hg-intro,
html body .hg-home-page .hg-intro,
html body .hg-home .hg-current,
html body .hg-home-page .hg-current,
html body .hg-home .hg-values,
html body .hg-home-page .hg-values,
html body .hg-home .hg-awards,
html body .hg-home-page .hg-awards,
html body .hg-home .hg-presence,
html body .hg-home-page .hg-presence,
html body .hg-header.hg-header--home,
html body .hg-header.hg-header--home.is-scrolled,
html body .hg-home .hg-header,
html body .hg-home .hg-header.is-scrolled,
html body .hg-home-page .hg-header,
html body .hg-home-page .hg-header.is-scrolled{
  background:#f7f4f0 !important;
}

html body .hg-home .hg-hero.hg-hero--home .hg-hero__progress span,
html body .hg-home-page .hg-hero.hg-hero--home .hg-hero__progress span,
html body .hg-home .hg-hero.hg-hero--home .hg-hero__progress button::before,
html body .hg-home-page .hg-hero.hg-hero--home .hg-hero__progress button::before{
  background:rgba(247,244,240,.58) !important;
}

html body .hg-home .hg-hero.hg-hero--home .hg-hero__progress span.is-active,
html body .hg-home-page .hg-hero.hg-hero--home .hg-hero__progress span.is-active,
html body .hg-home .hg-hero.hg-hero--home .hg-hero__progress button.is-active::before,
html body .hg-home-page .hg-hero.hg-hero--home .hg-hero__progress button.is-active::before{
  background:#f7f4f0 !important;
}


/* V549 — Set “Passion för perfektion” and “Hem över hela Sverige” sections back to pure white on the homepage. */
html body .hg-home .hg-values,
html body .hg-home-page .hg-values,
html body .hg-home .hg-presence,
html body .hg-home-page .hg-presence{
  background:#ffffff !important;
}


/* V550 — Homepage green stats banner text/icons toned down from near-white to a warmer beige-grey. */
html body .hg-home .hg-stat,
html body .hg-home-page .hg-stat,
html body .hg-home .hg-stat__icon,
html body .hg-home-page .hg-stat__icon,
html body .hg-home .hg-stat__icon svg,
html body .hg-home-page .hg-stat__icon svg,
html body .hg-home .hg-stat svg,
html body .hg-home-page .hg-stat svg,
html body .hg-home .hg-stat strong,
html body .hg-home-page .hg-stat strong,
html body .hg-home .hg-stat span,
html body .hg-home-page .hg-stat span,
html body .hg-home .hg-stat small,
html body .hg-home-page .hg-stat small,
html body .hg-home .hg-stat__text strong,
html body .hg-home-page .hg-stat__text strong,
html body .hg-home .hg-stat__text > span,
html body .hg-home-page .hg-stat__text > span{
  color:#eeeae1 !important;
  stroke:currentColor !important;
}


/* V551 — Rentals hero left text edge aligned with the ownership section below. */
@media  (min-width:901px){
  html body .hg-rentals-page .hg-rentals-hero__panel{
    justify-content:flex-start !important;
  }

  html body .hg-rentals-page .hg-rentals-hero__panel-inner{
    max-width:360px !important;
    width:360px !important;
    margin:0 !important;
    padding-left:max(56px, calc((100vw - 1320px) / 2)) !important;
    padding-right:24px !important;
  }
}


/* V551 — Rentals split hero left text aligned with the ownership text block below. */
@media  (min-width:1101px){
  html body .hg-rentals-hero__panel{
    justify-content:flex-start !important;
  }

  html body .hg-rentals-hero__panel-inner{
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 34px 0 60px !important;
    box-sizing:border-box !important;
  }
}


/* V552 — About page: switch the hero and history section backgrounds to the light grey Rentals tone, remove the history note, and trim the extra bottom padding. */
html body .hg-about .hg-about-hero,
html body .hg-about-page .hg-about-hero{
  background:#f7f4f0 !important;
}


html body .hg-about .hg-about-history,
html body .hg-about-page .hg-about-history{
  background:#f7f4f0 !important;
  padding:44px 0 18px !important;
}

html body .hg-about .hg-about-history__note,
html body .hg-about-page .hg-about-history__note{
  display:none !important;
}


/* V553 — Contact hero restored closer to the earlier state: no pushed crop, only a modest linear fade so the lamp circle does not grow into the image. */
@media  (min-width:901px){
  html body .hg-contact-page .hg-contact-hero__visual{
    position:relative !important;
    overflow:hidden !important;
    background-position:center center !important;
    background-size:cover !important;
    background-repeat:no-repeat !important;
  }

  html body .hg-contact-page .hg-contact-hero__visual::before{
    content:"" !important;
    display:block !important;
    position:absolute !important;
    z-index:2 !important;
    top:0 !important;
    bottom:0 !important;
    left:0 !important;
    width:210px !important;
    pointer-events:none !important;
    background:linear-gradient(
      90deg,
      #F7F4EF 0%,
      rgba(247,244,239,.98) 12%,
      rgba(247,244,239,.90) 28%,
      rgba(247,244,239,.70) 46%,
      rgba(247,244,239,.46) 64%,
      rgba(247,244,239,.22) 80%,
      rgba(247,244,239,.07) 92%,
      rgba(247,244,239,0) 100%
    ) !important;
  }

  html body .hg-contact-page .hg-contact-hero__visual::after{
    content:none !important;
    display:none !important;
  }
}


/* V554 — Referensprojekt hero: move the visible crop further down while keeping it fully left. */
html body .hg-featured-projects-page .hg-fp-hero__media img{
  object-position:0% 78% !important;
}


/* V555 — Lida Trädgårdsstad: move the visible crop further left across the main card placements. */
html body .hg-current .hg-project-card[href*="lida-tradgardsstad"] .hg-project-card__image,
html body .hg-project-grid .hg-project-card[href*="lida-tradgardsstad"] .hg-project-card__image{
  background-position:0% 45% !important;
}

html body .hg-homes-sale-page #lida-tradgardsstad-bostader .hg-sale-card__image img,
html body .hg-homes-sale-page #lida-tradgardsstad-samhall .hg-sale-card__image img{
  object-position:2% 46% !important;
}

html body .hg-homes-sale-page #hg-sale-modal-lida-tradgardsstad-bostader .hg-sale-modal__gallery img,
html body .hg-homes-sale-page #hg-sale-modal-lida-tradgardsstad-samhall .hg-sale-modal__gallery img{
  object-position:2% 46% !important;
}

@media  (max-width:760px){
  html body .hg-current .hg-project-card[href*="lida-tradgardsstad"] .hg-project-card__image,
  html body .hg-project-grid .hg-project-card[href*="lida-tradgardsstad"] .hg-project-card__image{
    background-position:0% 46% !important;
  }

  html body .hg-homes-sale-page #lida-tradgardsstad-bostader .hg-sale-card__image img,
  html body .hg-homes-sale-page #lida-tradgardsstad-samhall .hg-sale-card__image img,
  html body .hg-homes-sale-page #hg-sale-modal-lida-tradgardsstad-bostader .hg-sale-modal__gallery img,
  html body .hg-homes-sale-page #hg-sale-modal-lida-tradgardsstad-samhall .hg-sale-modal__gallery img{
    object-position:1% 47% !important;
  }
}


/* V557 — Contact hero fully restored to the original approved state: no fade overlay and no crop shift. */
@media  (min-width:901px){
  html body .hg-contact-page .hg-contact-hero__visual{
    position:static !important;
    overflow:visible !important;
    background-position:center center !important;
    background-size:cover !important;
    background-repeat:no-repeat !important;
  }

  html body .hg-contact-page .hg-contact-hero__visual::before,
  html body .hg-contact-page .hg-contact-hero__visual::after{
    content:none !important;
    display:none !important;
  }
}


/* V558 — Homepage “Aktuellt just nu / Nya hem.” section back to pure white. */
html body .hg-home .hg-current,
html body .hg-home-page .hg-current,
html body .hg-current{
  background:#ffffff !important;
}


/* V560 — Lida Trädgårdsstad: shift the visible image crop much further to the left. */
html body .hg-current .hg-project-card[href*="lida-tradgardsstad"] .hg-project-card__image,
html body .hg-project-grid .hg-project-card[href*="lida-tradgardsstad"] .hg-project-card__image{
  background-position:-24% 45% !important;
}

html body .hg-homes-sale-page #lida-tradgardsstad-bostader .hg-sale-card__image img,
html body .hg-homes-sale-page #lida-tradgardsstad-samhall .hg-sale-card__image img,
html body .hg-homes-sale-page #lida-tradgardsstad-bostader.hg-sale-card:hover .hg-sale-card__image img,
html body .hg-homes-sale-page #lida-tradgardsstad-bostader.hg-sale-card:focus-visible .hg-sale-card__image img,
html body .hg-homes-sale-page #lida-tradgardsstad-samhall.hg-sale-card:hover .hg-sale-card__image img,
html body .hg-homes-sale-page #lida-tradgardsstad-samhall.hg-sale-card:focus-visible .hg-sale-card__image img,
html body .hg-homes-sale-page #hg-sale-modal-lida-tradgardsstad-bostader .hg-sale-modal__gallery img,
html body .hg-homes-sale-page #hg-sale-modal-lida-tradgardsstad-samhall .hg-sale-modal__gallery img{
  object-position:-22% 46% !important;
}

@media  (max-width:760px){
  html body .hg-current .hg-project-card[href*="lida-tradgardsstad"] .hg-project-card__image,
  html body .hg-project-grid .hg-project-card[href*="lida-tradgardsstad"] .hg-project-card__image{
    background-position:-28% 46% !important;
  }

  html body .hg-homes-sale-page #lida-tradgardsstad-bostader .hg-sale-card__image img,
  html body .hg-homes-sale-page #lida-tradgardsstad-samhall .hg-sale-card__image img,
  html body .hg-homes-sale-page #lida-tradgardsstad-bostader.hg-sale-card:hover .hg-sale-card__image img,
  html body .hg-homes-sale-page #lida-tradgardsstad-bostader.hg-sale-card:focus-visible .hg-sale-card__image img,
  html body .hg-homes-sale-page #lida-tradgardsstad-samhall.hg-sale-card:hover .hg-sale-card__image img,
  html body .hg-homes-sale-page #lida-tradgardsstad-samhall.hg-sale-card:focus-visible .hg-sale-card__image img,
  html body .hg-homes-sale-page #hg-sale-modal-lida-tradgardsstad-bostader .hg-sale-modal__gallery img,
  html body .hg-homes-sale-page #hg-sale-modal-lida-tradgardsstad-samhall .hg-sale-modal__gallery img{
    object-position:-26% 47% !important;
  }
}


/* V561 — Lida Trädgårdsstad homepage/current card: reduce the excessive zoom while keeping the crop biased left. */
html body .hg-current .hg-project-card[href*="lida-tradgardsstad"] .hg-project-card__image,
html body .hg-project-grid .hg-project-card[href*="lida-tradgardsstad"] .hg-project-card__image{
  background-size:122% auto !important;
  background-position:-18% 46% !important;
}

@media  (max-width:760px){
  html body .hg-current .hg-project-card[href*="lida-tradgardsstad"] .hg-project-card__image,
  html body .hg-project-grid .hg-project-card[href*="lida-tradgardsstad"] .hg-project-card__image{
    background-size:132% auto !important;
    background-position:-20% 47% !important;
  }
}


/* V563 — News hero: shift the visible crop slightly further down. */
html body .hg-news-page .hg-news-intro__media img{
  object-position:center 46% !important;
}

@media  (max-width:1024px){
  html body .hg-news-page .hg-news-intro__media img{
    object-position:center 47% !important;
  }
}

@media  (max-width:760px){
  html body .hg-news-page .hg-news-intro__media img{
    object-position:center 48% !important;
  }
}


/* V564 — About hero made about 20% taller. */
@media  (min-width:821px){
  html body .hg-about-hero,
  html body .hg-about-page .hg-about-hero{
    min-height:360px !important;
  }

  html body .hg-about-hero__copy,
  html body .hg-about-page .hg-about-hero__copy{
    min-height:360px !important;
  }

  html body .hg-about-hero__image,
  html body .hg-about-page .hg-about-hero__image{
    min-height:360px !important;
  }
}

@media  (max-width:820px){
  html body .hg-about-hero__copy,
  html body .hg-about-page .hg-about-hero__copy{
    padding:46px 28px !important;
  }

  html body .hg-about-hero__image,
  html body .hg-about-page .hg-about-hero__image{
    min-height:340px !important;
  }
}


/* V565 — Hyresbostäder hero made about 15% shorter, with the image crop reduced evenly from top and bottom by keeping it vertically centered. */
@media  (min-width:901px){
  html body .hg-rentals-page .hg-rentals-hero.hg-rentals-hero--split{
    min-height:425px !important;
  }

  html body .hg-rentals-page .hg-rentals-hero__panel,
  html body .hg-rentals-page .hg-rentals-hero__picture{
    min-height:425px !important;
  }

  html body .hg-rentals-page .hg-rentals-hero__picture img{
    height:425px !important;
    object-position:center center !important;
  }
}


/* V566 — Buying guide CTA: center the button vertically and match the exact hero-panel background color. */
html body .hg-buying-page .hg-buying-cta{
  background:#f7f4ee !important;
  background-color:#f7f4ee !important;
}

@media  (min-width:781px){
  html body .hg-buying-page .hg-buying-cta__inner{
    align-items:center !important;
  }

  html body .hg-buying-page .hg-buying-cta__button{
    align-self:center !important;
  }
}


/* V567 — Homepage hero: tiny height increase (~4px). */
@media  (min-width:901px){
  html body.admin-bar .hg-hero.hg-hero--home[data-hg-hero]{
    --hg-home-hero-height:clamp(764px,calc(100svh - 56px),984px)!important;
  }
  html body:not(.admin-bar) .hg-hero.hg-hero--home[data-hg-hero]{
    --hg-home-hero-height:clamp(764px,calc(100svh - 24px),984px)!important;
  }
}


/* V568 — Nästa plats CTA: remove the gap between “Kontakta oss” and the arrow. */
html body .hg-land__link{
  width:fit-content !important;
  max-width:none !important;
  justify-content:flex-start !important;
  gap:0 !important;
}

html body .hg-land__link span:last-child{
  margin-left:0 !important;
  padding-left:0 !important;
}


/* V569 — Bostäder hero made about 20% taller. */
@media  (min-width:901px){
  html body .hg-homes-sale-page .hg-sale-hero,
  html body .hg-homes-sale-page .hg-sale-hero__copy,
  html body .hg-homes-sale-page .hg-sale-hero__media{
    height:576px !important;
    min-height:576px !important;
    max-height:576px !important;
  }
}


/* V570 — Hem till salu: Lida Trädgårdsstad card crop shifted clearly further left in the source image. */
html body .hg-homes-sale-page #lida-tradgardsstad-bostader .hg-sale-card__image{
  overflow:hidden !important;
}

html body .hg-homes-sale-page #lida-tradgardsstad-bostader .hg-sale-card__image img{
  object-position:left center !important;
  transform:translateX(14%) scale(2.18) !important;
  transform-origin:center center !important;
}

html body .hg-homes-sale-page #lida-tradgardsstad-bostader.hg-sale-card:hover .hg-sale-card__image img,
html body .hg-homes-sale-page #lida-tradgardsstad-bostader.hg-sale-card:focus-visible .hg-sale-card__image img{
  transform:translateX(14%) scale(2.22) !important;
}

@media  (max-width:760px){
  html body .hg-homes-sale-page #lida-tradgardsstad-bostader .hg-sale-card__image img{
    transform:translateX(16%) scale(1.86) !important;
  }

  html body .hg-homes-sale-page #lida-tradgardsstad-bostader.hg-sale-card:hover .hg-sale-card__image img,
  html body .hg-homes-sale-page #lida-tradgardsstad-bostader.hg-sale-card:focus-visible .hg-sale-card__image img{
    transform:translateX(16%) scale(1.90) !important;
  }
}


/* V571 — Referensprojekt hero: make the image/hero about 15% taller and move the crop slightly lower to reduce visible sky. */
@media  (min-width:901px){
  html body .hg-featured-projects-page .hg-fp-hero,
  html body .hg-featured-projects-page .hg-fp-hero__inner{
    min-height:575px !important;
  }

  html body .hg-featured-projects-page .hg-fp-hero__media img{
    object-position:0% 84% !important;
  }
}


/* V572 — Hyresbostäder hero image: make it just a tiny bit taller. */
@media  (min-width:901px){
  html body .hg-rentals-page .hg-rentals-hero.hg-rentals-hero--split,
  html body .hg-rentals-page .hg-rentals-hero__panel,
  html body .hg-rentals-page .hg-rentals-hero__picture{
    min-height:432px !important;
  }

  html body .hg-rentals-page .hg-rentals-hero__picture img{
    height:432px !important;
  }
}


/* V573 — Lida Trädgårdsstad on Hem till salu: zoom in a little more on the shown crop. */
html body .hg-homes-sale-page #lida-tradgardsstad-bostader .hg-sale-card__image img{
  object-position:left center !important;
  transform:translateX(14%) scale(2.28) !important;
  transform-origin:center center !important;
}

html body .hg-homes-sale-page #lida-tradgardsstad-bostader.hg-sale-card:hover .hg-sale-card__image img,
html body .hg-homes-sale-page #lida-tradgardsstad-bostader.hg-sale-card:focus-visible .hg-sale-card__image img{
  transform:translateX(14%) scale(2.32) !important;
}

@media  (max-width:760px){
  html body .hg-homes-sale-page #lida-tradgardsstad-bostader .hg-sale-card__image img{
    transform:translateX(16%) scale(1.94) !important;
  }

  html body .hg-homes-sale-page #lida-tradgardsstad-bostader.hg-sale-card:hover .hg-sale-card__image img,
  html body .hg-homes-sale-page #lida-tradgardsstad-bostader.hg-sale-card:focus-visible .hg-sale-card__image img{
    transform:translateX(16%) scale(1.98) !important;
  }
}


/* V574 — Homepage current-project intro: place “Se alla projekt” to the right under the text with a refined underline. */
@media  (min-width:981px){
  html body .hg-current__heading > div:last-child{
    display:flex !important;
    flex-direction:column !important;
    align-items:flex-end !important;
  }

  html body .hg-current__heading > div:last-child .hg-text-link{
    width:190px !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:14px !important;
    margin:0 !important;
    padding:0 0 9px !important;
    border-bottom:1px solid rgba(23,52,82,.72) !important;
    text-decoration:none !important;
  }
}


/* V576 — Slightly more letter spacing for “Passion för perfektion.” so it feels less compressed. */
html body .hg-values .hg-section-heading h2{
  letter-spacing:0.005em !important;
}


/* V578 — Homepage hero: revert the too-tall V567 change and keep it only about 2% taller than before. */
@media  (min-width:901px){
  html body:not(.admin-bar) .hg-hero.hg-hero--home[data-hg-hero]{
    --hg-home-hero-height:calc((100svh - 207px) * 1.02) !important;
    height:var(--hg-home-hero-height) !important;
    min-height:var(--hg-home-hero-height) !important;
    max-height:var(--hg-home-hero-height) !important;
  }

  html body.admin-bar .hg-hero.hg-hero--home[data-hg-hero]{
    --hg-home-hero-height:calc((100svh - 239px) * 1.02) !important;
    height:var(--hg-home-hero-height) !important;
    min-height:var(--hg-home-hero-height) !important;
    max-height:var(--hg-home-hero-height) !important;
  }
}


/* V579 — Nästa plats CTA: bring back a little spacing between the label and arrow. */
html body .hg-land__link{
  gap:8px !important;
}

html body .hg-land__link span:last-child{
  margin-left:0 !important;
  padding-left:0 !important;
}


/* V580 — Lida Trädgårdsstad on Hem till salu: push the visible crop all the way to the left. */
html body .hg-homes-sale-page #lida-tradgardsstad-bostader .hg-sale-card__image img{
  object-position:left center !important;
  transform:translateX(28%) scale(2.28) !important;
  transform-origin:center center !important;
}

html body .hg-homes-sale-page #lida-tradgardsstad-bostader.hg-sale-card:hover .hg-sale-card__image img,
html body .hg-homes-sale-page #lida-tradgardsstad-bostader.hg-sale-card:focus-visible .hg-sale-card__image img{
  transform:translateX(28%) scale(2.32) !important;
}

@media  (max-width:760px){
  html body .hg-homes-sale-page #lida-tradgardsstad-bostader .hg-sale-card__image img{
    transform:translateX(30%) scale(1.94) !important;
  }

  html body .hg-homes-sale-page #lida-tradgardsstad-bostader.hg-sale-card:hover .hg-sale-card__image img,
  html body .hg-homes-sale-page #lida-tradgardsstad-bostader.hg-sale-card:focus-visible .hg-sale-card__image img{
    transform:translateX(30%) scale(1.98) !important;
  }
}


/* V581 — Hyresbostäder hero: make it about 5% shorter, with the reduction coming from the upper part of the image. */
@media  (min-width:901px){
  html body .hg-rentals-page .hg-rentals-hero.hg-rentals-hero--split,
  html body .hg-rentals-page .hg-rentals-hero__panel,
  html body .hg-rentals-page .hg-rentals-hero__picture{
    min-height:410px !important;
  }

  html body .hg-rentals-page .hg-rentals-hero__picture img{
    height:410px !important;
    object-position:center 58% !important;
  }
}


/* V582 — About stats: make all icons and text about 5% larger. */
@media  (min-width:1101px){
  html body .hg-about-fact__icon{
    width:29px !important;
    height:29px !important;
  }

  html body .hg-about-fact__icon svg{
    width:29px !important;
    height:29px !important;
    min-width:29px !important;
  }

  html body .hg-about-fact strong,
  html body .hg-about-fact:last-child strong{
    font-size:1.70rem !important;
  }

  html body .hg-about-fact:last-child strong{
    font-size:1.24rem !important;
  }

  html body .hg-about-fact small,
  html body .hg-about-fact:last-child small{
    font-size:.58rem !important;
  }
}


/* V584 — Nyheter hero: move the visible crop 5% lower. */
html body .hg-news-page .hg-news-intro__media img{
  object-position:center 51% !important;
}

@media  (max-width:1024px){
  html body .hg-news-page .hg-news-intro__media img{
    object-position:center 52% !important;
  }
}

@media  (max-width:760px){
  html body .hg-news-page .hg-news-intro__media img{
    object-position:center 53% !important;
  }
}


/* V585 — Hem till salu: Lida Trädgårdsstad zoomed in 15% more, with the left edge locked flush to the frame. */
html body .hg-homes-sale-page #lida-tradgardsstad-bostader .hg-sale-card__image img{
  object-position:left center !important;
  transform:translateX(0) scale(2.62) !important;
  transform-origin:left center !important;
}

html body .hg-homes-sale-page #lida-tradgardsstad-bostader.hg-sale-card:hover .hg-sale-card__image img,
html body .hg-homes-sale-page #lida-tradgardsstad-bostader.hg-sale-card:focus-visible .hg-sale-card__image img{
  transform:translateX(0) scale(2.66) !important;
}

@media  (max-width:760px){
  html body .hg-homes-sale-page #lida-tradgardsstad-bostader .hg-sale-card__image img{
    transform:translateX(0) scale(2.23) !important;
  }

  html body .hg-homes-sale-page #lida-tradgardsstad-bostader.hg-sale-card:hover .hg-sale-card__image img,
  html body .hg-homes-sale-page #lida-tradgardsstad-bostader.hg-sale-card:focus-visible .hg-sale-card__image img{
    transform:translateX(0) scale(2.27) !important;
  }
}


/* V586 — Reduce the white gap between Skandinavisk kvalitet and Platsens själ – Genius Loci. */
html body .hg-quality{
  padding-bottom:14px !important;
}

html body .hg-loci-factors{
  padding-top:12px !important;
}

html body .hg-loci-factors__heading{
  margin-bottom:22px !important;
}

@media  (max-width:760px){
  html body .hg-quality{
    padding-bottom:16px !important;
  }

  html body .hg-loci-factors{
    padding-top:14px !important;
  }
}


/* V587 — Reduce the white gap between Passion för perfektion and Skandinavisk kvalitet. */
html body .hg-values{
  padding-bottom:8px !important;
}

html body .hg-quality{
  padding-top:10px !important;
}

@media  (max-width:760px){
  html body .hg-values{
    padding-bottom:10px !important;
  }

  html body .hg-quality{
    padding-top:12px !important;
  }
}


/* V588 — Homepage hero: fix invalid V578 calc and restore the previous height + about 2%. */
@media  (min-width:901px){
  html body:not(.admin-bar) .hg-hero.hg-hero--home[data-hg-hero]{
    --hg-home-hero-height:calc(100svh - 193px) !important;
    height:var(--hg-home-hero-height) !important;
    min-height:var(--hg-home-hero-height) !important;
    max-height:var(--hg-home-hero-height) !important;
  }

  html body.admin-bar .hg-hero.hg-hero--home[data-hg-hero]{
    --hg-home-hero-height:calc(100svh - 226px) !important;
    height:var(--hg-home-hero-height) !important;
    min-height:var(--hg-home-hero-height) !important;
    max-height:var(--hg-home-hero-height) !important;
  }
}


/* V589 — Hyresbostäder hero: make the image about 2% taller than the current version. */
@media  (min-width:901px){
  html body .hg-rentals-page .hg-rentals-hero.hg-rentals-hero--split,
  html body .hg-rentals-page .hg-rentals-hero__panel,
  html body .hg-rentals-page .hg-rentals-hero__picture{
    min-height:418px !important;
  }

  html body .hg-rentals-page .hg-rentals-hero__picture img{
    height:418px !important;
    object-position:center 58% !important;
  }
}


/* V590 — About stats: make everything in this row another ~5% larger. */
@media  (min-width:1101px){
  html body .hg-about-fact__icon{
    width:31px !important;
    height:31px !important;
  }

  html body .hg-about-fact__icon svg{
    width:31px !important;
    height:31px !important;
    min-width:31px !important;
  }

  html body .hg-about-fact strong,
  html body .hg-about-fact:last-child strong{
    font-size:1.78rem !important;
    line-height:1.05 !important;
  }

  html body .hg-about-fact:last-child strong{
    font-size:1.30rem !important;
  }

  html body .hg-about-fact small,
  html body .hg-about-fact:last-child small{
    font-size:.61rem !important;
    line-height:1.15 !important;
  }
}


/* V592 — Reduce the white gap between Hem genom livet and Aktuellt just nu on the homepage. */
html body .hg-home .hg-lifestages,
html body .hg-home-page .hg-lifestages{
  padding-bottom:8px !important;
}

html body .hg-home .hg-current,
html body .hg-home-page .hg-current,
html body .hg-current{
  padding-top:18px !important;
}

@media  (max-width:760px){
  html body .hg-home .hg-lifestages,
  html body .hg-home-page .hg-lifestages{
    padding-bottom:10px !important;
  }

  html body .hg-home .hg-current,
  html body .hg-home-page .hg-current,
  html body .hg-current{
    padding-top:20px !important;
  }
}


/* V593 — Lida Trädgårdsstad homepage/current card: zoom in about 15% more and lock the crop flush to the left edge. */
html body .hg-current .hg-project-card[href*="lida-tradgardsstad"] .hg-project-card__image,
html body .hg-project-grid .hg-project-card[href*="lida-tradgardsstad"] .hg-project-card__image{
  background-size:140% auto !important;
  background-position:left 46% !important;
}

@media  (max-width:760px){
  html body .hg-current .hg-project-card[href*="lida-tradgardsstad"] .hg-project-card__image,
  html body .hg-project-grid .hg-project-card[href*="lida-tradgardsstad"] .hg-project-card__image{
    background-size:148% auto !important;
    background-position:left 47% !important;
  }
}


/* V594 — Slightly increase the gap between Skandinavisk kvalitet and Platsens själ so it matches the spacing above. */
html body .hg-quality{
  padding-bottom:24px !important;
}

html body .hg-loci-factors{
  padding-top:20px !important;
}

html body .hg-loci-factors__heading{
  margin-bottom:24px !important;
}

@media  (max-width:760px){
  html body .hg-quality{
    padding-bottom:22px !important;
  }

  html body .hg-loci-factors{
    padding-top:18px !important;
  }
}


/* V595 — Homepage hero: restore a clearly taller hero without returning to the oversized version. */
@media  (min-width:901px){
  html body:not(.admin-bar) .hg-hero.hg-hero--home[data-hg-hero]{
    --hg-home-hero-height:calc(100svh - 125px) !important;
    height:var(--hg-home-hero-height) !important;
    min-height:var(--hg-home-hero-height) !important;
    max-height:var(--hg-home-hero-height) !important;
  }

  html body.admin-bar .hg-hero.hg-hero--home[data-hg-hero]{
    --hg-home-hero-height:calc(100svh - 158px) !important;
    height:var(--hg-home-hero-height) !important;
    min-height:var(--hg-home-hero-height) !important;
    max-height:var(--hg-home-hero-height) !important;
  }
}

/* V596 — Lida card flush-left crop + more elegant project carousel arrows. */
html body .hg-current .hg-project-card[href*="lida-tradgardsstad"] .hg-project-card__image,
html body .hg-project-grid .hg-project-card[href*="lida-tradgardsstad"] .hg-project-card__image{
  background-size:155% auto !important;
  background-position:0% 46% !important;
  background-repeat:no-repeat !important;
}

@media  (max-width:760px){
  html body .hg-current .hg-project-card[href*="lida-tradgardsstad"] .hg-project-card__image,
  html body .hg-project-grid .hg-project-card[href*="lida-tradgardsstad"] .hg-project-card__image{
    background-size:162% auto !important;
    background-position:0% 47% !important;
  }
}

html body .hg-current .hg-project-arrow{
  width:38px !important;
  height:38px !important;
  border:1px solid rgba(23,52,82,.12) !important;
  background:rgba(255,255,255,.88) !important;
  box-shadow:0 4px 14px rgba(23,52,82,.06) !important;
  backdrop-filter:blur(6px) !important;
  -webkit-backdrop-filter:blur(6px) !important;
}

html body .hg-current .hg-project-arrow svg{
  width:16px !important;
  height:16px !important;
  stroke-width:1.35 !important;
}

html body .hg-current .hg-project-arrow--prev{left:-18px !important;}
html body .hg-current .hg-project-arrow--next{right:-18px !important;}

html body .hg-current .hg-project-arrow:not(:disabled):hover,
html body .hg-current .hg-project-arrow:not(:disabled):focus-visible{
  background:#fff !important;
  border-color:rgba(23,52,82,.24) !important;
  color:#173452 !important;
  box-shadow:0 8px 18px rgba(23,52,82,.10) !important;
  transform:translateY(-50%) scale(1.025) !important;
}

html body .hg-current .hg-project-arrow:disabled{
  opacity:.18 !important;
}

@media  (max-width:760px){
  html body .hg-current .hg-project-arrow{
    width:36px !important;
    height:36px !important;
    top:40% !important;
  }
  html body .hg-current .hg-project-arrow--prev{left:6px !important;}
  html body .hg-current .hg-project-arrow--next{right:6px !important;}
}

/* V597 — Reduce the vertical gap between the process row and “Hem över hela Sverige” on the homepage. */
@media  (min-width:901px){
  html body .hg-home .hg-loci-process,
  html body .hg-home-page .hg-loci-process{
    padding-bottom:12px !important;
  }

  html body .hg-home .hg-presence,
  html body .hg-home-page .hg-presence{
    padding-top:18px !important;
  }
}

@media  (max-width:900px){
  html body .hg-home .hg-loci-process,
  html body .hg-home-page .hg-loci-process{
    padding-bottom:10px !important;
  }

  html body .hg-home .hg-presence,
  html body .hg-home-page .hg-presence{
    padding-top:18px !important;
  }
}

/* V630 — Vår filosofi: zoom in ~5% on the visible image while keeping the lower part anchored.
   This shows a bit less sky and side area, while preserving the bottom framing. */
@media  (min-width:901px){
  html body .hg-loci-intro__image{
    background-size:109% auto!important;
    background-position:center bottom!important;
  }
}

/* V631 — Replace the “Genomtänkt in i minsta detalj” quality image while preserving its existing size/layout. */
html body .hg-quality__image--materials{
  background-image:url("https://hemgarden.se/wp-content/uploads/2026/10/bd5c0efbdc8475d99d60417f3c77f9d7.jpg")!important;
  background-position:center center!important;
  background-size:cover!important;
}

/* V668 — Hyresbostäder hero: move the visible portion of the image ~1% lower. */
html body .hg-rentals-page .hg-rentals-hero__picture img{
  object-position:center 51% !important;
}

/* V678 — Rental properties / Homes to thrive in (EN only): make the hero image about 1% taller so it matches the Swedish page more closely. */
@media  (min-width:901px){
  html body .hg-rentals-page.hg-rentals-page--en .hg-rentals-hero.hg-rentals-hero--split,
  html body .hg-rentals-page.hg-rentals-page--en .hg-rentals-hero__panel,
  html body .hg-rentals-page.hg-rentals-page--en .hg-rentals-hero__picture{
    min-height:422px !important;
  }

  html body .hg-rentals-page.hg-rentals-page--en .hg-rentals-hero__picture img{
    height:422px !important;
  }
}


/* Mobile-only layout adjustments — desktop version locked, 2026-10-16 */
.hg-mobile-menu-toggle{display:none!important;}
@media  screen and (max-width:767px){
  html,body{max-width:100%;overflow-x:clip;}
  /* Compact header and a dedicated mobile navigation panel */
  html body .hg-header[data-hg-header]{width:100%!important;left:0!important;right:0!important;box-sizing:border-box!important;z-index:9999!important;}
  html body .hg-header[data-hg-header] .hg-header__inner{width:calc(100% - 36px)!important;max-width:100%!important;min-height:84px!important;height:auto!important;display:flex!important;justify-content:space-between!important;align-items:center!important;gap:12px!important;position:relative!important;}
  
  html body .hg-header[data-hg-header] .hg-mobile-menu-toggle{display:flex!important;position:relative!important;z-index:10002!important;flex-direction:column!important;justify-content:center!important;align-items:center!important;gap:5px!important;width:46px!important;height:44px!important;padding:8px!important;border:0!important;background:transparent!important;color:#173452!important;cursor:pointer!important;}
  .hg-mobile-menu-toggle span{display:block!important;width:25px!important;height:2px!important;background:#173452!important;border-radius:2px!important;}
  html body .hg-header[data-hg-header] .hg-header__nav{display:none!important;position:absolute!important;top:100%!important;left:-18px!important;right:-18px!important;width:auto!important;max-width:none!important;background:#F7F4F0!important;box-shadow:0 12px 26px rgba(23,52,82,.15)!important;padding:16px 22px 24px!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;height:auto!important;z-index:10001!important;overflow-y:auto!important;max-height:calc(100dvh - 105px)!important;}
  html body .hg-header.hg-mobile-menu-open .hg-header__nav{display:flex!important;}
  html body .hg-header[data-hg-header] .hg-header__nav>a,html body .hg-header[data-hg-header] .hg-header__nav>.hg-menu-item{display:flex!important;position:relative!important;flex:0 0 auto!important;margin:0!important;padding:0!important;width:100%!important;}
  html body .hg-header[data-hg-header] .hg-header__nav>a,html body .hg-header[data-hg-header] .hg-header__nav>.hg-menu-item>a{display:block!important;position:relative!important;padding:13px 0!important;color:#173452!important;font-size:14px!important;text-decoration:none!important;}
  html body .hg-header[data-hg-header] .hg-header__nav .hg-menu-item--has-children{display:block!important;}
  html body .hg-header[data-hg-header] .hg-dropdown{position:static!important;visibility:visible!important;opacity:1!important;transform:none!important;display:block!important;width:100%!important;box-shadow:none!important;border:0!important;background:transparent!important;padding:0 0 8px 12px!important;}
  html body .hg-header[data-hg-header] .hg-dropdown a{padding:8px!important;color:#173452!important;}
  html body .hg-header[data-hg-header] .hg-header__language{display:flex!important;align-items:center!important;gap:5px!important;padding:16px 0 4px!important;color:#173452!important;}
  html body .hg-header[data-hg-header] .hg-header__language a{display:inline!important;color:#173452!important;font-size:14px!important;}
  /* Homepage hero: image first, legible copy below, no overflow */
  html body .hg-hero.hg-hero--home[data-hg-hero]{display:flex!important;flex-direction:column!important;align-items:stretch!important;position:relative!important;width:100%!important;max-width:100%!important;height:auto!important;min-height:0!important;overflow:hidden!important;margin:0!important;padding:0!important;background:#F7F4F0!important;}
  html body .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__media{position:relative!important;inset:auto!important;left:auto!important;right:auto!important;top:auto!important;width:100%!important;height:255px!important;min-height:255px!important;z-index:1!important;overflow:hidden!important;order:0!important;}
  html body .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__slide{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;transform:none!important;background-size:cover!important;}
  html body .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__image{display:block!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center center!important;transform:none!important;}
  html body .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__shade,html body .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__fade{display:none!important;}
  html body .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__inner{position:relative!important;inset:auto!important;display:block!important;order:1!important;width:100%!important;max-width:100%!important;height:auto!important;min-height:0!important;margin:0!important;padding:28px 20px 48px!important;box-sizing:border-box!important;background:#F7F4F0!important;color:#1F241F!important;z-index:2!important;}
  html body .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__content,html body .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__copy{position:static!important;inset:auto!important;top:auto!important;left:auto!important;display:block!important;width:100%!important;max-width:100%!important;min-height:0!important;height:auto!important;margin:0!important;padding:0!important;transform:none!important;background:transparent!important;box-shadow:none!important;overflow:visible!important;}
  html body .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__kicker{color:#173452!important;font-size:12px!important;margin:0 0 12px!important;}
  html body .hg-hero.hg-hero--home[data-hg-hero] #hg-hero-title{font-size:clamp(42px,10vw,62px)!important;line-height:1.02!important;max-width:100%!important;margin:0 0 18px!important;}
  html body .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__lead{max-width:100%!important;margin:0 0 22px!important;color:#5c625f!important;font-size:16px!important;line-height:1.55!important;text-align:justify!important;hyphens:auto;}
  html body .hg-hero.hg-hero--home[data-hg-hero] .hg-button{display:inline-flex!important;width:auto!important;max-width:100%!important;background:#173452!important;color:white!important;border:1px solid #173452!important;padding:15px 20px!important;text-align:center!important;}
  html body .hg-hero.hg-hero--home[data-hg-hero] .hg-button span{color:white!important;}
  html body .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__progress{position:absolute!important;z-index:3!important;top:217px!important;bottom:auto!important;left:20px!important;right:auto!important;}
  html body .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__progress button{color:white!important;}
  html body .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__caption{display:none!important;}
  /* Statistics: readable dark-blue figures and labels */
  html body .hg-home .hg-stats,html body .hg-home-page .hg-stats{background:#E7EEF8!important;}
  html body .hg-home .hg-stats__grid,html body .hg-home-page .hg-stats__grid{width:100%!important;max-width:100%!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  html body .hg-home .hg-stat strong,html body .hg-home-page .hg-stat strong{color:#173452!important;opacity:1!important;}
  html body .hg-home .hg-stat span,html body .hg-home-page .hg-stat span{color:#173452!important;opacity:1!important;}
  /* Awards: stack heading and cards at full viewport width */
  html body .hg-awards{overflow:hidden!important;}
  html body .hg-home .hg-awards>.hg-shell,html body .hg-home-page .hg-awards>.hg-shell,html body .hg-awards>.hg-shell{display:flex!important;flex-direction:column!important;align-items:stretch!important;width:calc(100% - 40px)!important;max-width:100%!important;gap:24px!important;margin-inline:auto!important;}
  html body .hg-awards .hg-section-heading{position:static!important;display:block!important;width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;}
  html body .hg-awards .hg-section-heading h2{font-size:clamp(34px,10vw,49px)!important;}
  html body .hg-home .hg-awards__grid,html body .hg-home-page .hg-awards__grid,html body .hg-awards__grid{position:static!important;display:grid!important;grid-template-columns:1fr!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:0!important;gap:0!important;}
  html body .hg-awards .hg-award,html body .hg-awards .hg-award:first-child,html body .hg-awards .hg-award+.hg-award{position:static!important;width:100%!important;min-width:0!important;max-width:100%!important;height:auto!important;min-height:0!important;display:block!important;padding:20px 0!important;margin:0!important;border:0!important;border-top:1px solid rgba(23,52,82,.16)!important;box-sizing:border-box!important;text-align:left!important;}
  html body .hg-awards .hg-award__top{display:flex!important;justify-content:flex-start!important;gap:12px!important;}
  html body .hg-awards .hg-award *{max-width:100%!important;overflow-wrap:break-word!important;}
}


/* V6 – only mobile: correct the homepage statistics, life stages and News intro. */
@media  screen and (max-width:767px){
  /* News: safe horizontal inset before section title and introductory text. */
  html body .hg-news-page .hg-news-intro__copy,
  html body .hg-news-page .hg-news-intro__content,
  html body .hg-news-page .hg-news-intro__text{
    padding-left:20px!important;padding-right:20px!important;
    box-sizing:border-box!important;
  }
  html body .hg-news-page .hg-news-intro .hg-eyebrow,
  html body .hg-news-page .hg-news-intro h1,
  html body .hg-news-page .hg-news-intro__copy > p,
  html body .hg-news-page .hg-news-intro__content > p{
    padding-left:0!important;margin-left:0!important;
  }
  html body .hg-news-page .hg-news-intro__grid{
    box-sizing:border-box!important;
  }
  /* Life stages: grid contains alternating DIV cards and SPAN connector elements.
     Remove old side borders from every card, then draw only a divider between columns. */
  html body .hg-home .hg-lifestages .hg-life-timeline{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    width:100%!important;margin-inline:auto!important;gap:0!important;
  }
  html body .hg-home .hg-lifestages .hg-life-timeline__line{display:none!important;}
  html body .hg-home .hg-lifestages .hg-life-timeline > .hg-life-stage{
    width:100%!important;min-width:0!important;max-width:none!important;
    margin:0!important;padding:20px 6px!important;box-sizing:border-box!important;
    border:0!important;border-left:0!important;border-right:0!important;
    align-items:center!important;text-align:center!important;
  }
  html body .hg-home .hg-lifestages .hg-life-timeline > .hg-life-stage:nth-child(4n + 3){
    border-left:1px solid rgba(23,52,82,.20)!important;
  }
  html body .hg-home .hg-lifestages .hg-life-timeline > .hg-life-stage:nth-child(4n + 1){
    border-left:0!important;
  }
  /* Stats: override older inline pale-background/blue-type rules. */
  html body .hg-home .hg-stats,
  html body .hg-home .hg-stats .hg-stats__grid,
  html body .hg-home .hg-stats .hg-stat,
  html body .hg-home .hg-stats .hg-stat__text{
    background-color:#173452!important;
    background-image:none!important;
  }
  html body .hg-home .hg-stats .hg-stat strong,
  html body .hg-home .hg-stats .hg-stat span,
  html body .hg-home .hg-stats .hg-stat__text strong,
  html body .hg-home .hg-stats .hg-stat__text span{
    color:#F7F4EF!important;-webkit-text-fill-color:#F7F4EF!important;
    opacity:1!important;
  }
  html body .hg-home .hg-stats .hg-stat{
    border-color:rgba(247,244,239,.22)!important;
  }
}

@media  screen and (max-width:767px){
 html body .hg-news-page .hg-news-intro__copy-inner{width:100%!important;max-width:100%!important;margin:0!important;padding:0 20px!important;box-sizing:border-box!important;}
}


/* V734 — Annual reports: same pale blue About section, two stacked rows. */
html body .hg-about .hg-about-report__inner--stacked{
  display:block!important;
}
html body .hg-about .hg-about-report__inner--stacked .hg-about-report__copy{
  max-width:none;
  margin-bottom:24px;
}
html body .hg-about .hg-about-report__list{
  width:100%;
}
html body .hg-about .hg-about-report__item{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:26px;
  padding:20px 0;
  border-top:1px solid rgba(23,52,82,.18);
}
html body .hg-about .hg-about-report__item:last-child{
  border-bottom:1px solid rgba(23,52,82,.18);
}
html body .hg-about .hg-about-report__item-copy h3{
  margin:0 0 7px;
  font-family:var(--hg-serif);
  font-size:clamp(1.25rem,1.8vw,1.85rem);
  font-weight:400;
  line-height:1.18;
  color:var(--about-deep);
}
html body .hg-about .hg-about-report__item-copy p{
  margin:0;
  font-size:.9rem;
  color:#58636f;
}
html body .hg-about .hg-about-report__item .hg-about-report__link{
  flex-shrink:0;
  white-space:nowrap;
}
html body .hg-about .hg-about-report__link--pending{
  opacity:.47;
  cursor:default;
}
@media (max-width:650px){
  html body .hg-about .hg-about-report__item{align-items:flex-start;flex-direction:column;gap:8px;padding:18px 0;}
  html body .hg-about .hg-about-report__inner--stacked .hg-about-report__copy{margin-bottom:20px;}
}

/* V739 — Restore the original About header geometry (96px, then 68px).
   Avoid the double white gap: header stays in document flow, main has no offset. */
html body .hg-about { overflow: visible !important; }
html body .hg-about > .hg-header.hg-header--about-static,
html body .hg-about > .hg-header.hg-header--about-static:not(.is-scrolled),
html body .hg-about > .hg-header.hg-header--about-static.is-scrolled {
  position: sticky !important;
  top: 0 !important;
  left: auto !important;
  right: auto !important;
  inset: auto !important;
  width: 100% !important;
  margin: 0 !important;
  transform: none !important;
  z-index: 10000 !important;
}
html body .hg-about > main { padding-top: 0 !important; margin-top: 0 !important; }
html body .hg-about > main > .hg-about-hero { margin-top: 0 !important; }
html body.admin-bar .hg-about > .hg-header.hg-header--about-static {top:32px!important;}
@media (max-width:782px){html body.admin-bar .hg-about > .hg-header.hg-header--about-static{top:46px!important;}}
/* Keep tighter annual-report section, without touching the header. */
html body .hg-about .hg-about-report{padding-top:24px!important;padding-bottom:22px!important;}
html body .hg-about .hg-about-report__inner--stacked .hg-about-report__copy{margin-bottom:14px!important;}
html body .hg-about .hg-about-report__item{padding-top:13px!important;padding-bottom:13px!important;}
@media (max-width:650px){html body .hg-about .hg-about-report{padding-top:22px!important;padding-bottom:20px!important;}}

/* V742 — philosophy page shell, matching the About page design. */
.hg-philosophy .hg-philosophy-main{margin:0!important;padding:0!important;min-height:350px;background:#f7f4f1;}
.hg-philosophy .hg-philosophy-intro{padding:clamp(84px,10vw,140px) 0 clamp(96px,12vw,170px);}
.hg-philosophy .hg-philosophy-kicker{margin:0 0 22px;color:#173452;font-size:.76rem;font-weight:750;letter-spacing:.17em;text-transform:uppercase;}
.hg-philosophy .hg-philosophy-intro h1{margin:0;color:#222723;font-family:Georgia,"Times New Roman",serif;font-size:clamp(48px,5vw,80px);font-weight:400;letter-spacing:-.035em;line-height:1.05;}
.hg-philosophy .hg-philosophy-rule{margin-top:30px;width:65px;height:1px;background:#395a43;}
@media (max-width:767px){.hg-philosophy .hg-philosophy-intro{padding:75px 0 110px;}}

/* V743 — Preserve the homepage process spacing after moving the three unchanged sections to Our Philosophy. */
@media  (min-width:901px){html body .hg-philosophy .hg-loci-process{padding-bottom:12px!important;}}
@media  (max-width:900px){html body .hg-philosophy .hg-loci-process{padding-bottom:10px!important;}}

/* V744 — Philosophy page: match the original three homepage sections. */
.hg-philosophy .hg-philosophy-main { background:#fff !important; min-height:0 !important; }
.hg-philosophy .hg-philosophy-intro { padding:36px 0 20px !important; background:#fff !important; }
.hg-philosophy .hg-philosophy-intro h1 { font-size:clamp(38px,3.5vw,56px) !important; }
.hg-philosophy .hg-philosophy-rule { margin-top:18px !important; }
.hg-philosophy .hg-loci-intro { margin-top:0 !important; }
@media  (max-width:767px){ .hg-philosophy .hg-philosophy-intro { padding:24px 0 16px !important; } }

/* V745: Philosophy begins immediately with the former homepage section. */
html body .hg-philosophy .hg-philosophy-main > .hg-loci-intro {margin-top:0!important;}

/* V757 — PHILOSOPHY DESKTOP: one canonical four-equal-spaces layout.
   The existing column content width limits and font sizes are kept.
   Only positions/inner gutters are adjusted; the photo is 38.7vw wide,
   matching its width in the supplied 2048px screenshot (~792px). */
@media  (min-width: 1100px) {
  html body .hg-philosophy .hg-loci-intro {
    --hg-philosophy-space: 5vw;
    padding: 0 !important;
    overflow: hidden !important;
    background: #f7f4ef !important;
  }
  html body .hg-philosophy .hg-loci-intro .hg-loci-intro__inner {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) minmax(0,38.7vw) minmax(0,16vw) !important;
    column-gap: var(--hg-philosophy-space) !important;
    row-gap: 0 !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 var(--hg-philosophy-space) !important;
    box-sizing: border-box !important;
  }
  html body .hg-philosophy .hg-loci-intro .hg-loci-intro__copy {
    grid-column: 1 !important;
    align-self: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 46px 0 !important;
    box-sizing: border-box !important;
  }
  /* Restore the original text line lengths; do not stretch either paragraph. */
  html body .hg-philosophy .hg-loci-intro .hg-loci-intro__copy h2 {
    max-width: 430px !important;
  }
  html body .hg-philosophy .hg-loci-intro .hg-loci-intro__lead {
    max-width: 335px !important; /* V913: align right edge with “där” */
    width: 100% !important;
  }
  /* display:contents exposes the existing image and aside as grid children
     without changing the markup or images. */
  html body .hg-philosophy .hg-loci-intro .hg-loci-intro__visual {
    display: contents !important;
    background: none !important;
  }
  html body .hg-philosophy .hg-loci-intro .hg-loci-intro__image {
    grid-column: 2 !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    min-height: 430px !important;
    max-height: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background-size: 117% auto !important;
    background-position: center bottom !important;
    /* V757: move photo 5px left so left/right visible gaps match. */
    transform: translateX(-5px) !important;
    box-sizing: border-box !important;
  }
  html body .hg-philosophy .hg-loci-intro .hg-loci-intro__quote {
    grid-column: 3 !important;
    align-self: stretch !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    padding: 42px 0 !important;
    margin: 0 !important;
    position: relative !important;
    isolation: isolate !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: stretch !important;
    box-sizing: border-box !important;
    background: #173452 !important;
    color: #fff !important;
  }
  /* Navy fills the entire gap after the photo and runs to the right edge,
     while quote text itself begins one equal spacing unit after the photo. */
  html body .hg-philosophy .hg-loci-intro .hg-loci-intro__quote::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: calc(-1 * var(--hg-philosophy-space) - 5px) !important;
    right: calc(-1 * var(--hg-philosophy-space)) !important;
    width: auto !important;
    background: #173452 !important;
    pointer-events: none !important;
    z-index: 0 !important;
  }
  html body .hg-philosophy .hg-loci-intro .hg-loci-intro__quote > * {
    position: relative;
    z-index: 1;
  }
  html body .hg-philosophy .hg-loci-intro .hg-loci-intro__quote > p,
  html body .hg-philosophy .hg-loci-intro .hg-loci-intro__quote > small,
  html body .hg-philosophy .hg-loci-intro .hg-loci-intro__quote > .hg-loci-intro__quote-line {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    align-self: stretch !important;
    text-align: left !important;
    box-sizing: border-box !important;
  }
}
/* For narrower desktop screens, preserve legibility with a smaller gap
   and a minimum width for the quote. Mobile/tablet layout unchanged. */
@media  (min-width: 1100px) and (max-width: 1599px) {
  html body .hg-philosophy .hg-loci-intro { --hg-philosophy-space: 3.8vw; }
  html body .hg-philosophy .hg-loci-intro .hg-loci-intro__inner {
    grid-template-columns: minmax(0,1fr) minmax(0,39vw) minmax(250px,17vw) !important;
  }
}
/* Existing pale blue statement and process bottom spacing stay unchanged. */
html body .hg-philosophy .hg-loci-factors__statement { background:#E7EEF8 !important; }
html body .hg-philosophy .hg-loci-process { padding-bottom:40px !important; }
@media  (max-width:900px) {
  html body .hg-philosophy .hg-loci-process { padding-bottom:34px !important; }
}


/* V765: Homepage order only: menu > statistics > original hero.
   Preserve every original hero height, text, photo crop and slideshow rule.
   Header participates in the document flow when at the top. */
html body .hg-header.hg-header--home:not(.is-scrolled){
  position:relative !important;
  inset:auto !important;
  top:auto !important;
  left:auto !important;
  right:auto !important;
  margin:0 !important;
  z-index:20;
}
/* Remove any inherited external gap around the relocated stats strip. */
html body .hg-home.hg-home-stats-only,
html body .hg-home.hg-home-stats-only .hg-stats{
  margin:0 !important;
}
html body .hg-home.hg-home-stats-only{
  padding:0 !important;
}

/* V769 — Prevent the 90px to 82px sticky-header feedback loop.
   Keep the unscrolled header identical. In the scrolled state, take the
   compact header out of flow and add a fixed-height spacer via the adjacent
   hero section. Thus the total header layout height stays 90px in either
   scroll state, while the compact header remains 82px high. */
@media  (min-width: 901px) {
  html body .hg-header.hg-header--home[data-hg-header]:not(.is-scrolled) {
    position: relative !important;
    top: auto !important;
    inset-inline: 0 !important;
    width: 100% !important;
    height: 90px !important;
    min-height: 90px !important;
    max-height: 90px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    transform: none !important;
  }
  html body .hg-header.hg-header--home[data-hg-header]:not(.is-scrolled) .hg-header__inner {
    height: 90px !important;
    min-height: 90px !important;
    max-height: 90px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    align-items: center !important;
    box-sizing: border-box !important;
  }
  html body .hg-header.hg-header--home[data-hg-header].is-scrolled {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 82px !important;
    min-height: 82px !important;
    max-height: 82px !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    transform: none !important;
    transition: background-color 220ms ease, box-shadow 220ms ease !important;
  }
  html body.admin-bar .hg-header.hg-header--home[data-hg-header].is-scrolled {
    top: 32px !important;
  }
  html body .hg-header.hg-header--home[data-hg-header].is-scrolled + .hg-hero.hg-hero--home[data-hg-hero] {
    margin-top: 90px !important;
  }
  html body .hg-header.hg-header--home[data-hg-header].is-scrolled .hg-header__inner {
    height: 82px !important;
    min-height: 82px !important;
    max-height: 82px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    align-items: center !important;
  }
}

/* V768: Homepage submenu must paint above the relocated statistics band.
   Header dimensions, slideshow styling and banner layout are unchanged. */
@media  (min-width: 901px) {
  html body .hg-header.hg-header--home[data-hg-header],
  html body .hg-header.hg-header--home[data-hg-header].is-scrolled {
    z-index: 100100 !important;
    overflow: visible !important;
    isolation: isolate;
  }
  html body .hg-header.hg-header--home[data-hg-header] .hg-header__nav,
  html body .hg-header.hg-header--home[data-hg-header] .hg-menu-item {
    overflow: visible !important;
  }
  html body .hg-header.hg-header--home[data-hg-header] .hg-dropdown {
    z-index: 100101 !important;
  }
  html body .hg-home.hg-home-stats-only {
    position: relative;
    z-index: 0 !important;
  }
  html body .hg-home.hg-home-stats-only .hg-stats {
    z-index: 0 !important;
  }
}


/* V770 — HOME ONLY: align compact header contents vertically.
   Do not alter the normal (unscrolled) header, header box height, or hero size. */
@media  (min-width:901px) {
  html body .hg-header.hg-header--home[data-hg-header].is-scrolled .hg-header__inner {
    align-items:center !important;
  }
  html body .hg-header.hg-header--home[data-hg-header].is-scrolled .hg-header__nav{
    position:relative !important;
    top:5px !important;
  }
}

/* V783 — Homepage stats: 66px geometry, with all four levels aligned.
   Keeps desktop type size and the moved banner/hero ordering untouched. */
@media  (min-width:901px) {
  html body .hg-home.hg-home-stats-only,
  html body .hg-home.hg-home-stats-only > #hg-home-stats-primary,
  html body .hg-home.hg-home-stats-only > #hg-home-stats-primary > .hg-stats__grid,
  html body .hg-home.hg-home-stats-only > #hg-home-stats-primary > .hg-stats__grid > .hg-stat {
    height:66px !important;
    min-height:66px !important;
    max-height:66px !important;
    box-sizing:border-box !important;
    padding-top:0 !important;
    padding-bottom:0 !important;
    margin-top:0 !important;
    margin-bottom:0 !important;
    overflow:hidden !important;
  }
  html body .hg-home.hg-home-stats-only > #hg-home-stats-primary > .hg-stats__grid > .hg-stat {
    display:flex !important;
    flex-direction:column !important;
    justify-content:center !important;
    align-items:center !important;
    margin:0 !important;
    padding-left:18px !important;
    padding-right:18px !important;
  }
  html body .hg-home.hg-home-stats-only #hg-home-stats-primary .hg-stat__text {
    position:static !important;
    top:auto !important;
    bottom:auto !important;
    transform:translateY(-3px) !important;
    margin:0 !important;
    padding:0 !important;
    text-align:center !important;
  }
}

/* V785 — Desktop home statistics: reduce only the space between the two text rows.
   Typography and the 66px banner height are unchanged. */
@media  (min-width:901px) {
  html body .hg-home.hg-home-stats-only #hg-home-stats-primary .hg-stat__text > strong {
    margin-bottom:0.5px !important;
  }
}

/* V796 — neutral placeholders exclusively for historical reference projects with no supplied photographs. */
.hg-fp-card__image--historical {
    display:flex!important;flex-direction:column;align-items:center;justify-content:center;
    gap:14px;background:linear-gradient(145deg,#e8edf0 0%,#d4dfe5 100%);
    width:100%;height:100%;min-height:210px;padding:24px;text-align:center;
    color:#173452;box-sizing:border-box;
}
.hg-fp-card__image--historical span {font-size:11px;font-weight:600;line-height:1.5;letter-spacing:.14em;text-transform:uppercase;}
.hg-fp-card__image--historical strong {font-family:Georgia,serif;font-size:clamp(22px,2vw,32px);font-weight:400;line-height:1.2;}
.hg-fp-modal__historical {min-height:275px;}

/* V797: correct desktop/reference page header text; leave dropdown styling untouched. */
html body .hg-featured-projects-page .hg-header.hg-header--about-static .hg-header__nav > a,
html body .hg-featured-projects-page .hg-header.hg-header--about-static .hg-header__nav > .hg-menu-item > a,
html body .hg-featured-projects-page .hg-header.hg-header--about-static .hg-header__nav .hg-header__language a,
html body .hg-featured-projects-page .hg-header.hg-header--about-static .hg-header__nav .hg-header__language span,
html body .hg-featured-projects-page .hg-header.hg-header--about-static .hg-header__nav .hg-menu-chevron {
  color:#222722 !important;
}

/* V804 — All Hemgården footers (SV & EN): 5% smaller logo, lifted 10% of its own height. */
html body .hg-footer .hg-footer__logo {
    width:197.01124px !important;
    height:auto !important;
    transform:translateY(10%) !important;
}
@media  (max-width:700px) {
    html body .hg-footer .hg-footer__logo { width:186.64223px !important; }
}


/* V804 — Only Grönpepparn's reference-card crop; reveal the left balconies. */
html body .hg-featured-projects-page .hg-fp-card img.hg-fp-card__image[alt="Brf Grönpepparn"] {
  object-position: 0% center !important;
}
/* V804 — Homepage Lida collage only: 10% closer than the previous 170%/178% crop. */
html body .hg-home .hg-current .hg-project-card[href*="lida-tradgardsstad"] .hg-project-card__image,
html body .hg-home .hg-project-grid .hg-project-card[href*="lida-tradgardsstad"] .hg-project-card__image {
  background-size: 205.7% auto !important;
  background-position:10% 46% !important;
}
@media  (max-width:760px) {
  html body .hg-home .hg-current .hg-project-card[href*="lida-tradgardsstad"] .hg-project-card__image,
  html body .hg-home .hg-project-grid .hg-project-card[href*="lida-tradgardsstad"] .hg-project-card__image {
    background-size: 215.38% auto !important;
    background-position:10% 47% !important;
  }
}

/* V807 — Lida Trädgårdsstad: actual horizontal image shift; preserve modal geometry. */
html body .hg-homes-sale-page #hg-sale-modal-lida-tradgardsstad-bostader .hg-sale-modal__gallery img,
html body .hg-homes-sale-page #hg-sale-modal-lida-tradgardsstad-samhall .hg-sale-modal__gallery img {
  object-position:20% 46% !important;
  transform:translateX(-7%) scale(1.48) !important;
  transform-origin:center center !important;
}
@media  (max-width:760px) {
  html body .hg-homes-sale-page #hg-sale-modal-lida-tradgardsstad-bostader .hg-sale-modal__gallery img,
  html body .hg-homes-sale-page #hg-sale-modal-lida-tradgardsstad-samhall .hg-sale-modal__gallery img {
    object-position:20% 47% !important;
    transform:translateX(-7%) scale(1.48) !important;
  }
}

/* V809 — Wider supplied presence map (PNG). Keep other images unchanged. */
@media  (min-width:981px) {
  html body .hg-presence__grid {
    grid-template-columns:minmax(0, 1fr) minmax(450px, .95fr) !important;
    gap:clamp(26px, 3vw, 54px) !important;
  }
  html body .hg-presence__map {
    max-width:none !important;
    width:100% !important;
    padding-left:clamp(15px, 2vw, 30px) !important;
  }
}
html body .hg-presence__map img {
  display:block !important;
  width:100% !important;
  max-width:680px !important;
  max-height:none !important;
  height:auto !important;
  object-fit:contain !important;
  transform:none !important;
}
@media  (max-width:980px) {
  html body .hg-presence__map {
    max-width:680px !important;
    width:100% !important;
    padding-left:0 !important;
    margin-inline:auto !important;
    transform:none !important;
  }
}


/* V817 — the map PNG contains its own navy border; never draw another around it. */
html body .hg-presence__map img {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}


/* V818 — Philosophy mobile header geometry matches the homepage.
   Scoped to /var-filosofi/ and /our-philosophy/ only. Preserve existing palette,
   page flow, dropdown/menu behavior, and desktop styles. */
@media  only screen and (max-width: 767px) {
  html body .hg-philosophy > .hg-header.hg-header--about-static[data-hg-header],
  html body .hg-philosophy > .hg-header.hg-header--about-static[data-hg-header].is-scrolled {
    height: 96px !important;
    min-height: 96px !important;
    max-height: 96px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }
  html body .hg-philosophy > .hg-header.hg-header--about-static[data-hg-header] .hg-header__inner,
  html body .hg-philosophy > .hg-header.hg-header--about-static[data-hg-header].is-scrolled .hg-header__inner {
    width: calc(100% - 36px) !important;
    max-width: calc(100% - 36px) !important;
    height: 96px !important;
    min-height: 96px !important;
    max-height: 96px !important;
    margin: 0 18px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    box-sizing: border-box !important;
  }
  
  
  html body .hg-philosophy > .hg-header.hg-header--about-static[data-hg-header] .hg-mobile-menu-toggle,
  html body .hg-philosophy > .hg-header.hg-header--about-static[data-hg-header].is-scrolled .hg-mobile-menu-toggle {
    position: relative !important;
    top: 0 !important;
    right: 0 !important;
    width: 46px !important;
    height: 44px !important;
    min-width: 46px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 8px !important;
    align-self: center !important;
    transform: none !important;
  }
}

/* V820 — Mobile only: remove the two stray vertical rules next to
   Student housing and Supported living in the homepage life-stage grid.
   The third and fifth DIV cards are those two items; connector SPANs are unaffected. */
@media  screen and (max-width:767px) {
  html body .hg-home .hg-lifestages .hg-life-timeline > .hg-life-stage:nth-of-type(3),
  html body .hg-home .hg-lifestages .hg-life-timeline > .hg-life-stage:nth-of-type(5) {
    border-left: 0 !important;
    border-right: 0 !important;
  }
  html body .hg-home .hg-lifestages .hg-life-timeline > .hg-life-stage:nth-of-type(3)::before,
  html body .hg-home .hg-lifestages .hg-life-timeline > .hg-life-stage:nth-of-type(5)::before {
    content: none !important;
    display: none !important;
    background: none !important;
  }
}

/* V821 — Mobile only: keep Homes for Sale hero title visible below the header.
   The shared mobile header may overlay the beginning of this page's hero copy.
   Reserve space above the full text group, without touching desktop styles. */
@media  only screen and (max-width: 767px) {
  html body .hg-homes-sale-page .hg-sale-hero {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
  html body .hg-homes-sale-page .hg-sale-hero__copy {
    position: relative !important;
    order: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding: 120px 22px 42px !important;
    box-sizing: border-box !important;
  }
  html body .hg-homes-sale-page .hg-sale-hero__inner {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    transform: none !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  html body .hg-homes-sale-page .hg-sale-hero .hg-sale-eyebrow,
  html body .hg-homes-sale-page .hg-sale-hero h1 {
    display: block !important;
    position: relative !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
  }
  html body .hg-homes-sale-page .hg-sale-hero__media {
    order: 1 !important;
  }
}

/* V842 — News-page desktop dropdown: fully opaque panel.
   Scoped to the Swedish and English news pages; all dimensions remain unchanged. */
@media  (min-width: 901px) {
  html body .hg-news-page .hg-header[data-hg-header] .hg-menu-item--has-children > .hg-dropdown,
  html body .hg-news-page .hg-header[data-hg-header] .hg-menu-item > .hg-dropdown {
    background: #fbfaf6 !important;
    background-color: #fbfaf6 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    isolation: auto;
    z-index: 100101 !important;
  }
  html body .hg-news-page .hg-header[data-hg-header] {
    overflow: visible !important;
  }
}

/* V844 — Nyheter/News dropdown stacking fix.
   The whole header, not just the dropdown, must sit above the hero image.
   Desktop only; no size, position, text, or mobile changes. */
@media  (min-width:901px) {
  html body .hg-news-page > .hg-header[data-hg-header],
  html body .hg-news-page > .hg-header[data-hg-header].is-scrolled {
    z-index:100100 !important;
    overflow:visible !important;
    isolation:isolate !important;
  }
  html body .hg-news-page > .hg-header[data-hg-header] .hg-menu-item--has-children {
    position:relative !important;
    z-index:100101 !important;
  }
  html body .hg-news-page > .hg-header[data-hg-header] .hg-menu-item--has-children > .hg-dropdown {
    background:#fbfaf7 !important;
    background-color:#fbfaf7 !important;
    background-image:none !important;
    opacity:0;
    z-index:100102 !important;
    backdrop-filter:none !important;
    -webkit-backdrop-filter:none !important;
  }
  html body .hg-news-page > .hg-header[data-hg-header] .hg-menu-item--has-children:hover > .hg-dropdown,
  html body .hg-news-page > .hg-header[data-hg-header] .hg-menu-item--has-children:focus-within > .hg-dropdown {
    opacity:1 !important;
    visibility:visible !important;
  }
  html body .hg-news-page > .hg-news-main {
    position:relative;
    z-index:0;
  }
}

/* V857 (based on V856) — Authoritative desktop crop for hero photographs 1 and 2.
 * ID selectors deliberately outrank historic theme/PHP rules, without zoom.
 * Frames, transitions, text, fade, slide 3 and mobile are unchanged.
 * Hero-slide background is disabled only for these two photos: the IMG
 * is the sole visible image source, preventing doubled backgrounds.
 */
@media  screen and (min-width: 901px) {
  html body .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__media > .hg-hero__slide:nth-child(1),
  html body .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__media > .hg-hero__slide:nth-child(2) {
    background-image: none !important;
  }
  html body #hg-home-hero-photo-one,
  html body #hg-home-hero-photo-two {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: cover !important;
    transform: none !important;
    scale: 1 !important;
  }
  html body #hg-home-hero-photo-one { object-position: 50% 23% !important; }
  html body #hg-home-hero-photo-two { object-position: 67% 60% !important; }
}


/* V859 – Footer heading link matches the other headings, SV and EN. */
html body .hg-footer .hg-footer__column--contact h4 > a,
html body .hg-footer .hg-footer__column--contact h4 > a:visited,
html body .hg-footer .hg-footer__column--contact h4 > a:hover,
html body .hg-footer .hg-footer__column--contact h4 > a:focus-visible {
    display:inline !important;
    margin:0 !important;
    padding:0 !important;
    color:inherit !important;
    font:inherit !important;
    font-size:inherit !important;
    font-weight:inherit !important;
    line-height:inherit !important;
    letter-spacing:inherit !important;
    text-transform:inherit !important;
    text-decoration:none !important;
}


/* V863 — About / Philosophy: keep the compact header fixed when scrolling.
   Earlier V739 sticky rules overrode the original fixed-state header;
   this specific, end-of-file override restores the intended behavior.
   A measured placeholder on the shell preserves page geometry.
   Applies to Swedish and English instances of both pages. */
html body .hg-about.hg-v863-header-fixed {
  padding-top: var(--hg-v863-header-space, 96px) !important;
}
html body .hg-about.hg-v863-header-fixed > .hg-header.hg-header--about-static[data-hg-header] {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: auto !important;
  inset: 0 0 auto 0 !important;
  width: 100% !important;
  margin: 0 !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 100100 !important;
  overflow: visible !important;
}
html body.admin-bar .hg-about.hg-v863-header-fixed > .hg-header.hg-header--about-static[data-hg-header] {
  top: 32px !important;
  inset: 32px 0 auto 0 !important;
}
@media  (max-width: 782px) {
  html body.admin-bar .hg-about.hg-v863-header-fixed > .hg-header.hg-header--about-static[data-hg-header] {
    top: 46px !important;
    inset: 46px 0 auto 0 !important;
  }
}


/* V867 — Filosoficitat: båda citattecknen sitter direkt vid texten.
   Båda språkversionerna använder samma markup. Behåll den befintliga
   citatrutans padding, textstorlek och layout. */
html body .hg-philosophy .hg-loci-intro__quote > p {
  padding-top: 0 !important;
}
html body .hg-philosophy .hg-loci-intro__quote > p::before,
html body .hg-philosophy .hg-loci-intro__quote > p::after {
  content: none !important;
  display: none !important;
}
html body .hg-philosophy .hg-loci-intro__quote .hg-loci-intro__inline-quote {
  display: inline !important;
  position: static !important;
  float: none !important;
  font: inherit !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
  vertical-align: baseline !important;
  margin: 0 !important;
  padding: 0 !important;
  color: inherit !important;
}

/* V876 — Step 5: visibly zoom out within the same circular frame. */
html body .hg-loci-process__image.hg-loci-process__image--finish {
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

/* V873 — Marcus Halvorsen (portrait 2, About Us): 5% tighter crop; retain frame and layout. */
html body .hg-about .hg-about-person__photo[aria-label="Marcus Halvorsen"]{
  background-size:152% auto !important;
  background-position:center 18% !important;
  background-repeat:no-repeat !important;
}

/* V877 — Hero desktop photo crops and buying-page CTA spacing.
   Keep the image frame, scale, fades, and all other page geometry unchanged. */
@media  screen and (min-width:901px) {
  html body .hg-hero.hg-hero--home[data-hg-hero] #hg-home-hero-photo-one {
    object-position: 50% 13% !important;
  }
  html body .hg-hero.hg-hero--home[data-hg-hero] #hg-home-hero-photo-two {
    object-position: 77% 60% !important;
  }
}
@media  screen and (min-width:781px) {
  html body .hg-buying-page .hg-buying-cta {
    padding-top: 14px !important;
    padding-bottom: 16px !important;
  }
}
@media  screen and (max-width:780px) {
  html body .hg-buying-page .hg-buying-cta {
    padding-top: 14px !important;
    padding-bottom: 16px !important;
  }
}

/* V878 — Filosoficitat: behåll endast citattecknen som sitter direkt i texten.
   Påverkar inte layout, bildpositioner eller andra sektioner. */
html body .hg-philosophy .hg-loci-intro__quote > .hg-loci-intro__quote-mark {
  display: none !important;
}
html body .hg-philosophy .hg-loci-intro__quote > p::before,
html body .hg-philosophy .hg-loci-intro__quote > p::after {
  content: none !important;
  display: none !important;
}
html body .hg-philosophy .hg-loci-intro__quote > p {
  padding-top: 0 !important;
}
html body .hg-philosophy .hg-loci-intro__quote > p > .hg-loci-intro__inline-quote {
  display: inline !important;
  position: static !important;
  font: inherit !important;
  line-height: inherit !important;
  vertical-align: baseline !important;
  margin: 0 !important;
  padding: 0 !important;
}


/* V879 — Buying guide CTA: compact vertical spacing.
   Scoped to the "Vi hjälper dig gärna vidare" panel only. */
html body .hg-buying-page .hg-buying-main > .hg-buying-cta {
  padding-top: 18px !important;
  padding-bottom: 18px !important;
}
@media  (max-width: 780px) {
  html body .hg-buying-page .hg-buying-main > .hg-buying-cta {
    padding-top: 18px !important;
    padding-bottom: 18px !important;
  }
}

/* V881 — Homepage stats: 2px tighter spacing between value and caption only.
   All banner dimensions, typography, and column alignment remain unchanged. */
@media  (min-width:901px) {
  html body .hg-home.hg-home-stats-only #hg-home-stats-primary .hg-stat__text {
    row-gap:2px !important;
  }
}


/* V884 — Pågående projekt hero: use disco-ball-free image cleanly and remove the thin right-edge gap. */
@media  (min-width:901px){
  html body .hg-homes-sale-page .hg-sale-hero{
    overflow:hidden !important;
    margin-right:0 !important;
    padding-right:0 !important;
  }
  html body .hg-homes-sale-page .hg-sale-hero__media{
    position:relative !important;
    overflow:hidden !important;
    margin-right:-2px !important;
    padding-right:0 !important;
  }
  html body .hg-homes-sale-page .hg-sale-hero__media img{
    display:block !important;
    width:calc(100% + 2px) !important;
    max-width:none !important;
    height:100% !important;
    object-fit:cover !important;
    object-position:center center !important;
  }
}


/* V885 — mobile image integrity only. Preserve existing mobile geometry and stacking. */
@media  only screen and (max-width:900px) {
  html body .hg-homes-sale-page .hg-sale-hero__media {
    overflow:hidden !important;
    padding-right:0 !important;
    margin-right:0 !important;
  }
  html body .hg-homes-sale-page .hg-sale-hero__media > img {
    display:block !important;
    width:100% !important;
    max-width:none !important;
    height:100% !important;
    object-fit:cover !important;
    object-position:center center !important;
  }
  html body .hg-loci-process__image.hg-loci-process__image--finish {
    background-image:url("https://hemgarden.se/wp-content/uploads/2026/11/photographer_andreas-hylthen-0019074.jpg") !important;
    background-size:cover !important;
    background-repeat:no-repeat !important;
    background-position:center center !important;
  }
}
@media  only screen and (max-width:767px) {
  /* Images are real IMG elements; do not draw a second copy as slide backgrounds. */
  html body .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__media > .hg-hero__slide:nth-child(1),
  html body .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__media > .hg-hero__slide:nth-child(2) {
    background-image:none !important;
  }
  html body .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__slide .hg-hero__image {
    display:block !important;
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
    object-position:center center !important;
    max-width:none !important;
  }
}


/* V886 — News page: keep card image sources and layout consistent on mobile.
   Scoped to the news page only. No image replacements or layout reflow. */
@media  (max-width:900px) {
  html body .hg-news-page .hg-news-card__image-link {
    position:relative !important;
    overflow:hidden !important;
  }
  html body .hg-news-page .hg-news-card__image-link > img.hg-news-card__image {
    display:block !important;
    width:100% !important;
    height:100% !important;
    max-width:none !important;
    object-fit:cover !important;
    margin:0 !important;
    padding:0 !important;
  }
  html body .hg-news-page .hg-news-intro__media > img {
    display:block !important;
    width:100% !important;
    object-fit:cover !important;
    margin:0 !important;
    padding:0 !important;
  }
}


/* V889 — All header logo sizes are centrally defined in the critical
   hemgarden-v889-canonical-header-logo CSS emitted by functions.php.
   Prior V887/V888 duplicate end-of-file overrides were removed. */



/* V901 — About page: book-style block alignment for selected body copy (SV + EN) */
html body .hg-about .hg-about-hero__copy-inner > p:last-of-type,
html body .hg-about .hg-about-intro__copy > p:not(.hg-eyebrow),
html body .hg-about .hg-about-timeline article > p,
html body .hg-about .hg-about-person > p:not(.hg-about-person__role){
  text-align: justify !important;
  text-justify: inter-word !important;
  hyphens: auto !important;
  -webkit-hyphens: auto !important;
}


/* V902 — Vår filosofi / Our philosophy: justify only the requested copy.
   Preserve existing widths, sizes, quote marks and section layout. */
html body .hg-philosophy .hg-loci-intro__lead,
html body .hg-philosophy .hg-loci-intro__quote > p,
html body .hg-philosophy .hg-loci-process__step > p {
  text-align: justify !important;
  text-justify: inter-word !important;
  hyphens: auto !important;
  -webkit-hyphens: auto !important;
}


/* V903 — News page: book-style block alignment for intro lead and curated article excerpts (SV + EN) */
html body .hg-news-page .hg-news-intro__lead,
html body .hg-news-page .hg-news-card__excerpt{
  text-align: justify !important;
  text-justify: inter-word !important;
  hyphens: auto !important;
  -webkit-hyphens: auto !important;
}


/* V906 — Pågående projekt / Current projects: justify requested summaries and opened project descriptions. */
html body .hg-homes-sale-page .hg-sale-hero__lead,
html body .hg-homes-sale-page .hg-sale-card__text,
html body .hg-homes-sale-page .hg-sale-modal__lead,
html body .hg-homes-sale-page .hg-sale-buying__copy > p:not(.hg-sale-eyebrow) {
  text-align: justify !important;
  text-justify: inter-word !important;
  hyphens: auto !important;
  -webkit-hyphens: auto !important;
}


/* V907 — Referensprojekt: justify introduction and project description paragraphs in residential and community project dialogs (SV/EN). */
html body .hg-featured-projects-page .hg-fp-hero__copy > p,
html body .hg-featured-projects-page .hg-fp-modal__lead,
html body .hg-featured-projects-page .hg-fp-modal__story-grid p {
  text-align: justify !important;
  text-justify: inter-word !important;
  hyphens: auto !important;
  -webkit-hyphens: auto !important;
}


/* V908 — Att köpa bostad: book-style block alignment for the requested paragraphs (SV/EN). */
html body .hg-buying-page .hg-buying-hero__lead,
html body .hg-buying-page .hg-buying-step__body > p,
html body .hg-buying-page .hg-buying-info-card > p,
html body .hg-buying-page .hg-buying-guarantee > p {
  text-align: justify !important;
  text-justify: inter-word !important;
  hyphens: auto !important;
  -webkit-hyphens: auto !important;
}


/* V913 — Philosophy introduction: align paragraph's right edge with “där” in heading (desktop/tablet). */
@media (min-width: 768px) {
  html body .hg-philosophy .hg-loci-intro .hg-loci-intro__copy > .hg-loci-intro__lead {
    max-width: 335px !important;
    width: 100% !important;
  }
}


/* V914 — Om oss / Hemgården i korthet: end the three justified paragraphs
   below the final “h” in the heading's first-line “och” on desktop.
   Preserve the heading, left alignment and mobile layout (SV + EN). */
@media (min-width: 768px) {
  html body .hg-about .hg-about-intro__copy > p:not(.hg-eyebrow) {
    max-width: 530px !important;
    width: 100%;
  }
}

/* V915 — Ensure the home hero intro ends beneath the last “t” of “livet”.
   The same hero rule is shared across Swedish and English. Do not narrow mobile copy. */
@media (min-width: 768px) {
  html body .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__lead {
    width: min(100%, 425px) !important;
    max-width: 425px !important;
    text-align: justify !important;
    text-align-last: left;
    hyphens: auto !important;
    -webkit-hyphens: auto !important;
  }
}
@media (max-width: 767px) {
  html body .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__lead {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* V917 — Buying-guide hero text ends under title; keep mobile width fluid. */
@media (min-width: 781px) {
  html body .hg-buying-page .hg-buying-hero__lead { max-width:450px !important; }
}


/* V918 — Home hero: natural book justification; exact width is synchronised to the heading by the homepage markup. */
@media (min-width:768px) {
  html body .hg-hero.hg-hero--home[data-hg-hero] .hg-hero__lead {
    text-align:justify !important;
    text-align-last:left !important;
    hyphens:auto !important;
    -webkit-hyphens:auto !important;
  }
}


/* V919 — Nyheter + Kontakt: force true newspaper/book-style justified introductory copy, SV/EN. */
html body .hg-news-page .hg-news-intro__copy .hg-news-intro__lead,
html body .hg-contact-page .hg-contact-hero__inner .hg-contact-hero__lead {
  text-align: justify !important;
  text-align-last: left !important;
  text-justify: inter-word !important;
  hyphens: auto !important;
  -webkit-hyphens: auto !important;
}


/* V920 — Buying guide: justify the hero copy and size it dynamically from
   the rendered heading, without altering the mobile layout. */
@media (min-width:781px) {
  html body .hg-buying-page .hg-buying-hero__lead {
    text-align:justify !important;
    text-align-last:left !important;
    text-justify:inter-word !important;
    hyphens:auto !important;
    -webkit-hyphens:auto !important;
  }
}


/* V921 — Contact: justified copy reaches the heading's actual right edge,
   synchronized from the rendered heading on desktop. News: an appropriately
   sized text column avoids the very wide gaps seen in the screenshot. */
html body .hg-contact-page .hg-contact-hero__inner .hg-contact-hero__lead,
html body .hg-news-page .hg-news-intro__copy .hg-news-intro__lead {
    text-align: justify !important;
    text-align-last: left !important;
    text-justify: inter-word !important;
    hyphens: auto !important;
    -webkit-hyphens: auto !important;
}
@media (min-width: 768px) {
    html body .hg-news-page .hg-news-intro__copy .hg-news-intro__lead {
        width: min(100%, 405px) !important;
        max-width: 405px !important;
    }
}


/* V925: Öreslandet 2 modal — approved project narrative, SV/EN. */
html body #hg-oreslandet2-modal .hg-fp-modal__concept-title {
  margin: 0 0 18px;
}
html body #hg-oreslandet2-modal .hg-fp-modal__concept-copy {
  margin-top: 28px;
}
html body #hg-oreslandet2-modal .hg-fp-modal__concept-copy p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  margin: 0 0 18px;
}


/* V927 — Öreslandet 2: complete narrative and larger secondary gallery images. */
html body .hg-homes-sale-page #hg-sale-modal-oreslandet-2 .hg-sale-modal__concept-title {
  margin: 22px 0 18px;
  color: #1f241f;
  font: 400 clamp(23px, 2.6vw, 32px)/1.22 Georgia, "Times New Roman", serif;
}
html body .hg-homes-sale-page #hg-sale-modal-oreslandet-2 .hg-sale-modal__concept-copy p {
  margin: 0 0 18px;
  color: #555b55;
  font: 400 16px/1.65 Arial, Helvetica, sans-serif;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}
@media (min-width: 761px) {
  html body .hg-homes-sale-page #hg-sale-modal-oreslandet-2 .hg-sale-modal__gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: 290px;
    gap: 8px;
    background: transparent;
  }
  html body .hg-homes-sale-page #hg-sale-modal-oreslandet-2 .hg-sale-modal__gallery figure.is-main {
    grid-row: auto;
  }
  html body .hg-homes-sale-page #hg-sale-modal-oreslandet-2 .hg-sale-modal__gallery figure {
    min-width: 0;
    background: #eeeae5;
  }
  html body .hg-homes-sale-page #hg-sale-modal-oreslandet-2 .hg-sale-modal__gallery img {
    width: 100%; height: 100%; object-fit: contain;
  }
}
html body .hg-featured-projects-page #hg-oreslandet2-modal .hg-fp-modal__gallery--ores {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
html body .hg-featured-projects-page #hg-oreslandet2-modal .hg-fp-modal__gallery--ores figure {
  width: 100%; margin: 0; min-width: 0;
  background: #eeeae5;
}
html body .hg-featured-projects-page #hg-oreslandet2-modal .hg-fp-modal__gallery--ores img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: contain;
}

/* ================================================================
   V928 — HEMGÅRDEN / VISUAL FINISH ONLY
   Purpose: refinement of existing site without any layout changes.
   No changes to geometry, spacing, fonts, font sizes, content, images,
   image crop, grid, positioning, or responsive breakpoints.
   Remove this entire block to restore the prior visual finish.
   ================================================================ */

/* Maintain the established navy brand; make tonal treatments consistent. */
:root {
  --hg-blue: #173452;
  --hg-deep-blue: #173452;
  --hg-light-blue: #e7eef8;
  --hg-finish-rule: rgba(23, 52, 82, .16);
  --hg-finish-navy-soft: rgba(23, 52, 82, .055);
  --hg-finish-shadow: 0 12px 32px rgba(19, 43, 67, .075);
}

/* Type rendering only; existing type scale and line breaks stay unchanged. */
.hg-home, .hg-hero, .hg-header, .hg-footer,
.hg-about-page, .hg-philosophy-page, .hg-contact-page,
.hg-news-page, .hg-buying-page, .hg-rentals-page,
.hg-featured-projects-page, .hg-homes-sale-page {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Delicate navigation signals, without shifting or resizing menu items. */
.hg-header__nav a::after {
  background-color: currentColor;
  opacity: .66;
  transition: right 240ms ease, opacity 240ms ease;
}
.hg-header__nav a:hover::after,
.hg-header__nav a:focus-visible::after,
.hg-header__nav a.is-active::after { opacity: 1; }

/* Dropdowns: cleaner surface and more restrained elevation. */
.hg-dropdown {
  background-color: rgba(251, 250, 246, .985);
  border-color: var(--hg-finish-rule);
  box-shadow: 0 16px 45px rgba(16, 38, 59, .13);
}
.hg-dropdown a {
  transition: background-color 200ms ease, color 200ms ease;
}
.hg-dropdown a:hover,
.hg-dropdown a:focus-visible { background-color: var(--hg-finish-navy-soft); }

/* Existing buttons stay identical in size. Only finishes change. */
.hg-button, .hg-rentals-button, .hg-buying-cta__button,
.hg-sale-outline-button, .hg-sale-solid-button, .hg-btn--solid {
  transition-property: background-color, color, border-color, box-shadow, opacity;
  transition-duration: 220ms;
  transition-timing-function: ease;
}
.hg-button--dark:hover, .hg-button--dark:focus-visible {
  box-shadow: 0 7px 20px rgba(23, 52, 82, .12);
}
.hg-button--light:hover, .hg-button--light:focus-visible {
  box-shadow: 0 7px 20px rgba(10, 27, 44, .12);
}

/* Cards: subtle polish with zero movement, resizing or crop changes. */
.hg-service-card, .hg-contact-card, .hg-buying-info-card,
.hg-rentals-tenant-card {
  transition: border-color 240ms ease, box-shadow 240ms ease,
              background-color 240ms ease;
}
.hg-service-card:hover, .hg-service-card:focus-within,
.hg-contact-card:hover, .hg-contact-card:focus-within,
.hg-buying-info-card:hover, .hg-buying-info-card:focus-within,
.hg-rentals-tenant-card:hover, .hg-rentals-tenant-card:focus-within {
  border-color: rgba(23, 52, 82, .23);
  box-shadow: var(--hg-finish-shadow);
}

/* Underline-free links remain underline-free; link contrast refines on hover. */
.hg-text-link, .hg-footer__column a, .hg-footer__legal a {
  transition: color 200ms ease, opacity 200ms ease;
}
.hg-footer__column a:hover, .hg-footer__legal a:hover,
.hg-footer__column a:focus-visible, .hg-footer__legal a:focus-visible {
  color: #fff;
}
.hg-footer__bottom { border-top-color: rgba(255, 255, 255, .20); }

/* Visible keyboard focus, drawn outside elements (does not affect layout). */
.hg-home a:focus-visible, .hg-home button:focus-visible,
.hg-header a:focus-visible, .hg-header button:focus-visible,
.hg-footer a:focus-visible, .hg-footer button:focus-visible {
  outline: 2px solid #8fb3d4;
  outline-offset: 3px;
}

/* Respect user reduced-motion settings. */
@media (prefers-reduced-motion: reduce) {
  .hg-header__nav a::after, .hg-dropdown a,
  .hg-button, .hg-rentals-button, .hg-buying-cta__button,
  .hg-sale-outline-button, .hg-sale-solid-button, .hg-btn--solid,
  .hg-service-card, .hg-contact-card, .hg-buying-info-card,
  .hg-rentals-tenant-card, .hg-text-link,
  .hg-footer__column a, .hg-footer__legal a { transition: none; }
}
