/* Shared header design for every public page. */
.site-chrome { background: var(--color-surface); color: var(--color-ink); }
.site-chrome .topbar { min-height: 44px; padding: .65rem 0; background: var(--color-brand-strong); color: #fff; font-family: var(--font-heading); font-size: .84rem; font-weight: 700; }
.site-chrome .top-left, .site-chrome .top-right { display: flex; align-items: center; gap: 1.1rem; }
.site-chrome .top-right { justify-content: flex-end; white-space: nowrap; }
.site-chrome .topbar a { color: #fff; text-decoration: none; }
.site-chrome .navbar { min-height: 96px; padding: .85rem 0; border-bottom: 1px solid var(--color-line); background: linear-gradient(180deg, #fff, #fbfdff) !important; box-shadow: 0 5px 18px rgba(12, 47, 88, .07) !important; }
.site-chrome .navbar-brand { margin-right: 1.35rem; }
.site-chrome .navbar-brand img { width: 148px; height: auto !important; max-height: 64px; object-fit: contain; }
.site-chrome .navbar-nav { align-items: center; gap: .1rem; margin-left: auto !important; margin-right: 0 !important; }
.site-chrome .nav-link { position: relative; padding: .62rem .7rem !important; margin: 0 !important; border-radius: 8px; color: var(--color-ink) !important; font-family: var(--font-heading); font-size: .88rem; font-weight: 700; white-space: nowrap; transition: color .2s ease, background-color .2s ease; }
.site-chrome .nav-link::after { transition: transform .2s ease; }
.site-chrome .nav-link:not(.dropdown-toggle)::before { position: absolute; right: .68rem; bottom: .38rem; left: .68rem; height: 2px; border-radius: 2px; background: var(--color-accent); content: ""; transform: scaleX(0); transform-origin: center; }
.site-chrome .nav-link:hover, .site-chrome .nav-link.show { color: var(--color-accent) !important; background: #f0f6ff; }
.site-chrome .nav-link.active { color: var(--color-accent) !important; background: #edf5ff; }
.site-chrome .nav-link:hover::before, .site-chrome .nav-link.active::before { transform: scaleX(1); }
.site-chrome .dropdown-menu { width: 238px; min-width: 238px !important; max-width: calc(100vw - 32px); margin-top: .45rem !important; padding: .45rem; border: 1px solid var(--color-line); border-radius: var(--radius-sm); box-shadow: var(--shadow-md); }
.site-chrome .dropdown-item { padding: .62rem .72rem; border-radius: 7px; color: var(--color-ink); font-family: var(--font-body); font-size: .88rem; font-weight: 600; }
.site-chrome .navbar .dropdown-menu .dropdown-item:hover, .site-chrome .navbar .dropdown-menu .dropdown-item:focus { background: #edf5ff !important; color: var(--color-accent) !important; }
.site-chrome .navbar .dropdown-menu .dropdown-item:active, .site-chrome .navbar .dropdown-menu .dropdown-item.active { background: var(--color-accent) !important; color: #fff !important; }
.site-chrome .nav-since { position: relative; overflow: hidden; align-items: center; gap: .45rem; margin-left: .9rem; padding: .55rem .75rem; border: 1px solid #cfe1f6; border-radius: 999px; background: #f1f7ff; box-shadow: 0 5px 12px rgba(18, 102, 214, .08); color: var(--color-brand); font-family: var(--font-heading); font-size: .76rem; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.site-chrome .nav-since i { display: grid; width: 1.25rem; height: 1.25rem; place-items: center; border-radius: 50%; background: var(--color-accent); color: #fff; font-size: .62rem; }
.site-chrome .nav-since::after { position: absolute; top: 0; bottom: 0; left: -45%; width: 30%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent); content: ""; transform: skewX(-20deg); }
.site-chrome .nav-since.has-motion { opacity: 0; transform: translateY(-6px) scale(.96); }
.site-chrome .nav-since.is-animated { opacity: 1; transform: translateY(0) scale(1); transition: opacity .35s ease, transform .35s cubic-bezier(.2,.8,.2,1); }
.site-chrome .nav-since.is-animated::after { animation: nav-badge-sheen .8s .25s ease-out both; }
@keyframes nav-badge-sheen { to { left: 125%; } }
@media (prefers-reduced-motion: reduce) { .site-chrome .nav-since::after { display: none; } }
/* Keep page-level container and typography rules out of the shared header. */
body .site-chrome .container { width: 100%; max-width: 1180px; padding-inline: 12px; margin-inline: auto; }
body .site-chrome .navbar .nav-link { font-size: .88rem; font-weight: 700; font-family: var(--font-heading); line-height: 1.5; text-transform: none; letter-spacing: normal; }
body .site-chrome .navbar-brand img { width: 148px; max-height: 64px; }
body .site-chrome .topbar { background: #082e5b; line-height: 1.5; text-transform: none; letter-spacing: normal; border-bottom: 0; }
body .site-chrome .navbar { min-height: 96px; }
@media (max-width: 1199.98px) and (min-width: 992px) {
    body .site-chrome .navbar .nav-link { padding-inline: .45rem !important; font-size: .82rem; }
    body .site-chrome .navbar-brand { margin-right: .8rem; }
    body .site-chrome .navbar-brand img { width: 128px; }
}
@media (max-width: 991.98px) {
    body .site-chrome .topbar { min-height: 40px; font-size: .76rem; }
    body .site-chrome .navbar { min-height: 78px; }
    body .site-chrome .navbar-brand img { width: 128px; max-height: 54px; }
    body .site-chrome .navbar-brand { margin-right: 0; }
    body .site-chrome .navbar-nav { align-items: stretch; gap: 0; margin: .75rem 0 0 !important; }
    body .site-chrome .navbar .nav-link { padding: .7rem .2rem !important; }
    body .site-chrome .nav-link:not(.dropdown-toggle)::before { right: auto; left: .2rem; width: 36px; }
    body .site-chrome .dropdown-menu { width: auto; min-width: 0 !important; margin: 0 !important; }
}
@media (max-width: 767.98px) {
    body .site-chrome .topbar { display: none; }
    body .site-chrome .navbar { min-height: 72px; }
    body .site-chrome .navbar-brand img { width: 118px; max-height: 48px; }
    body .site-chrome .navbar-toggler { border-color: var(--color-line); }
    body .site-chrome .dropdown-menu { border: 0; box-shadow: none; }
}
