/* Homepage editorial banner. Scoped independently from utility and reading pages. */
.mj-home .hb{--hb-navy:#052b61;--hb-paper:#f4f1ea;--hb-accent:#c41543;position:relative;background:var(--hb-navy);color:#fff}
.mj-home .hb *{box-sizing:border-box}
.mj-home .hb-stage{position:relative}
.mj-home .hb-slide{position:relative;overflow:hidden;min-height:540px}
.mj-home .hb-slide[hidden]{display:none!important}
.mj-home .hb-slide.is-active .hb-copy,.mj-home .hb-slide.is-active .hb-plan,.mj-home .hb-slide.is-active .hb-library{animation:hb-arrive .45s ease both}
.mj-home .hb-inner{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:72px;align-items:center;min-height:540px;padding-top:60px;padding-bottom:60px}
.mj-home .hb-inner,.mj-home .hb-navigation-inner{padding-left:0;padding-right:0}
.mj-home .hb-copy{position:relative;z-index:2;min-width:0;max-width:560px}
.mj-home .hb-kicker{display:flex;align-items:center;gap:12px;margin:0 0 26px;font:500 14px/1.6 var(--mj-font-sans);letter-spacing:.04em;color:#d5e0ef}
.mj-home .hb-kicker::before{content:'';display:block;width:24px;height:3px;background:#dc3c63;flex-shrink:0}
.mj-home .hb h1,.mj-home .hb h2{margin:0;font:500 clamp(36px,3.1vw,54px)/1.32 var(--mj-font-head);letter-spacing:-.02em;color:inherit;text-wrap:balance}
.mj-home .hb h1 .nav-en,.mj-home .hb h2 .nav-en{font-family:var(--mj-font-sans);font-size:.82em;font-weight:500;line-height:1.18;letter-spacing:-.025em}
.mj-home .hb-description{max-width:34em;margin:26px 0 0;font:400 17px/1.9 var(--mj-font-sans);color:#e1e8f3}
.mj-home .hb-categories{display:flex;align-items:center;gap:15px;margin:20px 0 0;font:500 16px/1.6 var(--mj-font-num);letter-spacing:.04em;color:#fff}
.mj-home .hb-categories span{color:#8299bc;font-size:14px}
.mj-home .hb-actions{display:flex;align-items:center;flex-wrap:wrap;gap:26px;margin-top:32px}
.mj-home .hb-actions a{display:inline-flex;flex:0 0 auto;max-width:100%;white-space:nowrap;justify-content:space-between;align-items:center;gap:28px;min-height:48px;font:500 16px/1.5 var(--mj-font-sans);text-decoration:none;border-radius:4px;transition:background-color .2s,color .2s}
.mj-home .hb-primary{padding:12px 22px;background:var(--hb-accent);color:#fff;border:1px solid transparent}
.mj-home .hb-primary:hover{background:#a90d36;color:#fff}
.mj-home .hb-text-link{padding:10px 12px;color:inherit;border:1px solid transparent}
.mj-home .hb-text-link:hover{background:#ffffff16;color:inherit}
.mj-home .hb-photo{position:absolute;inset:0 0 0 47%;background:#e7e3dc}
.mj-home .hb-photo img{width:100%;height:100%;object-fit:cover;object-position:62% 50%;display:block}
.mj-home .hb-photo::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#052b61 0%,#052b61cc 6%,#052b6140 22%,transparent 40%),linear-gradient(0deg,#0a1e3b70,transparent 34%)}
.mj-home .hb-photo-caption{position:absolute;right:0;bottom:28px;display:flex;align-items:center;gap:24px;color:#fff;font:400 14px/1.7 var(--mj-font-sans);text-decoration:none;padding:7px 12px;background:#102a46ba;border:1px solid #ffffff40}
.mj-home .hb-photo-caption:hover{color:#fff;background:#102a46}
.mj-home .hb-slide--planning{background:var(--hb-paper);color:#132e55}
.mj-home .hb-slide--planning .hb-kicker,.mj-home .hb-slide--library .hb-kicker{color:#52627b}
.mj-home .hb-slide--planning .hb-description,.mj-home .hb-slide--library .hb-description{color:#46566d}
.mj-home .hb-slide--planning .hb-text-link:hover,.mj-home .hb-slide--library .hb-text-link:hover{background:#052b610b}
.mj-home .hb-plan{position:relative;max-width:520px;padding:28px 34px 24px;background:#fff;border-top:4px solid #052b61;box-shadow:14px 16px 0 #e5e0d5}
.mj-home .hb-plan-heading{display:flex;justify-content:space-between;gap:20px;padding:0 0 16px;color:#52627b;font:500 15px/1.6 var(--mj-font-sans)}
.mj-home .hb-plan-row{display:flex;align-items:center;gap:24px;position:relative;border-top:1px solid #dce1e8;padding:17px 0}
.mj-home .hb-plan-number{flex:0 0 auto;color:#60738d;font:400 14px/1.6 var(--mj-font-num)}
.mj-home .hb-plan-label{display:block;font:400 14px/1.6 var(--mj-font-sans);color:#536277}
.mj-home .hb-plan-row strong{display:block;margin-top:3px;font:500 34px/1.15 var(--mj-font-num);letter-spacing:-.02em;color:#052b61}
.mj-home .hb-plan-row strong.nav-zh,.mj-home .hb-plan-row strong.nav-en{font:500 23px/1.5 var(--mj-font-sans)}
.mj-home .hb-plan-note{max-width:10em;margin-left:auto;font:400 14px/1.7 var(--mj-font-sans);color:#46566d;text-align:right}
.mj-home .hb-plan-foot{margin:6px 0 0;font:400 14px/1.7 var(--mj-font-sans);color:#596575}
.mj-home .hb-slide--library{background:#eaf0f6;color:#102d55}
.mj-home .hb-library{width:100%;max-width:520px;box-shadow:12px 16px 0 #d6e1ed;background:#fff;border:1px solid #c6d3e2}
.mj-home .hb-library-header{display:flex;justify-content:space-between;align-items:center;padding:20px 28px;border-bottom:1px solid #dce4ed;font:500 15px/1.6 var(--mj-font-sans);color:#50637b}
.mj-home .hb-library-header svg{width:22px;height:22px;fill:none;stroke:#4a6384;stroke-width:1.5}
.mj-home .hb-reference{display:block;padding:24px 28px;color:#052b61;text-decoration:none;border-bottom:1px solid #dce4ed;transition:background-color .2s}
.mj-home .hb-reference:hover{color:#052b61;background:#f5f8fc}
.mj-home .hb-reference-type{display:block;margin-bottom:8px;font:500 14px/1.6 var(--mj-font-num);letter-spacing:.06em;color:#5b6e87}
.mj-home .hb-reference strong{display:block;font:500 32px/1.3 var(--mj-font-num);letter-spacing:-.02em}
.mj-home .hb-reference-name{display:flex;justify-content:space-between;gap:16px;margin-top:10px;font:400 16px/1.6 var(--mj-font-sans);color:#3d526e}
.mj-home .hb-library-footer{display:flex;flex-wrap:wrap;gap:12px;padding:16px 28px;color:#52627b;font:400 14px/1.6 var(--mj-font-sans)}
.mj-home .hb-navigation{background:#fff;border-bottom:1px solid #dde3eb;color:#183555}
.mj-home .hb-navigation-inner{display:grid;grid-template-columns:minmax(0,1fr) 176px;gap:40px;align-items:stretch}
.mj-home .hb-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px}
.mj-home .hb-tabs button{position:relative;display:flex;align-items:center;gap:15px;min-width:0;padding:23px 0 22px;border:0;background:none;color:#67758b;text-align:left;font-family:var(--mj-font-sans);cursor:pointer}
.mj-home .hb-tabs button::before{position:absolute;top:0;left:0;right:0;height:3px;background:transparent;content:''}
.mj-home .hb-tabs button[aria-pressed=true]::before{background:#bf123e}
.mj-home .hb-tabs button[aria-pressed=true],.mj-home .hb-tabs button:hover{color:#052b61}
.mj-home .hb-tab-index{font:400 16px/1.5 var(--mj-font-num);color:#7d8da3}
.mj-home .hb-tabs button[aria-pressed=true] .hb-tab-index{color:#bc153e}
.mj-home .hb-tabs strong{display:block;font-size:16px;font-weight:600;line-height:1.6}
.mj-home .hb-tabs small{display:block;margin-top:4px;font-size:14px;line-height:1.5;color:#5c6d83}
.mj-home .hb-controls{align-self:center;display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.mj-home .hb-count{font:400 14px/1.3 var(--mj-font-num);color:#5c6d83;letter-spacing:.1em}
.mj-home .hb-arrows{display:flex;align-items:center;gap:4px}
.mj-home .hb-arrows button{display:grid;place-items:center;min-width:36px;min-height:36px;border:1px solid #d3dce7;background:#fff;color:#183555;font-size:19px;cursor:pointer;border-radius:3px}
.mj-home .hb-arrows button:hover{border-color:#61799b;background:#f3f6fa}
.mj-home .hb-arrows [data-banner-pause]{padding:0 10px;white-space:nowrap;font:500 14px/1.4 var(--mj-font-sans)}
.mj-home .hb-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@keyframes hb-arrive{from{opacity:.4;transform:translateY(10px)}to{opacity:1;transform:none}}
@media(min-width:1800px){.mj-home .hb-inner,.mj-home .hb-slide{min-height:600px}.mj-home .hb-inner{gap:92px}.mj-home .hb h1,.mj-home .hb h2{font-size:58px}}
@media(max-width:1100px){.mj-home .hb-inner{gap:38px;min-height:520px;padding-top:48px;padding-bottom:48px}.mj-home .hb-slide{min-height:520px}.mj-home .hb-photo{left:43%}.mj-home .hb-photo::after{background:linear-gradient(90deg,#052b61 0%,#052b61d9 12%,#052b6140 45%,transparent 75%),linear-gradient(0deg,#0a1e3b70,transparent 35%)}.mj-home .hb-copy{min-width:0}.mj-home .hb-description{font-size:16px}.mj-home .hb h1,.mj-home .hb h2{font-size:38px}.mj-home .hb-plan{padding:22px}.mj-home .hb-plan-row{gap:16px}.mj-home .hb-plan-note{font-size:14px;max-width:7em}.mj-home .hb-navigation-inner{grid-template-columns:minmax(0,1fr) 168px;gap:20px}.mj-home .hb-tabs{gap:20px}.mj-home .hb-tabs button{gap:10px}.mj-home .hb-tabs small{font-size:14px}.mj-home .hb-reference strong{font-size:28px}.mj-home .hb-photo-caption{right:0}}
@media(max-width:760px){.mj-home .hb{display:flex;flex-direction:column}.mj-home .hb-stage{order:2}.mj-home .hb-navigation{order:1}.mj-home .hb-slide,.mj-home .hb-inner{min-height:0}.mj-home .hb-inner{grid-template-columns:1fr;gap:28px;padding-top:40px;padding-bottom:32px}.mj-home .hb-copy{max-width:100%}.mj-home .hb h1,.mj-home .hb h2{font-size:36px;line-height:1.35}.mj-home .hb-kicker{font-size:14px;margin-bottom:20px}.mj-home .hb-description{font-size:16px;margin-top:20px;line-height:1.8}.mj-home .hb-actions{gap:20px;margin-top:24px}.mj-home .hb-actions a{font-size:15px;gap:14px}.mj-home .hb-photo{position:relative;inset:auto;height:220px;order:2}.mj-home .hb-photo img{object-position:center 46%}.mj-home .hb-photo::after{background:linear-gradient(0deg,#052b6199,transparent 60%)}.mj-home .hb-slide--brand{display:flex;flex-direction:column}.mj-home .hb-slide--brand .hb-inner{order:1;padding-bottom:32px;width:var(--mj-container)}.mj-home .hb-photo-caption{top:auto;bottom:-203px;left:0;right:auto;max-width:100%;font-size:14px;z-index:2}.mj-home .hb-plan,.mj-home .hb-library{max-width:none;box-shadow:6px 8px 0 #052b6110}.mj-home .hb-plan{padding:18px 22px}.mj-home .hb-plan-row{padding:12px 0}.mj-home .hb-plan-foot{font-size:14px}.mj-home .hb-library-header{padding:16px 22px}.mj-home .hb-reference{padding:18px 22px}.mj-home .hb-reference strong{font-size:27px}.mj-home .hb-library-footer{display:none}.mj-home .hb-navigation-inner{display:flex;flex-direction:column;gap:0}.mj-home .hb-tabs{gap:18px}.mj-home .hb-tabs button{display:block;padding:16px 0}.mj-home .hb-tab-index{display:block;font-size:14px;margin-bottom:4px}.mj-home .hb-tabs strong{font-size:14px;line-height:1.5}.mj-home .hb-tabs small{display:none!important}.mj-home .hb-controls{width:100%;flex-direction:row;justify-content:space-between;padding:0 0 14px;align-items:center}.mj-home .hb-count{font-size:14px}.mj-home .hb-arrows button{min-width:40px;min-height:36px}.mj-home .hb-categories{font-size:14px;margin-top:16px}.mj-home .hb-desktop-break{display:none}}
@media(prefers-reduced-motion:reduce){.mj-home .hb-slide.is-active .hb-copy,.mj-home .hb-slide.is-active .hb-plan,.mj-home .hb-slide.is-active .hb-library{animation:none}.mj-home .hb *{transition:none!important}}

/* Keep translated text inside its own flex/grid track. */
.mj-home .hb-plan-row > div,.mj-home .hb-tabs button > span:last-child{min-width:0}
.mj-home .hb-library-header svg{flex-shrink:0}
