/* Public-shell header fallback; reading effects remain limited to the explicit
   reading routes. Account and Library body controls and portal stay unchanged. */
body.public-site[data-public-reading="true"] main .reveal {
  opacity: 1;
  transform: none;
}

/* Match the HTML dimensions even before the portrait has decoded. */
body.public-site[data-public-reading="true"] main.public-site-home .hero-art img {
  aspect-ratio: auto 1122 / 1402;
}

@media (prefers-reduced-motion: no-preference) {
  body.public-site[data-public-reading="true"].public-reveal-ready main .reveal:not(.is-visible) {
    opacity: 0;
    transform: translateY(16px);
  }
}

@media (max-width: 1360px) {
  /* Readiness hides the fallback immediately; animate only user-driven changes. */
  body.public-site[data-public-navigation="true"]:not(.public-navigation-interacted) .site-nav {
    transition: none;
  }

  /* Use the same native group disclosures and links when script is unavailable.
     The fallback header scrolls with the document rather than covering it. */
  body.public-site[data-public-navigation="true"]:not(.public-navigation-ready) .site-header {
    position: static;
  }

  body.public-site[data-public-navigation="true"]:not(.public-navigation-ready) .header-inner {
    flex-wrap: wrap;
  }

  body.public-site[data-public-navigation="true"]:not(.public-navigation-ready) .nav-toggle {
    display: none;
  }

  body.public-site[data-public-navigation="true"]:not(.public-navigation-ready) .site-nav {
    position: static;
    inset: auto;
    flex: 1 0 100%;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    padding: .75rem 0 1.25rem;
    gap: .75rem;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
    background: transparent;
    box-shadow: none;
  }
}

@media print {
  body.public-site[data-public-reading="true"] main .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
