.hero-world:has(.admin-profile),.tree-mast:has(.admin-profile){overflow:visible;z-index:5}
.site-nav:has(.admin-profile)>.site-contact{display:none}
.admin-profile{position:relative;flex:none;margin-inline-start:auto;color:var(--ink);font:400 .9rem/1.6 var(--f-ui);z-index:20}
.admin-profile>summary{display:flex;align-items:center;gap:9px;list-style:none;cursor:pointer;color:#f0ead7;border:1px solid #bca16a80;border-radius:99px;padding:5px 12px 5px 5px;min-height:52px;user-select:none}
.admin-profile>summary::-webkit-details-marker{display:none}.admin-profile>summary:hover,.admin-profile[open]>summary{border-color:#e0c287;background:#ffffff0a}.profile-avatar{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#e7d9b9;color:#183b2e;border:1px solid #f8eed7;font:1.35rem var(--f-display)}
.profile-options{position:absolute;inset-inline-end:0;top:calc(100% + 12px);width:min(330px,calc(100vw - 36px));border:1px solid var(--line);border-radius:16px;background:var(--paper);color:var(--ink);box-shadow:0 18px 54px #0003;max-height:calc(100dvh - 120px);overflow:auto;overscroll-behavior:contain;text-align:start}
.profile-options>header{display:grid;gap:5px;padding:20px;border-bottom:1px solid var(--line)}.profile-eyebrow{font-size:.75rem;color:var(--muted)}.profile-options strong{font:1.3rem/1.5 var(--f-display)}.profile-email{font:400 .85rem/1.7 var(--f-ui);text-align:start;overflow-wrap:anywhere}.profile-security-status{font-size:.75rem;color:var(--muted);margin-top:5px}.profile-security-status:before{content:'';display:inline-block;width:6px;height:6px;background:var(--gold);border-radius:50%;margin-inline-end:7px}
.profile-menu-actions,.profile-menu-exit{display:grid;padding:7px}.profile-menu-exit{border-top:1px solid var(--line)}.profile-options .button{width:100%;text-align:start;background:transparent;color:var(--ink);border:0;border-radius:8px;padding:11px 13px;font:400 .875rem/1.7 var(--f-ui);min-height:46px;margin:0;white-space:normal}.profile-options .button:hover,.profile-options .button:focus-visible{background:var(--bg)}.profile-menu-exit .button{color:#a24a36}
:root[data-theme=dark] .profile-menu-exit .button{color:#efb49f}
@media(max-width:700px){.profile-button-label{display:none}.admin-profile>summary{padding:4px;gap:4px;border-radius:50%;width:52px;height:52px;justify-content:center}.admin-profile>summary>svg{display:none}.profile-options{width:min(320px,calc(100vw - 36px))}.admin-profile .profile-avatar{width:40px;height:40px}}

.profile-options .button{display:block;box-sizing:border-box;text-decoration:none;cursor:pointer}
.admin-profile summary:focus-visible,.profile-options .button:focus-visible{outline:2px solid var(--gold,#b79b60);outline-offset:3px}
.site-arrow{width:1.05em;height:1.05em;display:inline-block;vertical-align:-.12em;flex:none;color:inherit}
.site-contact .site-arrow{margin-inline-start:.3em}
.profile-options{--paper:#fffcf4;--ink:#12352d;--muted:#6f7568;--line:#ded9c8;--bg:#f0eddf}
:root[data-theme=dark] .profile-options{--paper:#142c25;--ink:#eee8d5;--muted:#b8bcad;--line:#51604d;--bg:#213b31}

/* Keep the open account menu above page search and sticky toolbars. */
.site-header:has(#admin-profile[open]),.hero-world:has(#admin-profile[open]),.tree-mast:has(#admin-profile[open]){position:relative;z-index:60;overflow:visible}

/* /tree only: kinship uses the existing site tokens and ancestor components. */
.lux-tree .bar.rel-mode{position:relative;top:auto;margin-bottom:0}
.lux-tree .bar.rel-mode>.search,.lux-tree .rel-mode~.workspace-heading{display:none}
.lux-tree .rel-mode~.tree-admin-entry{display:none}
.lux-tree .rel-panel{color:var(--ink);padding-block:24px 48px;scroll-margin-top:20px}
.lux-tree .rel-panel :is(button,input),.lux-tree .rel-person{box-shadow:none;background-image:none;border-radius:3px}
.lux-tree .rel-panel button{min-width:44px}
.lux-tree .rel-selectors{display:grid;grid-template-columns:minmax(0,1fr) 76px minmax(0,1fr);align-items:center;gap:16px}
.lux-tree .rel-person{min-width:0;border:1px solid var(--line);border-radius:3px;padding:20px 24px;background:var(--paper);border-inline-start:2px solid var(--br,var(--gold))}
.lux-tree .rel-person>label{display:flex;align-items:center;gap:10px;font:.875rem/1.8 var(--f-ui);color:var(--muted);margin-bottom:8px}
.lux-tree .rel-person>label::before{font:1.6rem/1 var(--f-display);color:var(--reading-gold);min-width:18px}
.lux-tree #rel-person-0>label::before{content:'١'}
.lux-tree #rel-person-1>label::before{content:'٢'}
.lux-tree .rel-search{position:relative}
.lux-tree .rel-search input{width:100%;min-width:0;min-height:48px;border:1px solid var(--line);border-radius:3px;padding:9px 12px;background:var(--paper);color:var(--ink);font:1rem/1.5 var(--f-name)}
.lux-tree .rel-search input::placeholder{color:var(--muted);font-family:var(--f-ui);font-size:.875rem}
.lux-tree .rel-panel :is(input,button):focus-visible,.lux-tree .rel-from:focus-visible{outline:2px solid var(--reading-gold);outline-offset:3px}
.lux-tree .rel-hits{position:absolute;inset-inline:0;top:calc(100% + 6px);z-index:24;background:var(--paper);border:1px solid var(--line);border-radius:3px;max-height:320px;overflow:auto;overscroll-behavior:contain}
.lux-tree .rel-hits[hidden]{display:none}
.lux-tree .rel-hits button{display:block;width:100%;min-height:48px;background:var(--paper);color:var(--ink);border:0;border-bottom:1px solid var(--line);padding:12px;text-align:start;font:1rem/1.9 var(--f-name);cursor:pointer}
.lux-tree .rel-hits button:hover,.lux-tree .rel-hits button[aria-selected=true]{background:var(--br-soft,var(--paper));outline:1px solid var(--reading-gold);outline-offset:-1px}
.lux-tree .rel-hits p{font:.875rem/1.9 var(--f-ui);padding:12px;margin:0;color:var(--muted)}
.lux-tree .rel-hits bdi,.lux-tree .rel-chosen bdi{display:block;color:var(--muted);font:.75rem/1.8 var(--f-ui)}
.lux-tree .rel-chosen{min-height:1.9em;margin-top:8px;font:.875rem/1.9 var(--f-name);color:var(--muted)}
.lux-tree .rel-panel .name-word{display:inline-block;white-space:nowrap;word-break:normal;overflow-wrap:normal}
.lux-tree .rel-swap{min-height:44px;padding:8px 0;border:0;border-block:1px solid var(--gold);background:transparent;color:var(--reading-gold);font:.875rem/1.8 var(--f-ui);cursor:pointer}
.lux-tree .rel-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px 20px;margin-block:12px 24px}
.lux-tree .rel-tools .btn,.lux-tree .rel-from{border:1px solid var(--line);border-radius:3px;background:var(--paper);color:var(--ink);font:.875rem/1.8 var(--f-ui);min-height:44px;padding:8px 16px;cursor:pointer}
.lux-tree #rel-copy{color:var(--reading-gold);border-color:var(--gold)}
.lux-tree .rel-from{margin-top:20px;display:block;width:100%}
.lux-tree .rel-copy-status,.lux-tree #rel-copy-status{font:.875rem/1.8 var(--f-ui);color:var(--muted)}
.lux-tree .rel-empty{text-align:center;padding:40px 12px;border-block:1px solid var(--line);font:1.3rem/1.9 var(--f-name);color:var(--muted);margin:0}
.lux-tree .rel-empty::before{content:'';display:block;width:7px;height:7px;border:1px solid var(--gold);transform:rotate(45deg);margin:0 auto 20px}
.lux-tree .rel-plate{position:relative;border:1px solid var(--line);border-radius:3px;padding:32px 24px 40px;background:var(--paper)}
.lux-tree .rel-plate::before,.lux-tree .rel-plate::after{content:'';position:absolute;pointer-events:none;width:22px;height:22px;border-block:1px solid var(--gold)}
.lux-tree .rel-plate::before{inset-block:7px auto;inset-inline:7px auto;border-block-end:0;border-inline-start:1px solid var(--gold)}
.lux-tree .rel-plate::after{inset-block:auto 7px;inset-inline:auto 7px;border-block-start:0;border-inline-end:1px solid var(--gold)}
.lux-tree .rel-common{text-align:center}
.lux-tree .rel-common>span{display:inline-flex;align-items:center;gap:12px;font:.875rem/1.8 var(--f-ui);color:var(--muted)}
.lux-tree .rel-common>span::before,.lux-tree .rel-common>span::after{content:'';width:28px;height:1px;background:var(--line)}
.lux-tree .rel-common h2{margin:6px 0 12px;font:clamp(2.4rem,5vw,4.4rem)/1.4 var(--f-display);color:var(--reading-gold)}
.lux-tree .rel-common h2 button{font:inherit;color:inherit;background:transparent;border:0;min-height:44px;padding:0 8px;cursor:pointer;max-width:100%}
.lux-tree .rel-title{margin:0 auto;max-width:48ch;font:1.3rem/1.9 var(--f-name);color:var(--ink);text-wrap:balance}
.lux-tree .rel-name-link{font:inherit;line-height:inherit;color:var(--ink);background:transparent;border:0;min-height:44px;padding:0 3px;cursor:pointer}
.lux-tree .rel-routes{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);margin:32px auto 0;max-width:52rem}
.lux-tree .rel-routes::before{content:'';position:absolute;bottom:100%;inset-inline-start:50%;height:20px;border-inline-start:1px solid var(--gold)}
.lux-tree .rel-routes::after{content:'';position:absolute;top:-4px;inset-inline-start:calc(50% - 3px);width:5px;height:5px;background:var(--paper);border:1px solid var(--gold);transform:rotate(45deg)}
.lux-tree .rel-route{min-width:0;position:relative;padding:28px 20px 0}
.lux-tree .rel-route::before{content:'';position:absolute;top:0;inset-inline-start:50%;width:50%;height:18px;border-block-start:1px solid var(--gold);border-inline-start:1px solid var(--gold)}
.lux-tree .rel-route:last-child::before{inset-inline-start:0;border-inline-start:0;border-inline-end:1px solid var(--gold)}
.lux-tree .rel-direction{text-align:center;margin:0 0 16px;font:1.15rem/1.8 var(--f-name)}
.lux-tree .rel-direction>span:not(.name-word),.lux-tree .rel-direction small{display:block;color:var(--muted);font:.875rem/1.8 var(--f-ui)}
.lux-tree .rel-direction small{font-family:var(--f-display)}
.lux-tree .rel-generations{color:var(--reading-gold);font-weight:400;margin-inline-start:5px}
.lux-tree .rel-chain{display:flex;align-items:center;flex-direction:column}
.lux-tree .rel-chain .anc{min-height:48px;width:min(100%,15rem);max-width:100%;padding:7px 16px;border:1px solid var(--line);border-radius:3px;background:var(--br-soft,var(--paper));color:var(--ink);font:1.1rem/1.8 var(--f-name);text-align:center;box-shadow:none}
.lux-tree .rel-chain .rel-leaf{border-color:var(--br,var(--gold));border-inline-start-width:2px}
.lux-tree .rel-chain .down{width:1px;height:18px;background:var(--line);margin:0}
.lux-tree .rel-chain .down:last-child{display:none}
.lux-tree .rel-chain .more-anc{min-height:44px;border:1px solid var(--line);border-radius:3px;color:var(--muted);background:var(--paper);font:.875rem/1.8 var(--f-ui);padding:6px 12px;max-width:100%}
.lux-tree .rel-at-root{font:.875rem/1.8 var(--f-ui);color:var(--reading-gold)}
@media(max-width:700px){
 .lux-tree .bar:has(#tab-rel)>.tabs{justify-content:space-between;gap:0}
 .lux-tree .bar:has(#tab-rel) .tab{padding-inline:7px;white-space:nowrap;font-size:.9rem}
 .lux-tree .rel-panel{padding-top:16px}
 .lux-tree .rel-selectors{grid-template-columns:minmax(0,1fr);gap:6px}
 .lux-tree .rel-person{padding:12px 14px}
 .lux-tree .rel-person>label{margin-bottom:4px}
 .lux-tree .rel-chosen:empty{display:none}
 .lux-tree .rel-chosen{margin-top:4px}
 .lux-tree .rel-swap{justify-self:center;min-width:88px;padding-block:4px}
 .lux-tree .rel-tools{margin-block:8px 16px;gap:6px 12px}
 .lux-tree .rel-plate{padding:20px 12px 28px}
 .lux-tree .rel-common h2{font-size:2.6rem}
 .lux-tree .rel-title{font-size:1.12rem}
 .lux-tree .rel-routes{margin-top:28px}
 .lux-tree .rel-route{padding-inline:6px;padding-top:24px}
 .lux-tree .rel-direction{font-size:1rem;margin-bottom:10px}
 .lux-tree .rel-direction>span:not(.name-word),.lux-tree .rel-direction small{font-size:.78rem}
 .lux-tree .rel-chain .anc{padding-inline:8px;font-size:1rem}
 .lux-tree .rel-chain .more-anc{font-size:.78rem;padding-inline:5px}
 .lux-tree .rel-empty{font-size:1.15rem;padding-block:28px}
}

/* Keep management readable while the existing command mutex is active. */
.admin-page #management-app[aria-busy=true]{opacity:1;pointer-events:auto}
.reading-controls:not([open]) .reading-panel{display:none}

/* Approved gilded family register, relationship result. Presentation only; tree.js is unchanged. */
.lux-tree .rel-panel{--ink:#163b30;--muted:#687665;--paper:#fffcf2;--reading-gold:#92743e;--gold:#ac9058;--line:#c9b99180;color:#163b30;padding:30px 7px 40px;max-width:1280px;margin-inline:auto}
.lux-tree .rel-selectors{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;align-items:stretch;margin:5px 5px 0;border:1px solid #c9b991;outline:1px solid #a78d5d;outline-offset:5px;background:#fffcf2;box-shadow:0 7px 0 5px #e6ddc8,0 18px 35px #57452412}
.lux-tree .rel-selectors:after{content:'✦';position:absolute;left:calc(50% - 16px);top:0;width:32px;height:56px;padding-top:15px;text-align:center;background:#b49a62;color:#163b30;clip-path:polygon(0 0,100% 0,100% 100%,50% 85%,0 100%);pointer-events:none}
.lux-tree .rel-person{position:relative;border:0;border-radius:0;padding:40px 48px 32px;min-width:0;text-align:start;background:linear-gradient(90deg,#b09b5c15,transparent 18%),#fffcf2}
.lux-tree #rel-person-1{border-inline-start:1px solid #c4b59057;background:linear-gradient(270deg,#80602a15,transparent 18%),#fffcf2}
.lux-tree .rel-person:before{content:'';position:absolute;inset:15px;border:1px solid #b89a6060;pointer-events:none}
.lux-tree .rel-person:after{content:'✦';position:absolute;bottom:15px;left:24px;color:#a78d5d;font-size:14px;background:#fffcf2;padding:0 6px;pointer-events:none}
.lux-tree .rel-person:focus-within{z-index:26}
.lux-tree .rel-person>label{font:.9rem/1.8 var(--f-ui);color:#887147;margin:0 0 15px;gap:13px}
.lux-tree .rel-person>label:before{font:1.35rem/1.5 var(--f-display);color:#a78d5d;width:32px;height:32px;display:grid;place-items:center;border:1px solid #c8b57c80;border-radius:50%}
.lux-tree .rel-search input{min-height:56px;font:1.25rem/1.6 var(--f-name);color:#163b30;background:#fcf8ec;border:1px solid #c5b58c90;border-radius:4px;padding:12px 16px}
.lux-tree .rel-search input::placeholder{font-size:1rem;color:#6d7766}
.lux-tree .rel-chosen{font:.9rem/1.9 var(--f-name);color:#687665;margin-top:13px;min-height:0;overflow-wrap:break-word}
.lux-tree .rel-chosen:empty{display:none}.lux-tree .rel-chosen bdi{font-size:.7rem;color:#927b51;margin-top:5px}
.lux-tree .rel-hits{background:#fffcf2;border:1px solid #c9b991;box-shadow:0 12px 24px #173b3020;max-height:min(350px,46svh)}
.lux-tree .rel-hits button{background:#fffcf2;color:#163b30;border-color:#c9b99170;font-size:1rem;white-space:normal;overflow-wrap:break-word}
.lux-tree .rel-hits button:hover,.lux-tree .rel-hits button[aria-selected=true]{background:#eee7d7}.lux-tree .rel-hits :is(p,bdi){color:#687665}
.lux-tree .rel-swap{position:absolute;z-index:5;left:50%;top:calc(50% + 12px);transform:translate(-50%,-50%);width:68px;min-height:46px;border:1px solid #b49a62;border-radius:3px;background:#f8f3e7;color:#163b30;font:.75rem/1.5 var(--f-ui);box-shadow:inset 0 0 0 3px #f8f3e7,inset 0 0 0 4px #c9b99150}
.lux-tree .rel-swap:hover{background:#eee4ce}
.lux-tree .rel-tools{gap:10px 14px;margin:27px 5px 24px;justify-content:flex-end}
.lux-tree .rel-tools .btn{font:.8rem/1.8 var(--f-ui);background:#f8f3e7;color:#163b30;border-color:#c9b991;min-height:46px;border-radius:2px;padding:9px 18px}
.lux-tree #rel-copy{order:-1;border-color:#a78d5d;color:#163b30;box-shadow:inset 0 0 0 3px #f8f3e7,inset 0 0 0 4px #c9b99170}
.lux-tree #rel-copy-status{color:#687665;font-size:.8rem}
.lux-tree .rel-result{max-width:1040px;margin-inline:auto}
.lux-tree .rel-plate{border:1px solid #a78d5d;border-radius:0;padding:30px 35px 32px;background:#fffcf2;box-shadow:0 12px 28px #5745240c}
.lux-tree .rel-plate:before{inset:6px;width:auto;height:auto;border:1px solid #c9b99180}
.lux-tree .rel-plate:after{content:'✦';inset:auto auto 7px 17px;width:auto;height:auto;padding:0 7px;border:0;color:#a78d5d;background:#fffcf2;font-size:14px}
.lux-tree .rel-common{display:flex;flex-direction:column;align-items:center;gap:0}
.lux-tree .rel-title{order:-1;color:#163b30;background:#f4eddd;border:1px solid #c9b99170;border-radius:2px;padding:9px 24px;margin:0 auto 18px;font:400 1.55rem/1.7 var(--f-display);max-width:100%;text-wrap:balance}
.lux-tree .rel-common>span{font:.75rem/1.8 var(--f-ui);color:#7c795f}
.lux-tree .rel-common h2{font:400 clamp(2rem,3.3vw,3rem)/1.4 var(--f-display);color:#92743e;margin:4px 0 0}
.lux-tree .rel-common h2 button{color:inherit}
.lux-tree .rel-routes{margin-top:27px;max-width:760px;width:100%}
.lux-tree .rel-route{padding:23px 18px 0}
.lux-tree .rel-direction{font:1.2rem/1.7 var(--f-name);color:#163b30;margin-bottom:14px}
.lux-tree .rel-direction>span:not(.name-word),.lux-tree .rel-direction small{font:.8rem/1.8 var(--f-ui);color:#687665}
.lux-tree .rel-name-link{color:#163b30}
.lux-tree .rel-generations{color:#92743e}
.lux-tree .rel-chain .anc{width:min(100%,255px);min-height:50px;font:1.15rem/1.7 var(--f-name);padding:8px 16px;border:1px solid #c9b99190;border-radius:3px;background:#f8f2e4;color:#163b30}
.lux-tree .rel-chain .rel-leaf{border:1px solid #a78d5d;background:#efe4cd;color:#163b30}
.lux-tree .rel-chain .down{height:20px;background:#b89a60b3}
.lux-tree .rel-chain .more-anc{background:#fffcf2;color:#687665;border-color:#c9b991;font-size:.8rem}
.lux-tree .rel-at-root{padding:10px 16px;border:1px solid #c9b99180;background:#f8f2e4;color:#92743e;border-radius:3px;font-size:.8rem}
.lux-tree .rel-empty{border:1px solid #c9b991;background:#fffcf2;outline:1px solid #c9b99160;outline-offset:4px;padding:32px 20px;color:#687665;font-size:1.15rem}
@media(max-width:900px){.lux-tree .rel-person{padding:32px 32px 27px}.lux-tree .rel-panel{padding-inline:6px}.lux-tree .rel-plate{padding-inline:24px}}
@media(max-width:700px){
 .lux-tree .rel-panel{padding:22px 5px 28px}.lux-tree .rel-selectors{display:block;margin:5px 4px 0;outline-offset:4px;box-shadow:0 6px 0 4px #e6ddc8,0 14px 26px #57452410}.lux-tree .rel-selectors:after{display:none}
 .lux-tree .rel-person{padding:22px 21px 31px}.lux-tree #rel-person-1{padding-top:31px;padding-bottom:22px;border-inline-start:0;border-top:1px solid #c4b59080;background:linear-gradient(180deg,#80602a0c,transparent 28%),#fffcf2}.lux-tree .rel-person:before{inset:9px}.lux-tree .rel-person:after{display:none}
 .lux-tree .rel-person>label{font-size:.75rem;margin-bottom:10px;gap:10px}.lux-tree .rel-person>label:before{font-size:1.15rem;width:28px;height:28px}.lux-tree .rel-search input{min-height:50px;font-size:1.15rem;padding:9px 12px}.lux-tree .rel-search input::placeholder{font-size:1rem}.lux-tree .rel-chosen{font-size:.8rem;line-height:1.9;margin-top:10px}.lux-tree .rel-chosen bdi{font-size:.65rem}
 .lux-tree .rel-swap{position:relative;display:block;left:auto;top:auto;transform:none;width:86px;min-height:44px;margin:-22px auto;z-index:5;font-size:.75rem}
 .lux-tree .rel-tools{margin:25px 4px 22px;gap:8px;justify-content:stretch}.lux-tree #rel-copy{flex:1}.lux-tree #rel-copy-status{flex-basis:100%;font-size:.75rem}
 .lux-tree .rel-plate{padding:23px 12px 25px}.lux-tree .rel-title{font-size:1.25rem;line-height:1.7;padding:8px 13px;margin-bottom:15px}.lux-tree .rel-common>span{font-size:.7rem}.lux-tree .rel-common h2{font-size:2.2rem;line-height:1.4}.lux-tree .rel-routes{margin-top:25px}.lux-tree .rel-route{padding:22px 5px 0}.lux-tree .rel-direction{font-size:1.05rem;line-height:1.7;margin-bottom:12px}.lux-tree .rel-direction>span:not(.name-word),.lux-tree .rel-direction small{font-size:.7rem;line-height:1.9}.lux-tree .rel-chain .anc{min-height:46px;font-size:1rem;line-height:1.7;padding:8px 6px}.lux-tree .rel-chain .more-anc{font-size:.7rem;padding:7px 5px}.lux-tree .rel-at-root{font-size:.7rem;line-height:1.8;padding:9px 6px}.lux-tree .rel-empty{font-size:1rem;line-height:1.9;padding:26px 15px}
}


/* Official logo artwork only; no registration/endorsement claim. */
.site-footer .footer-service-logos{display:flex;align-items:center;justify-content:center;gap:32px;flex-wrap:nowrap;width:max-content;max-width:100%;margin:24px auto 18px;padding:18px 28px;border:1px solid #ded7c5;border-radius:8px;background:#faf8f1;box-sizing:border-box}
.site-footer .footer-service-logos img{display:block;object-fit:contain;height:48px;max-width:45%;margin:0;flex:none}
.site-footer .footer-service-logos .footer-haseen-logo{width:84px}
.site-footer .footer-service-logos .footer-sdaia-logo{width:138px}
@media(max-width:480px){.site-footer .footer-service-logos{gap:24px;margin-block:20px 14px;padding-block:18px}.site-footer .footer-service-logos img{height:42px}.site-footer .footer-service-logos .footer-haseen-logo{width:74px}.site-footer .footer-service-logos .footer-sdaia-logo{width:121px}}
.lux-tree .rel-title:focus-visible{outline:2px solid var(--reading-gold);outline-offset:4px}
.lux-tree .rel-chain .anc{border-inline-start-color:var(--br,var(--gold))}
.lux-tree .rel-panel :is(.rel-name-link,.rel-common h2 button){min-width:44px;min-height:44px}

/* Reading checks happen only after a 200ms scroll stop. */
html.simple-reading-page{scroll-padding-bottom:calc(64px + env(safe-area-inset-bottom,0px))}
.reading-controls.simple-reading{position:fixed;left:var(--simple-reading-left,16px);top:var(--simple-reading-top,auto);right:auto;bottom:16px;width:46px;height:46px;opacity:1;visibility:visible;transition:opacity 120ms ease,visibility 0s linear 0s}
@media(max-width:700px){.reading-controls.simple-reading{left:var(--simple-reading-left,9px);bottom:9px}}
.reading-controls.simple-reading>summary{box-sizing:border-box;width:46px;height:46px}
.reading-controls.simple-reading[data-simple-hidden=true]{opacity:0;visibility:hidden;pointer-events:none;transition:opacity 120ms ease,visibility 0s linear 120ms}
.reading-controls.simple-reading[open]{opacity:1;visibility:visible;pointer-events:auto;transition:opacity 120ms ease,visibility 0s linear 0s}
.reading-controls.simple-reading .reading-panel{position:fixed;left:var(--simple-panel-left,9px);top:var(--simple-panel-top,auto);bottom:auto;max-width:calc(100vw - 18px);max-height:calc(100vh - 80px);overflow:auto;box-sizing:border-box;flex-wrap:wrap}
@media(prefers-reduced-motion:reduce){.reading-controls.simple-reading,.reading-controls.simple-reading[data-simple-hidden=true],.reading-controls.simple-reading[open]{transition:none}}

/* Stage 2 batch 1: /branches only. Every rule is scoped to classes that exist only on /branches. */
.b1-directory-title{display:none}
@media(max-width:768px){
 .b1-branches-ready .directory-section{padding-block:20px 35px}
 .b1-branches-ready .section-top{display:none}
 .b1-branches-ready .b1-directory-title{display:block;font:400 clamp(.9rem,3.5vw,1.2rem)/1.8 var(--f-ui);margin:0 0 12px;color:var(--ink,#173d30)}
 .b1-branches-ready .directory-toolbar{display:block;margin:0 0 8px;padding:0 0 8px;border-top:0}
 .b1-branches-ready .directory-toolbar .search{width:100%;max-width:none;min-height:48px}
 .b1-branches-ready #branch-filters{display:flex;flex-wrap:nowrap;gap:8px;overflow-x:auto;max-width:100%;padding:4px 0 8px;margin:0;overscroll-behavior-x:contain;scroll-padding-inline:4px}
 .b1-branches-ready #branch-filters>button{flex:0 0 auto;min-height:44px;min-width:44px;white-space:nowrap;padding:8px 13px}
 .b1-branches-ready #branch-filters>button[aria-pressed=true]{box-shadow:inset 0 -2px #b59a61}
 .b1-branches-ready #branch-results-count{margin:10px 0;font-size:.8rem}
 .b1-branches-ready .bsec{margin-top:0}
 .b1-branches-ready .bsec>h2{margin-block:6px;padding-block:8px}
 .b1-branches-ready .branch-open{display:inline-flex;align-items:center;min-height:44px}
 .b1-branches-ready .b1-directory-notes{margin-top:20px;border-top:1px solid var(--line,#d8d0bb);padding-top:12px}
 .b1-branches-ready .b1-directory-notes .directory-intro,.b1-branches-ready .b1-directory-notes .directory-note{font-size:.8rem;line-height:1.8;margin-block:6px}
}

/* Batch 2 (owner approved 2026-11-12): compact site header on phones. Style only; same markup, links and order.
   Row 1: approved logo (right) + «حسابي» (left), same height. Row 2: one small caption line (wraps, never cut, on very
   narrow screens or with the largest reading size). Row 3: one menu strip
   that scrolls sideways when it does not fit; the current page keeps its gold underline. Desktop unchanged.
   The caption's inline size comes from textsize.js, so the phone values here need !important. */
@media (max-width:700px){
 .site-header .site-nav:has(.aasi-brand){display:flex;flex-wrap:wrap;align-items:flex-start;column-gap:12px;row-gap:0;padding-block:8px 0}
 .site-header .site-nav:has(.aasi-brand)>.site-brand{order:1;flex:1 1 0;min-width:0;align-items:flex-start}
 .site-header .site-nav:has(.aasi-brand)>.admin-profile{order:2;align-self:flex-start;margin-inline-start:0;margin-top:4px}
 .site-header .site-nav:has(.aasi-brand)>nav{order:3}
 .site-header .site-brand.aasi-brand .aasi-lockup{width:150px;height:56px}
 .site-header .site-brand.aasi-brand .aasi-lockup img{width:248px}
 .site-header .aasi-brand .aasi-caption{display:block;width:calc(100vw - 2 * var(--site-gutter,18px));max-width:calc(100vw - 2 * var(--site-gutter,18px))!important;font-size:.7rem!important;line-height:1.5!important;white-space:normal!important;margin-top:-2px}
 .site-header .admin-profile>summary{width:48px;height:48px;min-height:48px}
 .site-header .admin-profile .profile-avatar{width:38px;height:38px}
 .site-header .site-nav>nav{width:calc(100% + 2 * var(--site-gutter,18px));margin-inline:calc(-1 * var(--site-gutter,18px));margin-top:6px;padding:0 var(--site-gutter,18px);flex-wrap:nowrap;justify-content:flex-start;gap:0 16px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;white-space:nowrap;font-size:.84rem}
 .site-header .site-nav>nav::-webkit-scrollbar{display:none}
 .site-header .site-nav>nav a{flex:none;padding-block:8px 7px}
}

/* Batch 3 (owner approved 2026-11-12): shortening, style only. Desktop home unchanged; texts, links and order kept. */
/* Home, phones: the five branch cards become compact rows (number, name, small arrow). «ذرّية عاصي بن مقبول» is written
   once above them (heading added by the Worker, shown on phones only); the repeated lines stay for screen readers. */
#family .family-cards-heading{display:none}
@media (max-width:700px){
 #family .family-cards-heading{display:block;margin:0 0 10px;color:var(--muted);font:400 .95rem/1.6 var(--f-name)}
 #family .family-cards{gap:8px}
 #family .family-card,#family .family-card:last-child{display:grid;grid-template-columns:34px minmax(0,1fr) 24px;grid-template-rows:auto;align-items:center;gap:0 10px;min-height:64px;padding:8px 16px}
 #family .family-card:after{display:none}
 #family .family-card .family-card-top,#family .family-card:last-child .family-card-top{grid-column:1;grid-row:1;margin:0}
 #family .family-card-top svg{display:none}
 #family .family-card h3,#family .family-card:last-child h3{grid-column:2;grid-row:1;margin:0;font-size:1.6rem;line-height:1.5}
 #family .family-card .family-card-bottom,#family .family-card:last-child .family-card-bottom{grid-column:3;grid-row:1;margin:0;padding:0;border:0;max-width:none;justify-content:center;font-size:0}
 #family .family-card .family-card-bottom svg{display:block;width:20px;height:20px;flex:none}
 #family .family-prefix,#family .family-card>p,#family .family-card:last-child>p{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
 #family .family-card:hover{transform:none}
}
/* Home, phones: the closing part is tightened. The thanks prayer appears once, at the end of the dark footer (the
   Worker moves it there; owner approval 2026-11-12: identity, then email, then thanks). The repeated logo block in the
   dark footer is hidden on phones (the logo is in the header). Spacing reduced; no text removed otherwise. */
@media (max-width:700px){
 .participation-section{padding-block:30px;margin-top:8px}
 .participation-heading>p{margin:10px 0 16px}
 .participation-steps{margin-top:18px}
 .participation-steps li{gap:16px;padding-block:13px}
 .participation-steps li>span{font-size:1.45rem}
 .participation-steps h3{font-size:1.25rem;margin-bottom:2px}
 .participation-steps p{line-height:1.8}
 .scope-note{padding-block:12px;font-size:.78rem;line-height:1.7}
 .initiative-section{gap:10px;padding-block:28px}
 .initiative-section h2{font-size:1.6rem}
 .initiative-section p{margin-bottom:10px;line-height:1.9}
 .initiative-thanks{padding-top:12px;margin-top:12px}
 .foot{padding-top:30px;padding-bottom:18px}
 .foot .footer-top{gap:0}
 .foot .footer-signature{display:none}
 .foot .footer-invitation h2{font-size:1.6rem}
 .foot .footer-invitation>p{margin:8px 0 14px}
 .foot .footer-bottom{margin-top:18px;padding-top:14px}
}
/* About: the large second logo is removed (the header has it); the text is one centred column (~720px) with the
   leaves still behind it at their current opacity. */
main.aasi-about .aasi-about-logo{display:none}
main.aasi-about{padding-inline:max(0px,calc((100% - 720px) / 2))}
/* Unified footer (2026-11-12): the full thanks line sits at the end of the dark footer on every page that has it. */
.foot .footer-bottom>span:first-child{max-width:68ch;line-height:1.9}
/* «اسمٌ يتردّد» (owner approval 2026-11-12). Phones: one heading («اسمٌ يتردّد.») with one description line; the second
   large heading block is hidden so the search box rises. All sizes: suggested repeated names under the search box. */
@media (max-width:700px){
 .exp-main .exp-intro p{font-size:.92rem;line-height:1.8}
 #panel-names .names-lead>div:first-child{display:none}
 #panel-names .names-lead{padding-top:0;margin-top:0}
}
.names-picker .name-chips{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:12px}
.names-picker .name-chips__label{color:var(--muted);font-size:.85rem;margin-inline-end:2px}
.names-picker .name-chips a{display:inline-block;padding:5px 12px;border:1px solid var(--line);border-radius:99px;background:var(--paper,#fbf9f2);color:var(--ink);font-size:.9rem;line-height:1.5;text-decoration:none}
.names-picker .name-chips a:hover,.names-picker .name-chips a:focus-visible{border-color:#bda375;color:#8a7956}
/* «لوحة الفرع» beside «تصفّح الفرع» on /branches (owner request 2026-11-12). */
.branch-actions a.branch-board{display:inline-flex;align-items:center;padding:4px 12px;margin-inline-start:8px;border:1px solid #bda375;border-radius:99px;color:#8a7956;font-size:.85rem;line-height:1.6;text-decoration:none;white-space:nowrap}
.branch-actions a.branch-board:hover{background:#bda375;color:#183b2e}
.branch-actions a.branch-board:focus-visible{outline:2px solid #bda375;outline-offset:2px}
:root[data-theme=dark] .branch-actions a.branch-board{color:#e3d5b0}
