/* Public informational heroes only; authenticated dashboards keep their hierarchy. */
h1.public-hero-title {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.025em;
  color: #0f172a;
  margin: 0 auto;
  max-width: 54rem;
  overflow-wrap: anywhere;
}

p.public-hero-description {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: normal;
  color: #475569;
  max-width: 46rem;
  margin: 1rem auto 0;
  overflow-wrap: anywhere;
}

.public-hero-title--home .pd-headline-main {
  display: block;
  font-size: inherit;
}

.public-hero-title--home .pd-headline-next {
  display: block;
  font-size: clamp(1.75rem, 3.6vw, 2.25rem);
}

/* The homepage's guest header behavior belongs on every public page. */
@media (max-width: 768px) {
  .role-guest .site-header .site-wrap { flex-wrap: wrap; gap: 8px; }
  .role-guest .site-header .header-right { margin-left: auto; }
  .role-guest .site-header .auth .btn { white-space: nowrap; min-height: 44px; }
  .role-guest .site-header .nav-toggle { min-width: 44px; min-height: 44px; }
}

@media (max-width: 920px) {
  .role-guest footer.footer .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .role-guest footer.footer > .site-container > * { min-width: 0; }
}
