/* Shared public navigation. Component classes keep page styles independent. */
.public-header {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem 0;
    color: #475569;
}
.public-header .public-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.public-header .public-brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: #1e293b; text-decoration: none; }
.public-header .public-brand img { flex-shrink: 0; width: 32px; height: 32px; object-fit: contain; }
.public-header .public-brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.public-header .public-brand-name { font-size: 1rem; font-weight: 700; overflow-wrap: anywhere; }
.public-header .public-brand-tagline { margin-top: 3px; color: #64748b; font-size: 0.6rem; font-weight: 300; letter-spacing: 1.5px; text-transform: uppercase; }
.public-header .public-navigation { justify-content: flex-end; gap: 1.5rem; }
.public-header .public-menu, .public-header .public-account-menu { align-items: center; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.public-header .public-header-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0.5rem 0.75rem; border: 0; border-radius: 8px; background: transparent; color: #475569; font-size: 0.875rem; font-weight: 500; line-height: 1.4; text-decoration: none; }
.public-header .public-header-link:hover, .public-header .public-header-link[aria-current] { color: #2563eb; background: #eff6ff; }
.public-header .public-header-register { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0.5rem 1rem; border: 1px solid #3b82f6; border-radius: 999px; color: #2563eb; background: #fff; font-size: 0.875rem; line-height: 1.4; text-decoration: none; }
.public-header .public-header-register:hover { color: #fff; background: #3b82f6; }
.public-header .public-menu-toggle { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 1px solid #e2e8f0; border-radius: 10px; color: #475569; }
.public-header .public-account-toggle { max-width: 240px; overflow-wrap: anywhere; text-align: left; }
.public-header .dropdown-menu { border: 1px solid #e2e8f0; border-radius: 12px; padding: 0.5rem; box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1); font-size: 0.875rem; }
.public-header a:focus-visible, .public-header button:focus-visible, .public-footer a:focus-visible { outline: 3px solid #93c5fd; outline-offset: 3px; box-shadow: none; }
.public-footer { margin-top: 1rem; border-top: 1px solid #e2e8f0; color: #64748b; }
.public-footer .public-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-top: 1.5rem; padding-bottom: 1.5rem; }
.public-footer .public-copyright { flex: 0 1 400px; margin: 0; font-size: 0.8rem; line-height: 1.6; }
.public-footer .public-footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.5rem 1rem; font-size: 0.8rem; line-height: 1.6; }
.public-footer .public-footer-links a { color: #64748b; text-decoration: none; }
.public-footer .public-footer-links a:hover, .public-footer .public-footer-links a[aria-current] { color: #2563eb; }
@media (min-width: 992px) {
    .public-header .public-menu-toggle { display: none; }
}
@media (max-width: 991.98px) {
    .public-header .public-navigation { padding-top: 0.75rem; }
    .public-header .public-menu, .public-header .public-account-menu { align-items: stretch; gap: 0.25rem; }
    .public-header .public-header-link { width: 100%; }
    .public-header .public-account-menu { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid #e2e8f0; }
    .public-header .public-header-register { margin: 0.25rem 0 0.5rem 0.75rem; }
    .public-header .public-account-toggle { max-width: 100%; }
    .public-footer .public-footer-inner { flex-direction: column; text-align: center; }
    .public-footer .public-copyright { flex: auto; }
    .public-footer .public-footer-links { justify-content: center; }
}

/* Keep wide editorial gutters within the container on narrow public pages. */
@media (max-width: 575.98px) {
    .public-page .legal-content > .row { --bs-gutter-x: 1.5rem; }
}
