/* Header matches 真言密法; all rules are scoped to 易理玄机. */
.yili-landing .site-header{position:absolute;inset:0 0 auto;min-height:104px;background:linear-gradient(180deg,rgba(8,17,15,.72),rgba(8,17,15,.18));border-bottom:1px solid rgba(238,231,215,.18);color:#f4eddf}
.yili-landing .brand{gap:16px}
.yili-landing .brand-logo{display:block;flex:0 0 auto;width:55px;height:auto;object-fit:contain}
.yili-landing .primary-navigation .menu{gap:clamp(22px,3vw,48px)}
.yili-landing .primary-navigation a,.yili-landing .nav-unavailable{font-size:18px;letter-spacing:.18em}
.yili-landing .nav-unavailable{cursor:default}
.yili-landing .primary-navigation a[aria-current="page"]{text-decoration:underline;text-decoration-color:var(--gold);text-underline-offset:10px;text-decoration-thickness:1px}
.yili-landing.admin-bar .site-header{top:32px}
@media(max-width:800px){
.yili-landing .site-header{min-height:88px;gap:16px;background:linear-gradient(180deg,rgba(8,17,15,.8),rgba(8,17,15,.35))}
.yili-landing .brand{gap:12px}
.yili-landing .brand-logo{width:42px}
.yili-landing .brand-chinese{padding-left:12px}
.yili-landing .primary-navigation .menu{grid-template-columns:repeat(4,auto);gap:12px;justify-content:space-between}
.yili-landing .primary-navigation a,.yili-landing .nav-unavailable{font-size:14px;letter-spacing:.1em}
}
@media(max-width:480px){
.yili-landing .site-header{column-gap:12px}
.yili-landing .brand{gap:10px}
.yili-landing .brand-latin{font-size:16px;letter-spacing:.16em}
.yili-landing .brand-chinese{font-size:16px;letter-spacing:.12em;padding-left:10px}
.yili-landing .menu-toggle{padding-inline:10px}
.yili-landing .menu-toggle span{margin-left:8px}
}
@media(max-width:360px){.yili-landing .menu-toggle{padding-inline:6px}.yili-landing .primary-navigation .menu{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Preserve the left window on desktop; focus portrait crops on the central map. */
.yili-hero{position:relative;height:100vh;height:100svh;overflow:hidden;background:#081b30}
.yili-hero-image{display:block;width:100%;height:100%;max-width:none;object-fit:cover;object-position:50% 0%}
.yili-landing.admin-bar .yili-hero{height:calc(100svh - 32px)}
@media(max-width:782px){.yili-landing.admin-bar .site-header{top:46px}.yili-landing.admin-bar .yili-hero{height:calc(100svh - 46px)}}

@media(max-aspect-ratio:1/1){.yili-hero-image{object-position:54% 0%}}
/* On ultrawide screens, protect the upper star chart instead of cropping it centrally. */
@media(min-aspect-ratio:2/1){.yili-hero-image{object-position:50% 0%}}
