/* Keep the cover lettering intact. The photograph already has a reading field
   on its right; use explicit copy columns instead of legacy padding offsets. */
html:root body.portal.dictionary-page .editorial-hero{
 position:relative;isolation:isolate;display:flex!important;flex-direction:column!important;
 justify-content:center!important;align-items:stretch!important;
 height:auto!important;min-height:clamp(560px,46vw,720px)!important;
 padding-block:80px!important;background-color:#2b1308!important;
 background-image:url('/static/xuemo-dictionary-hero-20260826.webp')!important;
 background-size:cover!important;background-position:center!important;box-shadow:none!important;
}

/* Native RTL reading layout: one generous content column, logical borders,
   and script-appropriate leading. Chinese source evidence keeps LTR direction. */
html[dir="rtl"]:root body.portal.dictionary-page{--dictionary-leading:1.95}
html[lang="he"]:root body.portal.dictionary-page{--dictionary-leading:1.8}
html[dir="rtl"]:root body.portal.dictionary-page .editorial-hero h1{
 font-size:clamp(38px,4.6vw,66px)!important;line-height:1.35!important;
 letter-spacing:0!important;word-break:normal;overflow-wrap:normal;
}
html[dir="rtl"]:root body.portal.dictionary-page .editorial-hero p{
 font-family:var(--xm-sans)!important;line-height:var(--dictionary-leading)!important;text-align:right!important;
}
html[dir="rtl"]:root body.portal.dictionary-page .editorial-body{padding-top:48px!important}
html[dir="rtl"]:root body.portal.dictionary-page .editorial-grid{display:block!important}
html[dir="rtl"]:root body.portal.dictionary-page .editorial-aside{
 display:flex!important;gap:8px 24px;flex-wrap:wrap;padding-bottom:24px;margin-bottom:32px;
 border-bottom:1px solid var(--public-line);text-align:right!important;line-height:1.8!important;
}
html[dir="rtl"]:root body.portal.dictionary-page .editorial-aside br{display:none}
html[dir="rtl"]:root body.portal.dictionary-page .dictionary-search-area,
html[dir="rtl"]:root body.portal.dictionary-page .dictionary-project-details{width:100%!important;padding-top:0!important}
html[dir="rtl"]:root body.portal.dictionary-page .dictionary-project-details{margin-top:64px!important}
html[dir="rtl"]:root body.portal.dictionary-page .dictionary-search-brand{
 display:flex!important;flex-direction:column;align-items:flex-start;gap:8px;margin-bottom:28px;
}
html[dir="rtl"]:root body.portal.dictionary-page .dictionary-search-brand>span{
 font-size:clamp(28px,3vw,42px)!important;line-height:1.4!important;letter-spacing:0!important;
}
html[dir="rtl"]:root body.portal.dictionary-page .dictionary-search-brand strong{
 font:400 14px/1.8 var(--xm-sans)!important;letter-spacing:0!important;text-transform:none!important;
}
html[dir="rtl"]:root body.portal.dictionary-page .dictionary-search-label{
 display:block;margin-bottom:8px;color:#fff5e5;font:500 14px/1.8 var(--xm-sans);
}
html[dir="rtl"]:root body.portal.dictionary-page .dictionary-search-row{grid-template-columns:minmax(0,1fr) auto}
html[dir="rtl"]:root body.portal.dictionary-page .dictionary-search-row input{
 min-width:0;font:400 17px/1.7 var(--xm-sans)!important;letter-spacing:0!important;text-align:right;
}
html[dir="rtl"]:root body.portal.dictionary-page .dictionary-search-row button{
 display:flex;align-items:center;justify-content:center;gap:14px;min-width:130px;
 font:600 16px/1.7 var(--xm-sans)!important;letter-spacing:0!important;
}
html[dir="rtl"]:root body.portal.dictionary-page .dictionary-search-help{
 color:#e4ddcf!important;font:400 14px/var(--dictionary-leading) var(--xm-sans)!important;margin:16px 0 0!important;
}
html[dir="rtl"]:root body.portal.dictionary-page .dictionary-project :is(p,h2,h3){
 text-align:right!important;letter-spacing:0!important;word-break:normal;overflow-wrap:break-word;
}
html[dir="rtl"]:root body.portal.dictionary-page .dictionary-project :is(h2,h3){line-height:1.45!important}
html[dir="rtl"]:root body.portal.dictionary-page .dictionary-project h2{font-size:clamp(28px,3vw,38px)!important}
html[dir="rtl"]:root body.portal.dictionary-page .dictionary-project h3{font-size:26px!important}
html[dir="rtl"]:root body.portal.dictionary-page .dictionary-project-details p{
 font:400 16px/var(--dictionary-leading) var(--xm-sans)!important;
}
html[dir="rtl"]:root body.portal.dictionary-page .dictionary-introduction{gap:40px;grid-template-columns:minmax(220px,.65fr) minmax(0,1.35fr);margin-bottom:48px}
html[dir="rtl"]:root body.portal.dictionary-page .dictionary-category-nav a{
 border-right:0;border-inline-end:1px solid var(--public-line);font:500 16px/1.8 var(--xm-sans);gap:10px;text-decoration:none!important;
}
html[dir="rtl"]:root body.portal.dictionary-page .dictionary-category-nav a:last-child{border-inline-end:0}
html[dir="rtl"]:root body.portal.dictionary-page .dictionary-principles section{border-right:0;border-inline-end:1px solid var(--public-line)}
html[dir="rtl"]:root body.portal.dictionary-page .dictionary-principles section:last-child{border-inline-end:0}
html[dir="rtl"]:root body.portal.dictionary-page .dictionary-category-card h3{margin-bottom:20px!important}
html[dir="rtl"]:root body.portal.dictionary-page .dictionary-workflow>div{grid-template-columns:repeat(3,minmax(0,1fr))}
html[dir="rtl"]:root body.portal.dictionary-page .dictionary-workflow>div>span{font:500 15px/1.8 var(--xm-sans);gap:16px}
html[dir="rtl"]:root body.portal.dictionary-page .dictionary-result-heading{flex-wrap:wrap}
html[dir="rtl"]:root body.portal.dictionary-page :is(.dictionary-result-count,.dictionary-result-empty,.dictionary-result-category){
 font:400 14px/1.8 var(--xm-sans)!important;letter-spacing:0!important;text-transform:none!important;
}
html[dir="rtl"]:root body.portal.dictionary-page .dictionary-result-secondary{display:flex;flex-wrap:wrap;gap:4px 12px;font:400 14px/1.8 var(--xm-sans)!important;letter-spacing:0!important}
html[dir="rtl"]:root body.portal.dictionary-page .dictionary-result-summary{font:400 16px/var(--dictionary-leading) var(--xm-sans)!important}
html[dir="rtl"]:root body.portal.dictionary-page .dictionary-result-source{
 border-left:0;border-inline-start:1px solid #b27d288c;padding:0!important;padding-inline-start:16px!important;
 font:400 14px/1.8 var(--xm-sans)!important;
}
html[dir="rtl"]:root body.portal.dictionary-page .dictionary-result-source b{font:500 14px/1.8 var(--xm-sans)!important;letter-spacing:0!important}
html[dir="rtl"]:root body.portal.dictionary-page bdi{unicode-bidi:isolate}
@media(max-width:900px){
 html[dir="rtl"]:root body.portal.dictionary-page .dictionary-introduction{grid-template-columns:1fr;gap:24px}
 html[dir="rtl"]:root body.portal.dictionary-page .dictionary-principles section{border-inline-end:0}
}
@media(max-width:680px){
 html[dir="rtl"]:root body.portal.dictionary-page .editorial-hero h1{font-size:clamp(32px,9vw,42px)!important}
 html[dir="rtl"]:root body.portal.dictionary-page .editorial-body{padding-top:32px!important}
 html[dir="rtl"]:root body.portal.dictionary-page .dictionary-search-row{grid-template-columns:minmax(0,1fr)}
 html[dir="rtl"]:root body.portal.dictionary-page .dictionary-search-row button{width:100%;min-height:52px}
 html[dir="rtl"]:root body.portal.dictionary-page .dictionary-category-nav a{border-inline-end:0}
 html[dir="rtl"]:root body.portal.dictionary-page .dictionary-workflow>div{grid-template-columns:repeat(2,minmax(0,1fr))}
 html[dir="rtl"]:root body.portal.dictionary-page .dictionary-project-details{margin-top:48px!important}
}
html:root body.portal.dictionary-page .editorial-hero::before{content:none!important;display:none!important}
html:root body.portal.dictionary-page .editorial-hero::after{
 content:""!important;display:block!important;position:absolute!important;inset:0!important;
 z-index:-1!important;opacity:1!important;pointer-events:none;transform:none!important;
 background:linear-gradient(90deg,transparent 32%,rgba(27,12,4,.12) 48%,rgba(27,12,4,.54) 100%)!important;
}
html:root body.portal.dictionary-page .editorial-hero>:is(h1,p,.editorial-kicker){
 width:47%!important;max-width:600px!important;margin-left:auto!important;margin-right:0!important;
 text-align:start!important;color:#fff5e5!important;text-shadow:0 1px 5px rgba(25,10,2,.28)!important;
}
html:root body.portal.dictionary-page .editorial-hero .editorial-kicker{color:#f3d59f!important}
@media(max-width:1000px){
 html:root body.portal.dictionary-page .editorial-hero{
  --dictionary-art-height:clamp(280px,48vw,400px);
  display:block!important;min-height:0!important;
  padding-top:48px!important;padding-bottom:calc(var(--dictionary-art-height) + 36px)!important;
  background-image:none!important;
 }
 html:root body.portal.dictionary-page .editorial-hero::before{
  content:""!important;display:block!important;position:absolute!important;
  inset:auto 0 0!important;width:100%!important;height:var(--dictionary-art-height)!important;
  z-index:-1!important;opacity:1!important;pointer-events:none;transform:none!important;
  background:url('/static/xuemo-dictionary-hero-20260826.webp') left bottom/cover no-repeat!important;
  mask-image:linear-gradient(to bottom,transparent,#000 16%);
 }
 html:root body.portal.dictionary-page .editorial-hero::after{content:none!important;display:none!important}
 html:root body.portal.dictionary-page .editorial-hero>:is(h1,p,.editorial-kicker){width:100%!important;max-width:700px!important}
}
