/* Localization only: preserve the graphite composition, geometry and existing interactions. */
.header{gap:16px}.header .main-nav{gap:22px;flex:1;justify-content:flex-end}
.language-selector{position:relative;flex:none;z-index:30;font-size:12px}
.language-selector summary{list-style:none;display:flex;align-items:center;gap:8px;min-height:44px;min-width:44px;padding:8px 10px;border:1px solid #59615e;cursor:pointer;color:#e1e5df;background:#171b1b}
.language-selector summary::-webkit-details-marker{display:none}
.language-selector summary svg{flex:none}
.language-selector nav{position:absolute;inset-block-start:calc(100% + 8px);inset-inline-end:0;width:190px;max-width:85vw;max-height:70vh;overflow:auto;background:#171b1b;color:#e1e5df;border:1px solid #59615e;box-shadow:0 16px 35px #0008;padding:6px;display:block!important}
.language-selector ul{list-style:none;margin:0;padding:0}.language-selector a{display:flex!important;align-items:center;min-height:44px;padding:9px 12px;border:1px solid transparent;font-size:14px;text-decoration:none}
.language-selector a[aria-current=true]{border-color:#aebbb1;background:#303a34;font-weight:700}
.language-selector a:hover{background:#303a34;color:#fff}.language-selector :focus-visible{outline:2px solid #edf3dd;outline-offset:2px}
.localized-error{color-scheme:light}.localized-error .language-selector{margin-inline-start:auto}
:lang(ar){font-family:Tahoma,"Geeza Pro","Noto Sans Arabic",Arial,sans-serif;letter-spacing:0!important}
html[lang=ar] h1,html[lang=ar] h2,html[lang=ar] h3{line-height:1.5;letter-spacing:0}
html[lang=ar] .hero h1{font-size:clamp(34px,3.8vw,60px);margin-inline:0}
html[lang=ar] :where(.intro,.panel-copy p,.evidence-panel>p,.video-caption p,.conversation-intro){line-height:1.95}
html[lang=ar] :where(.mono,.eyebrow,.section-label,.panel-keywords,.record-meta,.record-fields span,.evidence-chain button,.callout){font-family:Tahoma,"Geeza Pro",Arial,sans-serif;letter-spacing:0}
html[lang=ar] :where(.state-selector button,.workflow-tabs button,.video-chapters button,.evidence-chain button,figcaption){text-align:start}
html[lang=ar] .button-arrow,html[lang=ar] .chain-arrow{margin-left:0;margin-inline-start:auto}
html[lang=ar] .workflow-tabs button>b{margin-left:0;margin-right:0;margin-inline-start:auto;margin-inline-end:16px}
html[lang=ar] .evidence-chain:before,html[lang=ar] .evidence-chain:after{left:auto;right:5px}
html[lang=ar] .chain-arrow,html[lang=ar] .route-arrow{transform:scaleX(-1)}
html[lang=ar] .state-selector button{border-right:0;border-inline-end:1px solid #3b483f}
html[lang=ar] .state-selector button:last-child{border-inline-end:0}
html[lang=ar] .state-selector button span{margin-right:0;margin-inline-end:10px}
html[lang=ar] .connection-detail{border-left:0;border-inline-start:1px solid #909a84;padding-inline:14px 0}
html[lang=ar] .technical-overlay .callout{direction:rtl;text-align:start}
html[lang=ar] .brand{font-family:Arial,Helvetica,sans-serif}
html[lang=ar] .structure,html[lang=ar] .analysis-visual,html[lang=ar] .workflow-diagram svg,html[lang=ar] .axis{transform:none}
html[lang=ar] .video-chapters button>span,html[lang=ar] .chain-number,html[lang=ar] .panel-number{direction:ltr;unicode-bidi:isolate}
html[lang=ar] .evidence-principle>span,html[lang=ar] .stage-meta>span:last-child{text-align:start}
html[lang=zh-Hans] body{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",Arial,sans-serif;line-break:strict}
html[lang=zh-Hans] :where(h1,h2,h3,p,button,summary,span,figcaption){letter-spacing:0;word-break:normal;overflow-wrap:break-word}
html[lang=zh-Hans] :where(.mono,.eyebrow,.section-label,.panel-keywords,.record-meta,.record-fields span,.evidence-chain button,.callout){font-family:inherit}
html[lang=zh-Hans] h1,html[lang=zh-Hans] h2{line-height:1.3}
/* Allow technical translations to wrap without shrinking them below the approved readable sizes. */
.state-selector button,.video-chapters button,.workflow-tabs button{hyphens:auto}
.connection-tools{height:auto;min-height:44px;flex-wrap:wrap}.figure-top span,.figure-bottom>span{max-width:100%}
.hero h1{hyphens:none}.language-selector[open]{z-index:50}
@media(min-width:761px) and (max-width:1200px){
 .header .main-nav{display:none}.header .mobile-nav{display:block;margin-inline-start:auto}
 .header .mobile-nav summary{display:flex;align-items:center;gap:12px;min-height:44px;cursor:pointer}
 .header .mobile-nav nav{position:absolute;inset-inline:5%;top:90px;background:#171b1b;border:1px solid #59615e;display:flex;flex-direction:column;padding:16px;gap:8px}
 .header .mobile-nav nav a{display:block;min-height:44px;padding:12px}
 .header .language-selector{margin-inline-start:auto}
}
@media(max-width:760px){
 .header{gap:8px}.header .brand span{font-size:25px}.language-selector summary{font-size:12px;padding:8px 6px;gap:5px}.header .mobile-nav{margin-inline-start:auto}
 .header .language-selector{margin-inline-start:auto}.mobile-nav summary{gap:7px}
 html[lang=ar] .hero h1{font-size:clamp(29px,8vw,52px)}
 .workflow-tabs{grid-template-columns:repeat(5,minmax(0,1fr))}.workflow-tabs button{hyphens:auto;line-height:1.5}
 .video-topline{flex-wrap:wrap;gap:8px}.video-topline>span:last-child{max-width:none}
 .poster-play-copy{max-width:95%;white-space:normal}.connection-detail{max-width:100%}
 .structure figcaption{max-width:100%;text-align:start}.figure-top span{max-width:48%}
}
@media(max-width:350px){.header .brand span{font-size:23px}.header .brand{gap:6px}.language-selector summary{gap:4px}.language-selector summary>span:last-child{display:none}.mobile-nav summary{font-size:11px;gap:5px}}
@media(prefers-reduced-motion:reduce){.language-selector *{scroll-behavior:auto}}
/* A clear focus indicator also survives touch-to-keyboard/programmatic focus transitions. */
.language-selector summary:focus,.language-selector a:focus{outline:2px solid #edf3dd;outline-offset:2px}
html[lang=ar] :where(.connection-tools>span,.figure-top,.figure-bottom,.action-hint,.hero-foot a,.reveal-track,.video-topline){font-family:Tahoma,"Geeza Pro",Arial,sans-serif;font-size:12px}
