/* DOMWILL: scoped glass, primary actions and home composition. */
body #header[data-surface="light"] {
  --glass-ink:#24392f;
  --glass-surface:rgba(248,251,248,.14);
  --glass-selected:rgba(255,255,255,.32);
  --glass-line:rgba(38,61,48,.16);
  --glass-shadow:rgba(20,38,27,.08);
}
body #header[data-surface="dark"] {
  --glass-ink:#f7faf4;
  --glass-surface:rgba(239,249,240,.07);
  --glass-selected:rgba(244,252,243,.18);
  --glass-line:rgba(242,250,239,.28);
  --glass-shadow:rgba(5,21,13,.17);
}
body #header::before,
body.business-theme #header::before {
  background:linear-gradient(180deg,rgba(245,250,245,.12),rgba(245,250,245,.025) 70%,transparent);
  backdrop-filter:blur(16px) saturate(135%);
  -webkit-backdrop-filter:blur(16px) saturate(135%);
}
body #header[data-surface="dark"]::before {
  background:linear-gradient(180deg,rgba(14,39,26,.12),rgba(14,39,26,.025) 70%,transparent);
}
body #header[data-surface] .desktop-nav>a,
body #header[data-surface] .account-link,
body #header[data-surface] .lang summary,
body #header[data-surface] .audience-nav a {color:var(--glass-ink)}
body #header[data-surface="dark"] .brand img {filter:brightness(0) invert(1) drop-shadow(0 1px 2px rgba(0,0,0,.45))}
body #header[data-surface="light"] .brand img {filter:none}
body #header .audience-nav,
body #header .account-link,
body #header .lang summary {box-shadow:inset 0 1px rgba(255,255,255,.22),0 4px 14px var(--glass-shadow)}
body #header .audience-nav a[aria-current="page"] {box-shadow:inset 0 0 0 1px rgba(255,255,255,.28),0 2px 6px var(--glass-shadow)}
body.life-ads-preview #main :is(.life-story-copy,.business-launch-board,.ads-team-contact,.ads-cost-actions)>.ads-primary,
body.business-theme #main :is(.life-story-copy,.business-launch-board,.ads-team-contact)>.ads-primary {
  min-width:230px;
  min-height:60px;
  padding:16px 26px;
  font-size:17px;
  line-height:1.4;
  box-sizing:border-box;
}
body.life-ads-preview #main .life-story-copy>p {max-width:50ch;line-height:1.65}
@media(min-width:701px) {
  body.life-ads-preview .ads-investment-intro {
    display:block;
    position:relative;
    box-sizing:border-box;
    max-width:none;
    width:100%;
    min-height:330px;
    padding-right:38%;
  }
  body.life-ads-preview .ads-investment-intro>:is(h2,p) {max-width:66ch}
  body.life-ads-preview .ads-investment-intro h2 {margin-bottom:26px}
  body.life-ads-preview .ads-investment-intro>p {margin:0}
  body.life-ads-preview .ads-investment-intro .ads-investment-next {margin-top:18px}
  body.life-ads-preview .ads-investment-intro .ads-investment-keys {
    position:absolute;
    left:auto;
    right:1%;
    top:50%;
    translate:0 -50%;
    width:clamp(260px,24vw,340px);
    height:auto;
    aspect-ratio:1;
    max-width:32%;
    margin:0;
  }
}
@media(min-width:701px) and (max-width:980px) {
  body.life-ads-preview:not(.projects-preview) #main .life-story-layout {
    width:calc(100% - 64px);
    grid-template-columns:minmax(0,1fr);
    gap:32px;
  }
  body.life-ads-preview:not(.projects-preview) #main .life-story-layout .life-story-copy {margin-top:0;max-width:680px}
  body.life-ads-preview:not(.projects-preview) #main .life-story-gallery {height:540px;max-height:72svh}
}
@media(max-width:700px) {
  body #header .audience-nav a {min-height:44px}
  body.life-ads-preview #main .life-story-copy>.ads-primary {min-height:56px;min-width:230px;font-size:17px;padding:14px 24px}
  body.life-ads-preview #mobile-dock.ads-liquid-dock,
  body.life-ads-preview #mobile-dock.ads-liquid-dock.on-dark {
    background:rgba(247,251,246,.16);
    color:#243b2f;
    border-color:rgba(43,67,51,.22);
    box-shadow:inset 0 1px rgba(255,255,255,.4),0 8px 24px rgba(14,31,21,.16);
  }
  body.life-ads-preview #mobile-dock.ads-liquid-dock[data-surface="dark"] {
    background:rgba(230,247,233,.08);
    color:#f6faf1;
    border-color:rgba(240,250,237,.32);
    box-shadow:inset 0 1px rgba(255,255,255,.22),0 8px 24px rgba(5,20,11,.2);
  }
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
  body #header[data-surface="light"] {--glass-surface:rgba(241,245,237,.92);--glass-selected:#fff}
  body #header[data-surface="dark"] {--glass-surface:rgba(25,53,37,.92);--glass-selected:rgba(248,252,240,.2)}
}
@media(prefers-reduced-transparency:reduce) {
  body #header[data-surface="light"] {--glass-surface:#f1f4ed;--glass-selected:#fff}
  body #header[data-surface="dark"] {--glass-surface:#193525;--glass-selected:#385440}
}
@media(min-width:701px) and (max-width:1150px) {
  body #header .menu {display:block;position:relative;border:0;flex:none}
  body #header .menu summary {min-width:62px;min-height:44px;color:var(--glass-ink)}
  body #header .menu summary::after {display:none}
  body #header .menu nav {
    position:absolute;
    top:calc(100% + 12px);
    right:0;
    left:auto;
    width:320px;
    max-width:calc(100vw - 48px);
    max-height:calc(100svh - 112px);
    overflow-y:auto;
    padding:20px;
    color:#24392f;
  }
  body #header .menu nav a {display:flex;align-items:center;min-height:44px;font-size:16px}
  body #header .menu .menu-group {display:grid;gap:2px;margin-bottom:16px}
  body #header .menu .menu-group-label {font-size:13px;line-height:1.5;opacity:.7}
  body.business-theme #header .menu nav {color:#f7faf4}
}
