/* One quiet header connects the public business pages. */
body:has(.biz-masthead) {
  --biz-header-inset: max(clamp(20px, 3.8vw, 72px), calc((100% - 1536px) / 2 + 58px));
}
body:has(.biz-masthead) .identity-header.biz-masthead {
  position: relative;
  top: auto;
  width: auto;
  max-width: none;
  min-height: 72px;
  height: auto;
  margin: 0 var(--biz-header-inset);
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #f7f5f2;
  border: 0;
  border-bottom: 1px solid rgba(247,245,242,.25);
  background: transparent;
  box-shadow: none;
}
body:has(.biz-masthead) .identity-header.biz-masthead::before { content: none; }
.biz-masthead-brand, .biz-masthead-links, .biz-masthead-links a {
  display: inline-flex;
  align-items: center;
}
.biz-masthead-brand, .biz-masthead-links a {
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}
.biz-masthead-brand { gap: clamp(7px, 1.05vw, 16px); }
.biz-masthead-brand img {
  width: clamp(28px, 2.8vw, 41px);
  height: auto;
  filter: brightness(0) invert(1);
}
body:has(.biz-masthead) .identity-header.biz-masthead .wordmark {
  margin: 0;
  padding: 0;
  gap: .38em;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(23px, 2.15vw, 32px);
  font-weight: 500;
  letter-spacing: -.065em;
}
.identity-header.biz-masthead .biz-masthead-links {
  display: flex;
  margin: 0;
  padding: 0;
  width: auto;
  justify-content: flex-end;
  gap: clamp(12px,2.6vw,40px);
  font: 450 clamp(12px,1vw,14px)/1.2 Arial, Helvetica, sans-serif;
  white-space: nowrap;
}
.identity-header.biz-masthead .biz-masthead-links a { font-size: inherit; }
.biz-private-short { display: none; }
.biz-private-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.biz-masthead-links .biz-portal-entry {
  padding: 0 1.25em;
  border: 1px solid rgba(247,245,242,.6);
  border-radius: 999px;
}
.biz-portal-entry:hover { background: rgba(247,245,242,.10); }
.biz-masthead a:focus-visible { outline: 2px solid #f7f5f2; outline-offset: 3px; }
body:has(.biz-page) .biz-page .biz-subnav { display: flex; }
body:has(.biz-detail) {
  background-color: #37283c;
  background-image: radial-gradient(ellipse at 75% 0%, #4a354d 0, transparent 58rem);
}
@media (max-width: 700px) {
  body:has(.biz-masthead) .identity-header.biz-masthead { min-height: 60px; padding-block: 6px; gap: 7px; }
  body:has(.biz-masthead) .identity-header.biz-masthead .wordmark { font-size: clamp(16px,3.9vw,22px); }
  .biz-masthead-brand { gap: 6px; }
  .biz-masthead-brand img { width: clamp(22px,5vw,30px); }
  .identity-header.biz-masthead .biz-masthead-links { gap: 10px; }
  .biz-private-long { display: none; }
  .biz-private-short { display: inline; }
}
@media (max-width: 440px) {
  body:has(.biz-masthead) { --biz-header-inset: 12px; }
  .identity-header.biz-masthead .biz-masthead-links { gap: 8px; font-size: 11px; }
  .biz-masthead-links .biz-portal-entry { padding-inline: 8px; }
}

@media (max-width: 365px) {
  body:has(.biz-masthead) .identity-header.biz-masthead { gap: 4px; }
  body:has(.biz-masthead) .identity-header.biz-masthead .wordmark { font-size: clamp(14px, 4.1vw, 15px); gap: .25em; }
  body:has(.biz-masthead) .identity-header.biz-masthead .biz-brand-label { padding-left: .4em; }
  .biz-masthead-brand { gap: 4px; }
  .biz-masthead-brand img { width: 21px; }
  .identity-header.biz-masthead .biz-masthead-links { gap: 5px; }
}

body:has(.biz-masthead){--biz-night:#302235;--biz-paper:#f7f5f2}
body:has(.biz-masthead) .biz-masthead{isolation:isolate}
body:has(.biz-masthead) .identity-header.biz-masthead::before{content:"";position:absolute;inset:0 calc(-1 * var(--biz-header-inset));z-index:-1;background:var(--biz-night);pointer-events:none}
footer.biz-frame-footer {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(20px, 3.2vw, 52px) var(--biz-header-inset) max(16px, env(safe-area-inset-bottom));
  border: 0;
  background: #302235;
  color: #f7f5f2;
  font: 400 14px/1.5 "Hmd Business", Arial, sans-serif;
  text-align: left;
}

.biz-foot-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  gap: 15px clamp(20px, 3vw, 56px);
  width: 100%;
  border-top: 1px solid #79677d;
  padding-top: clamp(18px, 2.5vw, 38px);
}
.biz-frame-footer a { color: inherit; text-decoration: none; }
.biz-frame-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.biz-frame-footer a:focus-visible { outline: 2px solid #f7e6ff; outline-offset: 2px; }
.biz-frame-footer nav { display: grid; align-content: start; justify-items: start; gap: 0; margin: 0; padding: 0; }
.biz-frame-footer nav a, .biz-foot-meta a { display: inline-flex; align-items: center; min-height: 44px; }
.biz-foot-brand { display: inline-flex; align-items: center; align-self: start; justify-self: start; gap: 8px; min-height: 44px; font: 500 23px/1 Arial,sans-serif; letter-spacing: -.06em; }
.biz-foot-brand img { filter: brightness(0) invert(1); object-fit: contain; }
.biz-foot-brand small { border-left: 1px solid #ab99b0; padding-left: 8px; letter-spacing: .07em; font: 450 15px/1 "Hmd Business",sans-serif; }
.biz-foot-meta { grid-column: 1/-1; display: flex; align-items: center; flex-wrap: wrap; gap: 0 20px; color: #ddcfdf; font-size: 12px; }
.business-page.biz-atlas .orbit-hero{background:radial-gradient(ellipse at 65% 55%,#48364f,#302235 70%);overflow:hidden}
.business-page.biz-atlas .orbit-art{inset:0 0 0 auto;width:62%;height:100%;mask-image:linear-gradient(90deg,transparent,#000 15%);z-index:-1}
.business-page.biz-atlas .orbit-art img{object-fit:contain;object-position:center;mix-blend-mode:lighten}
.business-page.biz-atlas .orbit-hero::after{display:none}
.business-page.biz-atlas .orbit-copy{max-width:46%}
.business-page.biz-atlas .orbit-hero-inner{padding-block:clamp(52px,8vw,118px);min-height:clamp(450px,53vw,700px)}
body:has(.biz-masthead) .biz-detail :is(.biz-detail-hero,.offer-hero){border-top:1px solid #806c853f;padding-top:clamp(20px,3vw,44px)}
body:has(.biz-masthead) .offer-demo-scene{background-color:#37283e;background-image:linear-gradient(135deg,transparent 59%,#c6aad612 59%,transparent 60%),radial-gradient(ellipse at 75% 26%,#6d5279aa,transparent 68%);border:1px solid #9f86ae50}
@media(max-width:650px){
 .business-page.biz-atlas .orbit-copy{max-width:none}
 .business-page.biz-atlas .orbit-hero-inner{min-height:0;padding-block:32px 12px}
 .business-page.biz-atlas .orbit-art{position:relative;width:100%;height:clamp(220px,62vw,325px);mask-image:none;z-index:0}
 .biz-foot-inner{grid-template-columns:1fr 1fr;gap:24px 16px}.biz-foot-brand{grid-column:1/-1}
}

/* All business routes use the same atlas loaded by the root layout. Only the
   business palette changes; the map excerpts, placement and motion are shared. */
body:has(.biz-masthead) {
  --biz-plum: #49354f;
  --biz-night: #35263a;
  background: var(--biz-plum);
}
body:has(.biz-masthead) .hmd-city-atlas .hmd-city-field .hmd-city-picture {
  filter: brightness(0) invert(1);
  opacity: .8;
}
body:has(.biz-masthead) .hmd-city-field .trace { stroke: #eee1ef; }
body:has(.biz-masthead) .identity-header.biz-masthead::before,
body:has(.biz-masthead) footer.biz-frame-footer { background: #35263ad9; }
body:has(.biz-masthead) .biz-masthead-brand,
body:has(.biz-masthead) .biz-masthead .wordmark { color: #f7f5f2; }

body:has(.biz-masthead) .delta-page,
body:has(.biz-masthead) .delta-page .survey-app,
body:has(.biz-masthead) .delta-page .survey-app:has(.delta-entry) { background: transparent; }
body:has(.biz-masthead) .delta-page .survey-app:has(.delta-entry)::before { content: none; }

/* Opaque reading surfaces keep questions, controls and administrative screens
   legible over the street grid. Portal panels provide their own surfaces. */
body:has(.biz-masthead) .survey-app:not(.partner-portal) .survey-participant {
  border-radius: 19px;
  background: #f7f5f2;
  color: #332639;
  padding: clamp(19px, 3vw, 40px);
  color-scheme: light;
}
body:has(.biz-masthead) .survey-app:not(.partner-portal) > main:not(:has(.delta-entry, .survey-participant)) {
  margin-block: 28px;
  border-radius: 19px;
  background: #f7f5f2;
  padding: clamp(19px, 3vw, 40px);
  color-scheme: light;
}

@media print {
  body:has(.biz-masthead) { background: white; }
}

/* One stable, locally hosted street map across public business routes. */
body:has(.business-topbar) { position: relative; isolation: isolate; }
body:has(.business-topbar)::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: url("/maps/oslo-map.svg?v=20261031-cities1") center / cover;
  filter: brightness(0) invert(1); opacity: .10;
}
body:has(.business-topbar) .hmd-city-atlas { display: none; }

html:has(.biz-masthead) { scrollbar-gutter: stable; }
body:has(.biz-masthead) .identity-header.biz-masthead { box-sizing: border-box; }
body:has(.biz-masthead) .identity-header.biz-masthead .wordmark {
  flex-direction: row; align-items: center; line-height: 1; white-space: nowrap;
}

.business-topbar {
  position: fixed;
  inset: 0 0 auto;
  height: var(--business-topbar-height);
  z-index: 80;
  background: #35263a;
  color: #f7f5f2;
}
.business-topbar .business-product-menu {
  display: flex;
  align-items: stretch;
  gap: clamp(4px, 1.2vw, 18px);
  margin: 0 var(--biz-header-inset);
  border-bottom: 1px solid #ffffff30;
}
.business-product-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: clamp(4px, .7vw, 12px);
  color: #ede5ef;
  font: 500 clamp(13px, 1vw, 15px)/1.2 Arial,sans-serif;
  text-decoration: none;
}
.business-product-menu a[aria-current="page"] { color: white; box-shadow: inset 0 -2px #f7f5f2; }
.business-product-menu a:hover { text-decoration: underline; text-underline-offset: 4px; }
html:has(.business-topbar) { scroll-padding-top: 125px; }
@media(max-width:700px){
  .business-topbar .business-product-menu { justify-content: space-between; gap: 0; }
  html:has(.business-topbar) { scroll-padding-top: 112px; }
}


/* Reserve the header before scripts, map loading or fonts can change the page. */
html:has(.business-topbar) { --business-topbar-height: 117px; scroll-padding-top: calc(var(--business-topbar-height) + 20px); }
.business-frame { padding-top: var(--business-topbar-height); }
body:has(.business-topbar) .identity-header.biz-masthead { height:72px; min-height:72px; flex-wrap:nowrap; }
.business-topbar .business-product-menu { height:45px; box-sizing:border-box; }
.business-topbar, .business-topbar * { box-sizing:border-box; }
.business-topbar .biz-masthead-links { font-family:Arial,Helvetica,sans-serif; }
body:has(.business-topbar) .biz-masthead .biz-brand-label { font-family:Arial,Helvetica,sans-serif; }
@media(max-width:700px) {
 html:has(.business-topbar) { --business-topbar-height:105px; }
 body:has(.business-topbar) .identity-header.biz-masthead { height:60px; min-height:60px; }
}

/* The portal shares the same fixed identity row, without a product-menu row. */
html:has(.business-topbar-portal) { --business-topbar-height:72px; }
body:has(.biz-masthead) .identity-header.biz-masthead { height:72px; min-height:72px; flex-wrap:nowrap; }
body:has(.biz-masthead) .biz-masthead .biz-brand-label { font-family:Arial,Helvetica,sans-serif; }
.business-topbar-portal .identity-header.biz-masthead { border-bottom-color:#ffffff30; }
@media(max-width:700px) {
 html:has(.business-topbar-portal) { --business-topbar-height:60px; }
 body:has(.biz-masthead) .identity-header.biz-masthead { height:60px; min-height:60px; }
}
