/* Shared navigation and controls for every public template. */
.home-wrap { width: calc(100% - clamp(48px, 10vw, 192px)); max-width: 1600px; margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0px; margin: -1px; overflow: hidden; clip: rect(0px, 0px, 0px, 0px); white-space: nowrap; border: 0px; }
.skip-link { position: fixed; top: 8px; left: 16px; padding: 12px 20px; z-index: 50; background: white; transform: translateY(-150%); color: var(--home-ink) !important; }
.skip-link:focus { transform: none; }
.arrow-icon { width: 24px; height: 24px; fill: none; stroke: currentcolor; stroke-width: 1.4; flex: 0 0 auto; transition: transform .3s var(--home-ease); }
.home-button { min-height: 52px; display: inline-flex; align-items: center; justify-content: space-between; gap: 42px; padding: 14px 22px; background: var(--home-red); font-size: 14px; transition: background 0.3s, transform 0.3s; color: rgb(255, 255, 255) !important; }
.home-button:hover { background: rgb(168, 29, 41); }
.home-button:hover .arrow-icon { transform: translateX(4px); }
.home-button:active { transform: translateY(1px); }
.text-link { display: inline-flex; align-items: center; gap: 32px; padding-block: 10px; border-bottom: 1px solid; font-size: 14px; transition: color 0.25s; }
.text-link > span { display: inline-block; transition: transform .3s var(--home-ease); }
.text-link:hover { color: var(--home-red); }
.text-link:hover > span { transform: translate(3px, -3px); }
.sme-header { position: fixed; inset: 0px 0px auto; z-index: 30; color: rgb(255, 255, 255); border-bottom: 1px solid rgba(255, 255, 255, 0.14); transition: background 0.35s, color 0.35s, border-color 0.35s; }
.header-inner { height: 92px; display: flex; align-items: center; gap: 30px; transition: height .35s var(--home-ease); }
.brand { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 7px; flex: 0 0 auto; }
.brand img { width: 162px; height: auto; object-fit: contain; }
.primary-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 30px; }
.nav-item { display: flex; align-items: center; position: relative; min-height: 64px; }
.nav-item > a { font-size: 13px; white-space: nowrap; position: relative; padding-block: 14px; transition: color 0.25s; }
.nav-item > a::after { content: ""; position: absolute; bottom: 7px; left: 0px; right: 0px; height: 2px; background: var(--home-red); transform: scaleX(0); transform-origin: left center; transition: transform .3s var(--home-ease); }
.nav-item > a:hover::after, .nav-item > a[aria-current="page"]::after { transform: scaleX(1); }
.submenu-toggle { background: none; border: 0px; padding: 8px 0px 8px 5px; line-height: 0; min-height: 36px; }
.submenu-toggle svg { width: 16px; height: 16px; transition: transform 0.25s; }
.submenu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-submenu { position: absolute; top: 100%; left: -24px; min-width: 210px; background: rgb(248, 247, 244); color: var(--home-ink); box-shadow: rgba(16, 25, 27, 0.125) 0px 15px 35px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 0.2s, transform 0.2s, visibility 0.2s; padding: 14px !important; }
.nav-submenu a { display: block; padding: 11px 12px; font-size: 13px; white-space: nowrap; transition: background 0.2s, color 0.2s; }
.nav-submenu a:hover { background: rgb(234, 233, 228); color: var(--home-red); }
.nav-item.is-open > .nav-submenu { opacity: 1; visibility: visible; transform: none; }
.header-contact { display: flex; align-items: center; gap: 18px; font-size: 12px; border-left: 1px solid rgba(255, 255, 255, 0.22); margin-left: 10px; padding-left: 30px; white-space: nowrap; }
.header-contact:hover .arrow-icon { transform: translateX(4px); }
.menu-toggle { display: none; }
.sme-header.is-scrolled { background: rgb(247, 246, 242); color: var(--home-ink); border-color: rgba(28, 36, 39, 0.125); }
.sme-header.is-scrolled .header-inner { height: 72px; }
.sme-header.is-scrolled .brand-caption { color: rgb(104, 112, 116); }
.sme-header.is-scrolled .header-contact { border-color: rgba(28, 36, 39, 0.19); }
@media (hover: hover) and (min-width: 1024px) {
.has-submenu:is(:hover,:focus-within):not(.is-dismissed)>.nav-submenu { opacity: 1; visibility: visible; transform: none; }
}
@media (max-width: 1200px) and (min-width: 1024px) {
.nav-list { gap: 18px; }
.header-inner { gap: 20px; }
.header-contact { padding-left: 20px; margin-left: 0px; }
.brand img { width: 145px; }
}
@media (max-width: 1023px) {
.header-inner, .sme-header.is-scrolled .header-inner { height: 76px; }
.brand img { width: 146px; }
.header-contact { margin-left: auto; padding-left: 0px; border: 0px; margin-right: 14px; }
.menu-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; width: 44px; height: 44px; padding: 10px; background: none; border: 1px solid rgba(255, 255, 255, 0.25); order: 3; z-index: 2; }
.menu-toggle span { width: 20px; height: 1px; background: currentcolor; transition: transform 0.25s; }
.menu-open .menu-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
.sme-header.is-scrolled .menu-toggle { border-color: rgba(28, 36, 39, 0.25); }
.primary-nav { position: fixed; top: 76px; left: 0px; right: 0px; height: calc(-76px + 100dvh); background: rgb(247, 246, 242); color: var(--home-ink); padding: 30px 5vw 60px; overflow-y: auto; overscroll-behavior: contain; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: visibility 0.25s, opacity 0.25s, transform 0.25s; }
.menu-open { overflow: hidden; }
.menu-open .sme-header { background: rgb(247, 246, 242); color: var(--home-ink); }
.menu-open .brand-caption { color: rgb(104, 112, 116); }
.menu-open .menu-toggle { border-color: rgba(28, 36, 39, 0.25); }
.menu-open .primary-nav { visibility: visible; opacity: 1; transform: none; }
.nav-list { display: block; }
.nav-item { display: flex; flex-wrap: wrap; min-height: 68px; border-bottom: 1px solid rgba(28, 36, 39, 0.11); }
.nav-item > a { padding: 20px 0px; font-size: 20px; flex: 1 1 0%; }
.nav-item > a::after { display: none; }
.nav-item > a[aria-current="page"] { color: var(--home-red); }
.submenu-toggle { padding: 12px; min-height: 44px; min-width: 44px; border: 1px solid rgba(28, 36, 39, 0.11); }
.submenu-toggle svg { width: 20px; height: 20px; }
.nav-submenu { position: static; display: none; flex-basis: 100%; min-width: 0px; background: none; box-shadow: none; transform: none; transition: none; padding: 0px 0px 20px !important; }
.nav-item.is-open > .nav-submenu { display: block; }
.nav-submenu a { padding: 12px 0px; font-size: 15px; }
}
@media (max-width: 600px) {
.home-wrap { width: calc(100% - 40px); }
.header-inner, .sme-header.is-scrolled .header-inner { height: 68px; gap: 16px; }
.brand img { width: 132px; }
.header-contact { font-size: 11px; gap: 7px; margin-right: 0px; }
.header-contact .arrow-icon { width: 17px; }
.menu-toggle { width: 38px; height: 38px; }
.primary-nav { top: 68px; height: calc(-68px + 100dvh); padding: 20px 24px 50px; }
}
@media print {
.sme-header, .menu-toggle { display: none !important; }
}
.sme-header .brand img { background: rgb(243, 242, 238); padding: 7px 9px; width: 178px; }
.sme-header .brand-caption { display: none; }
@media (max-width: 600px) {
.sme-header .brand img { width: 142px; padding: 6px 8px; }
}
/* Component boundary: legacy page styles cannot change shared chrome. */
:root{--home-paper:#f3f2ee;--home-ink:#1c2427;--home-muted:#777c7d;--home-red:#bd2633;--home-dark:#11191d;--home-ease:cubic-bezier(.22,1,.36,1)}
.sme-header,.home-footer{font-family:Arial,"PingFang SC","Microsoft YaHei",sans-serif;line-height:1.65;-webkit-font-smoothing:antialiased}
.sme-header *,.home-footer *{box-sizing:border-box}
.sme-header a,.home-footer a{color:inherit;text-decoration:none}
.sme-header ul,.home-footer ul{list-style:none;margin:0;padding:0}
.sme-header button,.home-footer button{font:inherit;color:inherit;cursor:pointer}
.sme-header img,.home-footer img{display:block;max-width:100%;height:auto}
:where(.sme-header,.home-footer) :where(h1,h2,h3,p){margin:0}
.sme-header{z-index:100}
.sme-header .nav-list{margin:0;padding:0;list-style:none}
.sme-header .brand,.home-footer .brand{display:inline-flex;flex-direction:column;align-items:flex-start;flex:none;gap:7px}
.sme-header .brand img{width:178px;height:auto;background:#f3f2ee;padding:7px 9px}
.sme-header .brand-caption{display:none}
.sme-header .arrow-icon,.home-footer .arrow-icon{fill:none;stroke:currentColor;stroke-width:1.4;width:24px;height:24px}
.sme-header button:focus-visible,.sme-header a:focus-visible,.home-footer a:focus-visible,.home-footer button:focus-visible{outline:2px solid #ce3944;outline-offset:5px}
.sme-site .skip-link{z-index:110}
.site-interior .sme-header:not(.is-scrolled),.site-about .sme-header:not(.is-scrolled){background:#11191d}
.site-header-spacer{height:92px}
.site-about .site-header-spacer{height:60px}
.site-interior .sme-header.is-scrolled,.site-about .sme-header.is-scrolled,.sme-site.menu-open .sme-header{background:#f7f6f2;color:#1c2427}
@media(max-width:1023px){.site-header-spacer{height:76px}.site-about .site-header-spacer{height:60px}}
@media(max-width:600px){.sme-header .brand img{width:142px;padding:6px 8px}.site-header-spacer{height:68px}.site-about .site-header-spacer{height:60px}}
@media(prefers-reduced-motion:reduce){.sme-header,.sme-header *,.home-footer *{transition:none!important;animation:none!important}}
