/* Keep the original network and theme backgrounds from styles.css and the colour designs. */
@media screen {
:root { --atmosphere-hue:210; --atmosphere-secondary:176; }
html[data-color-design="rose"] { --atmosphere-hue:330; --atmosphere-secondary:28; }
html[data-color-design="sage"] { --atmosphere-hue:145; --atmosphere-secondary:82; }
html[data-color-design="clay"] { --atmosphere-hue:27; --atmosphere-secondary:46; }


html .public-nav { background:rgba(252,254,255,.87); border-bottom:1px solid #cbd9e54d; box-shadow:0 1px 0 #fff8; backdrop-filter:blur(18px); }


.entrance-light { position:fixed; inset:-15%; pointer-events:none; z-index:100; background:radial-gradient(ellipse 32% 65% at 30% 35%,hsl(var(--atmosphere-hue) 90% 85% / .15),transparent 75%),linear-gradient(115deg,transparent 20%,#ffffff10 48%,transparent 65%); }
}
@media(prefers-reduced-motion:reduce) { .entrance-light { display:none; } }

/* The one-time controller replaces the old reveal-on-every-navigation effects. */
@media screen {
  html[data-entrance-state] [data-entrance-pending] { opacity:0 !important; pointer-events:none; }
}
html[data-entrance-state] .home-locked :is(.public-hero,.public-section,.public-ending),
html[data-entrance-state] .home-locked .public-site .landing-motion-item {
  opacity:1; transform:none; transition:none; animation:none;
}

/* Every theme paints the landing gradient once on .public-site. */
@media screen {
  html[data-color-design] .public-site > :is(.public-hero, .public-section, .public-ending) {
    background: transparent;
  }
  html[data-color-design] .public-final-cta :is(h2, p, strong, .insight-school-name-insight) {
    color: var(--home-logo-ink) !important;
  }
  html[data-color-design] .public-final-cta .insight-school-name-school {
    -webkit-text-stroke-color: var(--home-logo-blue-deep);
  }
  html[data-color-design] .public-final-cta::before { content: none; }
}

/* Registration exposes the public entry point; account tools appear after login. */
.registration-home-link { display: none; }
.profile-registration-mode .registration-home-link { display: inline-flex; }
.profile-registration-mode :is(.global-nav, .permanent-nav-toggle, .header-account-controls, .profile-page-tabs, #privacyTabPanel, #designTabPanel) {
  display: none !important;
}
.public-registration-notice {
  width: min(1180px, calc(100% - 40px));
  box-sizing: border-box;
  margin: 18px auto 0;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-strong);
  color: var(--ink);
}

/* Keep the page still while the privacy key is entered. The dialog remains
   usable on small screens, including when the on-screen keyboard is open. */
html:has(.identity-key-dialog[open]),
body:has(.identity-key-dialog[open]) {
  overflow: hidden;
  overscroll-behavior: none;
}
.identity-key-dialog { overscroll-behavior: contain; }
