:root{
  --bg:#f7f4ee;--surface:#fffdf8;--surface-2:#f1ebdf;--ink:#1f2b24;--muted:#6d766f;
  --green:#264f3d;--green-2:#356b53;--green-3:#dce8df;--gold:#b88a48;--gold-2:#e6d1aa;
  --line:#ded8cc;--danger:#a13d3d;--danger-bg:#f8e8e5;--success:#397456;
  --shadow:0 18px 55px rgba(31,43,36,.08);--shadow-sm:0 8px 24px rgba(31,43,36,.08);
  --radius:22px;--radius-sm:14px;--container:1180px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:"Tajawal",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--ink);line-height:1.65}
body.modal-open{overflow:hidden}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
[hidden]{display:none!important}
.container{width:min(var(--container),calc(100% - 40px));margin-inline:auto}
.narrow{width:min(760px,calc(100% - 40px))}
.site-header{position:sticky;top:0;z-index:90;background:rgba(247,244,238,.88);backdrop-filter:blur(16px);border-bottom:1px solid rgba(222,216,204,.75)}
.header-inner{height:78px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand{display:flex;align-items:center;gap:11px}
.brand-mark{width:43px;height:43px;border-radius:14px;display:grid;place-items:center;background:var(--green);box-shadow:0 8px 24px rgba(38,79,61,.18)}
.brand-mark svg{width:27px;height:27px;fill:#f6e7c6}
.brand-text{display:flex;flex-direction:column;line-height:1.1}
.brand-text strong{font-size:19px;font-weight:800}
.brand-text small{margin-top:4px;color:var(--muted);font-size:11px}
.desktop-nav{display:flex;align-items:center;gap:30px;font-weight:600;color:#536058}
.desktop-nav a:hover{color:var(--green)}
.header-actions{display:flex;align-items:center;gap:8px}
.lang-switch{width:36px;height:36px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;font-weight:700;background:#fff}
.avatar-btn{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:var(--gold-2);color:#6f5127;font-weight:800}
.mobile-menu-btn{display:none;border:0;background:transparent;font-size:22px}
.mobile-menu{padding:12px 20px 18px;border-top:1px solid var(--line);background:var(--surface)}
.mobile-menu a{display:block;padding:10px 4px;font-weight:600}
.btn{border:0;border-radius:12px;padding:11px 17px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:.2s ease}
.btn:hover{transform:translateY(-1px)}
.btn-primary{background:var(--green);color:white;box-shadow:0 10px 24px rgba(38,79,61,.18)}
.btn-primary:hover{background:var(--green-2)}
.btn-soft{background:var(--surface-2);color:var(--ink);border:1px solid #e7dfd1}
.btn-ghost{background:transparent;border:1px solid var(--line)}
.btn-ivory{background:#fbf5e8;color:var(--green)}
.btn-danger{background:var(--danger);color:#fff}
.btn-sm{padding:8px 12px;border-radius:10px;font-size:14px}
.btn-lg{padding:15px 22px;border-radius:14px;font-size:16px}
.btn-block{width:100%}
.eyebrow{display:inline-flex;align-items:center;gap:7px;color:var(--gold);font-weight:800;font-size:13px;letter-spacing:.02em;margin-bottom:12px}
.eyebrow:before{content:"";width:24px;height:2px;border-radius:2px;background:currentColor}
.eyebrow.light{color:#e8d1a7}
.hero{position:relative;overflow:hidden;padding:86px 0 96px}
.hero-grid{display:grid;grid-template-columns:1.02fr .98fr;gap:70px;align-items:center}
.hero-copy h1{font-size:clamp(44px,6vw,76px);line-height:1.08;margin:0 0 24px;letter-spacing:-.03em;max-width:730px}
.hero-copy p{font-size:19px;color:var(--muted);max-width:650px;margin:0 0 30px}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap}
.trust-row{display:flex;gap:20px;flex-wrap:wrap;margin-top:25px;color:#6a746e;font-size:13px;font-weight:600}
.hero-orb{position:absolute;border-radius:50%;filter:blur(4px);opacity:.5;pointer-events:none}
.hero-orb-1{width:380px;height:380px;background:#e6dbc3;right:-170px;top:-90px}
.hero-orb-2{width:290px;height:290px;background:#dce9df;left:-120px;bottom:-130px}
.hero-tree-demo{position:relative;background:linear-gradient(145deg,#fffdf8,#f1ebdf);border:1px solid #e7dfd1;border-radius:32px;min-height:520px;padding:30px;box-shadow:var(--shadow);overflow:hidden}
.demo-badge{position:absolute;top:20px;right:20px;background:#fff;border:1px solid var(--line);border-radius:999px;padding:7px 12px;font-size:12px;font-weight:700}
.demo-tree{margin-top:54px;text-align:center;position:relative}
.demo-node{width:160px;min-height:92px;margin:auto;background:#fff;border:1px solid #ded7ca;border-radius:16px;padding:12px;box-shadow:0 8px 20px rgba(43,53,46,.06);display:flex;flex-direction:column;align-items:center}
.demo-node strong{font-size:14px;margin-top:5px}
.demo-node small{font-size:11px;color:var(--muted)}
.demo-avatar{width:32px;height:32px;border-radius:50%;background:var(--green-3);color:var(--green);display:grid;place-items:center;font-weight:800}
.demo-root{border-color:#bca67d}
.demo-line-v{width:2px;height:34px;background:#c7bda9;margin:auto}
.demo-line-v.mini{height:24px}
.demo-line-h{height:2px;background:#c7bda9;width:68%;margin:auto}
.demo-children{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:0}
.demo-branch{min-width:0}
.demo-branch .demo-node{width:100%;max-width:145px}
.demo-grandkids{display:flex;justify-content:center;gap:8px}
.demo-grandkids span{background:#fff;border:1px solid var(--line);border-radius:9px;padding:5px 8px;font-size:10px}
.demo-floating-card{position:absolute;left:18px;bottom:18px;background:#fff;border:1px solid var(--line);border-radius:15px;padding:10px 13px;display:flex;align-items:center;gap:9px;box-shadow:var(--shadow-sm)}
.demo-floating-card .dot{width:8px;height:8px;border-radius:50%}.dot.green{background:#4f9b72}
.demo-floating-card div{display:flex;flex-direction:column}.demo-floating-card strong{font-size:12px}.demo-floating-card small{color:var(--muted);font-size:10px}
.section{padding:90px 0}.section-cream{background:#efe9dd}
.section-heading{max-width:700px;margin-bottom:45px}.section-heading.centered{text-align:center;margin-inline:auto;margin-bottom:50px}
.section-heading h2,.feature-split h2,.cta-box h2,.page-heading h1,.prose-page h1{font-size:clamp(32px,4vw,50px);line-height:1.15;margin:0 0 16px;letter-spacing:-.02em}
.section-heading p,.lead{color:var(--muted);font-size:18px}
.steps-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.step-card{background:rgba(255,255,255,.64);border:1px solid rgba(209,199,182,.85);border-radius:20px;padding:24px}
.step-number{font-size:12px;font-weight:800;color:var(--gold)}
.step-card h3{font-size:20px;margin:24px 0 8px}.step-card p{margin:0;color:var(--muted);font-size:14px}
.feature-split{display:grid;grid-template-columns:1fr .9fr;gap:70px;align-items:center}
.feature-list{display:grid;gap:15px;margin-top:30px}
.feature-list>div{display:flex;gap:13px;align-items:flex-start;background:#fff;border:1px solid var(--line);border-radius:16px;padding:15px}
.feature-list>div>span{width:38px;height:38px;border-radius:12px;background:var(--green-3);display:grid;place-items:center;color:var(--green);font-size:20px}
.feature-list strong,.feature-list small{display:block}.feature-list small{color:var(--muted);margin-top:3px}
.feature-panel{background:#1f3e31;color:#fff;border-radius:28px;padding:26px;box-shadow:0 30px 65px rgba(31,62,49,.22)}
.feature-panel-top{display:flex;justify-content:space-between;align-items:center;font-weight:700}
.status-pill{font-size:12px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.16);padding:6px 10px;border-radius:999px}
.stats-preview{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:26px 0}
.stats-preview div{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);border-radius:14px;padding:15px}
.stats-preview strong{display:block;font-size:28px}.stats-preview small{opacity:.7}
.mini-activity{background:#fff;color:var(--ink);border-radius:18px;padding:18px}.mini-activity>span{font-size:12px;color:var(--muted);font-weight:700}
.mini-activity>div{display:flex;gap:10px;padding:13px 0;border-bottom:1px solid #eee8dd}.mini-activity>div:last-child{border-bottom:0}
.mini-activity i{width:8px;height:8px;background:var(--gold);border-radius:50%;margin-top:7px}.mini-activity p{margin:0;font-size:13px}.mini-activity small{display:block;color:var(--muted);font-size:11px}
.cta-section{padding-top:20px}.cta-box{background:linear-gradient(135deg,#234b3a,#183629);color:#fff;border-radius:30px;padding:46px 50px;display:flex;align-items:center;justify-content:space-between;gap:35px}
.cta-box h2{max-width:710px}.cta-box p{opacity:.75;max-width:650px}
.site-footer{background:#1c2d25;color:#e9efe9;margin-top:70px;padding:60px 0 25px}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:50px}
.footer-brand .brand-text small,.site-footer p{color:#aebbb3}.site-footer h4{margin-top:0}.site-footer a:not(.brand){display:block;color:#c6d0ca;margin:8px 0}
.footer-bottom{display:flex;justify-content:space-between;gap:20px;border-top:1px solid rgba(255,255,255,.1);padding-top:20px;margin-top:45px;color:#8fa096;font-size:12px}

/* Dashboard */
.dashboard-shell{padding:55px 0 90px}.dashboard-hero{display:flex;justify-content:space-between;gap:25px;align-items:flex-end;margin-bottom:45px}
.dashboard-hero h1{font-size:44px;margin:0 0 5px}.dashboard-hero p{margin:0;color:var(--muted)}
.dashboard-toolbar{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:20px}.dashboard-toolbar h2{margin:0 0 4px}.dashboard-toolbar p{margin:0;color:var(--muted);font-size:14px}
.search-field{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);border-radius:13px;padding:0 12px}.search-field input{border:0;outline:0;background:transparent;padding:10px;width:230px}
.tree-cards-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.tree-card{background:#fff;border:1px solid var(--line);border-radius:20px;overflow:hidden;box-shadow:0 5px 20px rgba(39,51,43,.04);transition:.2s}
.tree-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-sm)}
.tree-card-preview{height:145px;background:linear-gradient(145deg,#eef0e6,#e8dfcf);position:relative;display:flex;align-items:center;justify-content:center}
.tree-card-preview:before,.tree-card-preview:after{content:"";position:absolute;background:#c0b59f}.tree-card-preview:before{width:2px;height:50px}.tree-card-preview:after{height:2px;width:120px;top:74px}
.preview-node{position:absolute;width:76px;height:35px;background:#fff;border:1px solid #d8cfbf;border-radius:9px;z-index:2}.preview-node.root{top:20px}.preview-node.a{bottom:22px;right:28px}.preview-node.b{bottom:22px}.preview-node.c{bottom:22px;left:28px}
.tree-card-body{padding:18px}.tree-card-body h3{margin:0 0 4px}.tree-card-meta{display:flex;gap:14px;flex-wrap:wrap;color:var(--muted);font-size:12px;margin:12px 0 18px}
.tree-card-actions{display:flex;gap:7px;flex-wrap:wrap}.tree-card-actions .btn{flex:1}.tree-menu-btn{width:38px!important;flex:0!important}
.loading-state,.empty-state{padding:70px 20px;text-align:center;color:var(--muted)}.empty-icon{font-size:40px}.empty-state h3{color:var(--ink)}
.spinner{width:27px;height:27px;border:3px solid #dcd5c8;border-top-color:var(--green);border-radius:50%;display:inline-block;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}

/* Wizard */
.wizard-shell{padding:45px 0 90px}.wizard-container{max-width:820px}.wizard-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.back-link{color:var(--muted);font-weight:700;font-size:14px}
.wizard-progress{display:flex;align-items:center;gap:10px}.progress-track{width:150px;height:6px;border-radius:999px;background:#e1dbd0;overflow:hidden}.progress-track span{display:block;height:100%;width:33%;background:var(--green);transition:.3s}
.wizard-card{background:#fff;border:1px solid var(--line);border-radius:28px;padding:50px;box-shadow:var(--shadow)}
.wizard-step{display:none}.wizard-step.is-active{display:block}.wizard-step h1{font-size:42px;line-height:1.15;margin:10px 0 10px}.wizard-step>p{color:var(--muted);margin-bottom:28px}
.step-chip{display:inline-flex;background:#eee7d9;color:#7b6138;border-radius:999px;padding:6px 10px;font-size:11px;font-weight:800}
.field{display:flex;flex-direction:column;gap:7px;margin-bottom:16px}.field>span{font-size:13px;font-weight:700}.field small{font-size:11px;color:var(--muted)}
.field input,.field select,.field textarea{width:100%;border:1px solid #d9d3c8;background:#fffefa;border-radius:12px;padding:12px 13px;outline:none;transition:.2s}
.field input:focus,.field select:focus,.field textarea:focus{border-color:#6a8b77;box-shadow:0 0 0 3px rgba(38,79,61,.08)}
.wizard-card .field input{font-size:18px;padding:15px}.wizard-actions{display:flex;justify-content:space-between;gap:10px;margin-top:28px}.wizard-actions.single{justify-content:flex-end}
.number-picker{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;margin:20px 0}.number-picker button{border:1px solid var(--line);background:#fff;border-radius:12px;padding:11px;font-weight:800}.number-picker button.is-selected{background:var(--green);color:#fff;border-color:var(--green)}
.number-picker .manual-count{grid-column:span 2}.number-picker.small{grid-template-columns:repeat(10,1fr)}
.children-fields{display:grid;gap:10px}.child-row{display:grid;grid-template-columns:1fr 130px;gap:10px;align-items:end}.child-row .field{margin:0}
.wizard-tip{display:flex;gap:12px;margin-top:20px;padding:17px 20px;border-radius:17px;background:#ece8dc;color:#59635d}.wizard-tip>span{font-size:22px;color:var(--gold)}.wizard-tip strong{display:block}.wizard-tip p{margin:3px 0 0;font-size:13px}
.form-message{font-size:13px;margin:10px 0 0}.form-message.error{color:var(--danger)}.form-message.success{color:var(--success)}

/* Auth and static pages */
.auth-shell{min-height:calc(100vh - 78px);display:grid;grid-template-columns:1fr 1fr}
.auth-visual{background:linear-gradient(rgba(31,62,49,.78),rgba(31,62,49,.78)),radial-gradient(circle at 20% 10%,#a88650,#234b3a 50%,#183027);display:flex;align-items:flex-end;padding:65px;color:#fff;min-height:640px}
.auth-quote{max-width:510px}.auth-quote>span{font-size:55px;color:#e7cf9e}.auth-quote h2{font-size:38px;line-height:1.25;margin:0 0 14px}.auth-quote p,.auth-quote li{color:#d4dfd8}.auth-quote ul{list-style:none;padding:0}
.auth-panel{display:grid;place-items:center;padding:50px 30px;background:#faf8f3}.auth-card{width:min(440px,100%)}.auth-card h1{font-size:40px;margin:0 0 8px}.auth-card>p{color:var(--muted)}
.auth-form{margin-top:25px}.check-row{display:flex;align-items:center;gap:8px;font-size:13px;margin:4px 0 18px}.auth-switch{text-align:center;font-size:13px!important;margin-top:20px!important}.auth-switch a{color:var(--green);font-weight:800}
.alert{border-radius:12px;padding:12px 14px;margin:15px 0;font-size:13px}.alert-error{background:var(--danger-bg);color:#7e3030}.alert-success{background:#e6f2ea;color:#2b6245}
.settings-shell,.prose-page{padding-top:65px}.page-heading{margin-bottom:28px}.settings-card,.content-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:28px;box-shadow:0 5px 20px rgba(39,51,43,.04)}
.settings-row{display:flex;justify-content:space-between;align-items:center;gap:18px}.settings-row p{margin:4px 0;color:var(--muted)}
.settings-card hr{border:0;border-top:1px solid var(--line);margin:28px 0}.prose p{color:#57635c}.prose h2{margin-top:28px}

/* Tree App */
.tree-app-shell{height:calc(100vh - 78px);display:flex;flex-direction:column;background:#f2eee5;overflow:hidden}
.tree-app-shell+.site-footer{display:none}
.tree-app-shell~.site-footer{display:none}
.tree-topbar{height:70px;display:flex;align-items:center;justify-content:space-between;padding:10px 18px;background:#fff;border-bottom:1px solid var(--line);z-index:30}
.tree-title-wrap{display:flex;align-items:center;gap:12px}.tree-title-wrap small{display:block;color:var(--muted);font-size:10px}.tree-title-wrap h1{font-size:18px;margin:0}.save-state{font-size:11px;color:var(--success);background:#e7f2eb;border-radius:999px;padding:5px 9px}.save-state.neutral{color:#5d665f;background:#ecebe7}
.icon-btn,.tool-btn{border:1px solid var(--line);background:#fff;border-radius:10px;display:grid;place-items:center;color:var(--ink)}
.icon-btn{width:36px;height:36px}.tree-top-actions{display:flex;gap:8px}
.tree-toolbar{display:flex;align-items:center;gap:10px;padding:8px 14px;background:#faf8f3;border-bottom:1px solid var(--line);z-index:25}
.tree-search{position:relative;display:flex;align-items:center;gap:7px;background:#fff;border:1px solid var(--line);border-radius:11px;padding:0 10px;min-width:280px}.tree-search input{border:0;outline:0;padding:8px;background:transparent;width:100%}
.search-results{position:absolute;top:calc(100% + 6px);right:0;left:0;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow-sm);max-height:310px;overflow:auto;z-index:70;padding:6px}
.search-result{display:flex;justify-content:space-between;gap:10px;width:100%;border:0;background:transparent;padding:9px;border-radius:9px;text-align:right}.search-result:hover{background:#f1ede4}.search-result small{color:var(--muted)}
.toolbar-group{display:flex;align-items:center;gap:5px;padding-inline:4px;border-inline-start:1px solid var(--line)}.tool-btn{height:34px;min-width:34px;padding:0 9px}.tool-btn.wide{display:flex;gap:6px}.tool-btn:hover{background:#efe9de}.zoom-label{font-size:11px;width:40px;text-align:center}
.generation-strip{height:42px;background:#fff8e9;border-bottom:1px solid #eadfc8;padding:7px 16px;display:flex;align-items:center;gap:10px;font-size:12px}.generation-strip select{border:1px solid var(--line);border-radius:8px;padding:3px 8px}.text-btn{border:0;background:transparent;color:var(--green);font-weight:800}.danger-text{color:var(--danger)}
.tree-workspace{position:relative;flex:1;min-height:0;overflow:hidden;background:radial-gradient(circle at 1px 1px,rgba(57,72,62,.10) 1px,transparent 0);background-size:24px 24px}
.tree-loading,.tree-empty-error{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;z-index:20;background:#f2eee5}.tree-loading small{color:var(--muted)}
.tree-viewport{position:absolute;inset:0;overflow:hidden;cursor:grab;touch-action:none}.tree-viewport.dragging{cursor:grabbing}
.tree-stage{position:absolute;transform-origin:0 0;width:3000px;height:1800px;left:0;top:0}.tree-lines{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}.tree-nodes{position:absolute;inset:0}
.tree-edge{fill:none;stroke:#b8ad98;stroke-width:2}.tree-edge.marriage{stroke:#b48649;stroke-dasharray:4 3}
.person-node{position:absolute;width:190px;min-height:100px;background:#fff;border:1px solid #d9d1c3;border-radius:15px;box-shadow:0 8px 20px rgba(42,52,45,.08);padding:12px;transition:box-shadow .15s,border-color .15s;user-select:none}
.person-node:hover,.person-node.is-highlighted{border-color:#779684;box-shadow:0 0 0 4px rgba(38,79,61,.08),0 12px 25px rgba(42,52,45,.12)}
.person-node.spouse-node{border-style:dashed;background:#fffaf0}.person-node .node-top{display:flex;align-items:center;gap:10px}.person-node img{width:40px;height:40px;border-radius:50%;object-fit:cover;background:#eee5d7}
.person-node .node-name{font-size:14px;font-weight:800;line-height:1.25}.person-node .node-meta{font-size:10px;color:var(--muted);margin-top:3px}.person-node .node-actions{display:flex;gap:5px;margin-top:10px}.person-node .node-actions button{border:0;background:#f0ece3;border-radius:8px;padding:5px 7px;font-size:10px;font-weight:700}.person-node .node-actions button.primary-mini{background:var(--green-3);color:var(--green)}
.node-status{position:absolute;top:8px;left:8px;width:7px;height:7px;border-radius:50%;background:#68a17f}.node-status.review{background:#c49347}.node-status.unconfirmed{background:#9a9080}
.collapse-btn{position:absolute;left:50%;top:-12px;bottom:auto;transform:translateX(-50%);width:24px;height:24px;border:1px solid #cfc4b2;background:#fff;border-radius:50%;font-size:12px;display:grid;place-items:center;z-index:3}
.tree-help-chip{position:absolute;right:14px;bottom:14px;background:rgba(255,255,255,.92);border:1px solid var(--line);border-radius:999px;padding:6px 10px;font-size:10px;color:var(--muted)}
.tree-mini-stats{position:absolute;left:14px;bottom:14px;background:rgba(31,62,49,.94);color:#fff;border-radius:13px;padding:8px 12px;font-size:11px;box-shadow:var(--shadow-sm)}
.tree-mini-stats strong{font-size:14px;margin-inline-end:4px}

/* overlays */
.modal,.drawer{position:fixed;inset:0;z-index:200;display:none}.modal.is-open,.drawer.is-open{display:block}.modal-backdrop,.drawer-backdrop{position:absolute;inset:0;background:rgba(22,29,25,.48);backdrop-filter:blur(2px)}
.modal-card{position:relative;background:#fff;border-radius:22px;width:min(520px,calc(100% - 28px));max-height:calc(100vh - 40px);overflow:auto;margin:20px auto;padding:28px;box-shadow:0 35px 80px rgba(15,23,18,.28)}
.modal-card-lg{width:min(700px,calc(100% - 28px))}.modal-card-xl{width:min(900px,calc(100% - 28px))}
.modal-card h3{font-size:26px;margin:8px 0 8px}.modal-card>p{color:var(--muted)}
.modal-close{position:absolute;left:16px;top:14px;border:0;background:#f1ede4;width:32px;height:32px;border-radius:50%;font-size:19px}
.modal-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:22px}.split-actions{justify-content:space-between;align-items:center}.split-actions>div{display:flex;gap:8px}
.drawer-panel{position:absolute;top:0;bottom:0;left:0;width:min(430px,92vw);background:#fff;padding:26px;overflow:auto;box-shadow:20px 0 50px rgba(22,29,25,.2)}
.drawer-panel .modal-close{right:auto;left:14px}.person-profile{padding-top:22px}.person-profile-head{display:flex;align-items:center;gap:15px}.person-profile-head img{width:70px;height:70px;border-radius:50%}.person-profile h2{margin:0}.person-profile .sub{color:var(--muted)}
.person-profile-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:20px 0}.person-detail-list{border-top:1px solid var(--line);padding-top:15px}.person-detail-row{display:flex;justify-content:space-between;gap:15px;padding:8px 0;border-bottom:1px solid #eee9df;font-size:13px}.person-detail-row span{color:var(--muted)}
.form-grid{display:grid;gap:12px}.form-grid.two-col{grid-template-columns:1fr 1fr}.form-grid .full{grid-column:1/-1}.modal-header-row{display:flex;justify-content:space-between;gap:15px;padding-left:35px}.person-id-chip{font-size:11px;color:var(--muted);background:#f0ece3;border-radius:999px;padding:6px 9px;height:max-content}
.advanced-person-tools{border-top:1px solid var(--line);margin-top:15px;padding-top:15px}
.stats-grid-modal{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:20px 0}.stat-box{border:1px solid var(--line);background:#faf8f2;border-radius:14px;padding:14px}.stat-box strong{display:block;font-size:25px}.stat-box small{color:var(--muted)}
.activity-box{border-top:1px solid var(--line);padding-top:15px}.activity-row{display:flex;gap:9px;padding:9px 0;border-bottom:1px solid #eee9df}.activity-row i{width:7px;height:7px;border-radius:50%;background:var(--gold);margin-top:8px}.activity-row p{margin:0;font-size:12px}.activity-row small{display:block;color:var(--muted)}
.share-result{display:flex;gap:8px;margin-top:15px}.share-result input{flex:1;min-width:0;border:1px solid var(--line);border-radius:10px;padding:9px}
.export-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:22px 0}.export-grid button{background:#faf8f2;border:1px solid var(--line);border-radius:14px;padding:15px;text-align:right}.export-grid button:hover{border-color:#8ba090;background:#f1f4ef}.export-grid b,.export-grid small{display:block}.export-grid b{font-size:18px}.export-grid small{color:var(--muted);margin-top:3px}
.pdf-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;background:#f5f1e8;border-radius:13px;padding:13px}.pdf-options .field{margin:0}.export-note{font-size:11px!important;margin-top:12px}

/* responsive */
@media (max-width:1000px){
  .desktop-nav{display:none}.mobile-menu-btn{display:block}
  .hero-grid,.feature-split{grid-template-columns:1fr}.hero{padding-top:55px}.hero-tree-demo{max-width:680px;width:100%;margin:auto}
  .steps-grid{grid-template-columns:1fr 1fr}.tree-cards-grid{grid-template-columns:1fr 1fr}
  .footer-grid{grid-template-columns:2fr 1fr 1fr}
  .tree-toolbar{overflow-x:auto}.tree-search{min-width:240px}.toolbar-group{flex:0 0 auto}
}
@media (max-width:760px){
  .container{width:min(100% - 24px,var(--container))}
  .header-inner{height:66px}.brand-text small{display:none}.header-actions .btn{display:none}
  .hero{padding:45px 0 60px}.hero-copy h1{font-size:43px}.hero-copy p{font-size:16px}.hero-tree-demo{min-height:420px;padding:18px}.demo-node{width:130px}.demo-children{gap:5px}.demo-branch .demo-node{font-size:11px;padding:8px}.demo-floating-card{display:none}
  .section{padding:60px 0}.steps-grid,.tree-cards-grid{grid-template-columns:1fr}.feature-panel{padding:18px}.cta-box{padding:30px;display:block}.cta-box .btn{margin-top:16px}
  .footer-grid{grid-template-columns:1fr}.footer-bottom{flex-direction:column}.dashboard-hero,.dashboard-toolbar{align-items:stretch;flex-direction:column}.dashboard-hero h1{font-size:36px}.search-field.compact input{width:100%}
  .wizard-card{padding:28px 20px}.wizard-step h1{font-size:34px}.number-picker{grid-template-columns:repeat(4,1fr)}.number-picker.small{grid-template-columns:repeat(5,1fr)}.child-row{grid-template-columns:1fr 105px}
  .auth-shell{grid-template-columns:1fr}.auth-visual{display:none}.auth-panel{padding:50px 18px;min-height:calc(100vh - 66px)}
  .tree-app-shell{height:calc(100vh - 66px)}.tree-topbar{height:60px}.tree-title-wrap h1{font-size:15px}.save-state{display:none}.tree-top-actions .btn{font-size:0;padding:8px}.tree-top-actions .btn::first-letter{font-size:15px}
  .tree-toolbar{padding:7px}.tree-search{min-width:190px}.tool-btn.wide span{display:none}.generation-strip{overflow:auto;white-space:nowrap}
  .tree-help-chip{display:none}.tree-mini-stats{bottom:8px;left:8px}.person-node{width:170px}
  .form-grid.two-col{grid-template-columns:1fr}.stats-grid-modal{grid-template-columns:1fr 1fr}.export-grid{grid-template-columns:1fr 1fr}.pdf-options{grid-template-columns:1fr}
  .modal-card{padding:23px 18px}.modal-card h3{font-size:23px}.split-actions{align-items:flex-start;gap:15px;flex-direction:column}.split-actions>div{width:100%}.split-actions .btn{flex:1}
}
@media print{
  .site-header,.site-footer,.tree-topbar,.tree-toolbar,.generation-strip,.tree-help-chip,.tree-mini-stats{display:none!important}
  .tree-app-shell{height:auto;overflow:visible}.tree-workspace,.tree-viewport{position:static!important;overflow:visible!important;height:auto!important}.tree-stage{position:relative!important;transform:none!important}
}

.dashboard-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.collaborators-box{border-top:1px solid var(--line);margin-top:24px;padding-top:20px}
.collaborators-box h4{margin:0 0 4px}.collaborators-box>p{margin:0 0 12px;color:var(--muted);font-size:12px}
.collab-add-row{display:grid;grid-template-columns:1fr 130px auto;gap:8px;align-items:center}
.collab-add-row input,.collab-add-row select{border:1px solid var(--line);border-radius:10px;padding:9px 10px;background:#fff}
.collab-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #eee9df;font-size:12px}
.collab-row strong,.collab-row small{display:block}.collab-row small{color:var(--muted)}
@media(max-width:760px){.dashboard-tools{flex-direction:column;align-items:stretch}.collab-add-row{grid-template-columns:1fr}.collab-add-row .btn{width:100%}}

/* =========================================================
   Silwad public edition
   ========================================================= */
.silwad-header{background:rgba(251,249,244,.96);backdrop-filter:blur(14px)}
.silwad-brand .brand-mark{background:#173f36}.silwad-brand .brand-text strong{font-size:17px}.silwad-brand .brand-text small{color:#7b806f}
.silwad-hero-public{position:relative;overflow:hidden;background:linear-gradient(145deg,#f7f3e8 0%,#edf3ed 58%,#e4eee8 100%);padding:78px 0 70px;border-bottom:1px solid #d8ded7}
.silwad-hero-glow{position:absolute;width:520px;height:520px;border-radius:50%;background:radial-gradient(circle,rgba(184,145,75,.22),rgba(184,145,75,0) 68%);left:-160px;top:-210px}
.silwad-hero-layout{position:relative;display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);gap:58px;align-items:center}
.silwad-hero-copy h1{font-size:clamp(52px,6vw,86px);line-height:.98;margin:14px 0 22px;letter-spacing:-2.5px;color:#173f36}.silwad-hero-copy h1 em{font-style:normal;color:#ad8240}.silwad-hero-copy>p{font-size:19px;line-height:1.9;color:#58665e;max-width:730px}
.silwad-hero-stats{display:flex;gap:10px;flex-wrap:wrap;margin-top:30px}.silwad-hero-stats span{background:rgba(255,255,255,.7);border:1px solid #dbe1da;border-radius:14px;padding:10px 14px;color:#667069;font-size:12px}.silwad-hero-stats b{display:block;color:#173f36;font-size:17px;margin-bottom:2px}
.silwad-heritage-card{min-height:380px;border-radius:34px;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(155deg,#173f36,#285c4e);color:#fff;box-shadow:0 30px 70px rgba(23,63,54,.22);overflow:hidden}.silwad-heritage-card strong{font-size:48px;position:relative}.silwad-heritage-card small{font-size:14px;color:#d4e3dc;position:relative}.heritage-tree-icon{width:90px;height:90px;border-radius:50%;display:grid;place-items:center;background:#f1dfb7;color:#173f36;font-size:44px;margin-bottom:22px;position:relative}.heritage-ring{position:absolute;border:1px solid rgba(255,255,255,.12);border-radius:50%}.ring-1{width:270px;height:270px}.ring-2{width:420px;height:420px}
.silwad-public-tree{background:#f3efe7;padding:72px 0 0}.silwad-tree-heading{text-align:center;max-width:850px;margin:0 auto 34px}.silwad-tree-heading h2{font-size:clamp(34px,4vw,55px);line-height:1.15;margin:10px 0 12px;color:#173f36}.silwad-tree-heading>p{color:#657169;font-size:16px;line-height:1.8}
.silwad-main-search{width:min(720px,100%);min-width:0;margin:24px auto 10px;padding:7px 16px;border-radius:18px;border-color:#bcc9c0;box-shadow:0 18px 45px rgba(33,58,48,.11);background:#fff;z-index:90;text-align:right}.silwad-main-search>span{font-size:24px;color:#173f36}.silwad-main-search input{font-size:18px;padding:14px 5px}.silwad-main-search .search-results{top:calc(100% + 9px);border-radius:15px;text-align:right;max-height:380px}.silwad-main-search .search-result{padding:13px 12px;font-size:14px}.silwad-search-hint{font-size:11px;color:#77827b}
.silwad-tree-topbar{max-width:1400px;margin:0 auto;border:1px solid #ddd7ca;border-bottom:0;border-radius:20px 20px 0 0;height:auto;min-height:70px}.silwad-tree-topbar h2{font-size:18px;margin:0}.silwad-public-toolbar{max-width:1400px;margin:0 auto;border-inline:1px solid #ddd7ca;justify-content:center}.silwad-tree-workspace{height:72vh;min-height:620px;max-width:1400px;margin:0 auto;border:1px solid #ddd7ca;border-top:0;border-radius:0 0 20px 20px;background-color:#f8f6f0;margin-bottom:70px}.silwad-public-tree .generation-strip{max-width:1400px;margin:0 auto;border-inline:1px solid #ddd7ca}
.silwad-public-tree .person-node{border-color:#d2c7b4}.silwad-public-tree .person-node .node-name{font-size:15px}.silwad-public-tree .tree-edge{stroke:#9ba99e;stroke-width:2.2}.silwad-public-tree .person-node.is-highlighted{border-color:#b78a40;box-shadow:0 0 0 5px rgba(183,138,64,.15),0 16px 30px rgba(36,54,45,.13)}
.silwad-about{background:#fff}.silwad-info-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:38px}.silwad-info-cards article{border:1px solid #e1ddd3;border-radius:22px;padding:25px;background:#fcfbf7}.silwad-info-cards b{color:#ad8240;font-size:12px}.silwad-info-cards h3{color:#173f36;margin:10px 0 7px}.silwad-info-cards p{color:#69736d;line-height:1.75;margin:0}
.silwad-footer{background:#173f36;color:#dce7e1}.silwad-footer .brand-text strong,.silwad-footer h4{color:#fff}.silwad-footer p,.silwad-footer a,.silwad-footer .footer-bottom{color:#c0d0c8}
.lineage-modal-card{background:linear-gradient(180deg,#fff,#fbf7ee);overflow:hidden}.lineage-hero{text-align:center;padding:10px 30px 22px}.lineage-hero h2{font-size:36px;color:#173f36;margin:9px 0 6px}.lineage-hero p{color:#68736c;margin:0}.lineage-path{display:flex;align-items:center;gap:8px;overflow-x:auto;padding:22px 8px 30px;scrollbar-width:thin}.lineage-person-card{min-width:170px;padding:16px 14px;border:1px solid #d9d1c1;border-radius:16px;background:#fff;text-align:center;box-shadow:0 8px 24px rgba(44,57,49,.06)}.lineage-person-card small,.lineage-person-card span{display:block;color:#798079;font-size:10px}.lineage-person-card strong{display:block;color:#173f36;font-size:15px;margin:5px 0}.lineage-person-card.is-target{background:#173f36;border-color:#173f36;box-shadow:0 14px 32px rgba(23,63,54,.2)}.lineage-person-card.is-target strong{color:#fff}.lineage-person-card.is-target small,.lineage-person-card.is-target span{color:#ceddd5}.lineage-arrow{font-size:25px;color:#b69052;flex:0 0 auto}.lineage-summary{background:#f1eadc;border-radius:15px;padding:15px 18px;text-align:center}.lineage-summary span{display:block;color:#806d50;font-size:11px;margin-bottom:5px}.lineage-summary strong{color:#173f36;line-height:1.9}.lineage-actions{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:20px}
.silwad-footer .footer-grid{grid-template-columns:2fr 1fr 1.2fr}

@media(max-width:900px){.silwad-hero-layout{grid-template-columns:1fr}.silwad-heritage-card{min-height:260px;max-width:600px;width:100%;margin:auto}.silwad-info-cards{grid-template-columns:1fr}.silwad-tree-workspace{border-radius:0;min-height:560px}.silwad-tree-topbar{border-radius:0}.silwad-footer .footer-grid{grid-template-columns:1fr}.lineage-path{justify-content:flex-start}}
@media(max-width:760px){.silwad-hero-public{padding:48px 0 50px}.silwad-hero-copy h1{font-size:48px;letter-spacing:-1px}.silwad-hero-copy>p{font-size:16px}.silwad-heritage-card{display:none}.silwad-public-tree{padding-top:50px}.silwad-tree-heading{padding-inline:12px}.silwad-tree-heading h2{font-size:34px}.silwad-main-search{border-radius:15px}.silwad-main-search input{font-size:16px;padding:12px 3px}.silwad-tree-topbar{padding:10px 12px}.silwad-tree-topbar .tree-title-wrap{min-width:0}.silwad-tree-topbar .tree-title-wrap h2{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:210px}.silwad-public-toolbar{justify-content:flex-start}.silwad-tree-workspace{height:68vh;min-height:500px;margin-bottom:50px}.silwad-info-cards{gap:10px}.lineage-modal-card{padding:22px 14px}.lineage-hero{padding-inline:12px}.lineage-hero h2{font-size:29px}.lineage-person-card{min-width:145px}.lineage-summary strong{font-size:12px}.silwad-hero-stats{display:grid;grid-template-columns:1fr 1fr}.silwad-hero-stats span:last-child{grid-column:1/-1}}
.silwad-main-search .search-result>span{display:flex;flex-direction:column;gap:3px;align-items:flex-start}.silwad-main-search .search-result>span b{color:#173f36}.silwad-main-search .search-result>span small{font-size:10px;color:#7c847e}

/* =========================================================
   Silwad v2.3 — Lineage Beam search experience
   ========================================================= */
.silwad-public-tree.lineage-ray-active .person-node{
  opacity:.20;
  filter:saturate(.45);
  transition:opacity .35s ease,filter .35s ease,box-shadow .35s ease,border-color .35s ease,transform .35s ease;
}
.silwad-public-tree.lineage-ray-active .person-node.is-lineage-ray{
  opacity:1;
  filter:none;
  border-color:#c59a4a;
  box-shadow:0 0 0 4px rgba(197,154,74,.16),0 0 28px rgba(210,166,76,.26),0 15px 35px rgba(32,61,49,.14);
  z-index:8;
}
.silwad-public-tree.lineage-ray-active .person-node.is-lineage-target{
  border-color:#f0bf5d;
  background:linear-gradient(145deg,#fffdf6,#fff7df);
  box-shadow:0 0 0 5px rgba(240,191,93,.23),0 0 42px rgba(240,191,93,.52),0 18px 38px rgba(32,61,49,.18);
  animation:lineageNodePulse 1.8s ease-in-out infinite;
}
.silwad-public-tree.lineage-ray-active .tree-edge{
  opacity:.10;
  transition:opacity .3s ease,stroke .3s ease,stroke-width .3s ease;
}
.silwad-public-tree.lineage-ray-active .tree-edge.is-lineage-ray{
  opacity:1;
  stroke:#e0ab43!important;
  stroke-width:5!important;
  stroke-linecap:round;
  stroke-linejoin:round;
  stroke-dasharray:13 8;
  filter:url(#lineage-glow);
  animation:lineageBeamFlow 1.15s linear infinite;
}
@keyframes lineageBeamFlow{to{stroke-dashoffset:-42}}
@keyframes lineageNodePulse{0%,100%{transform:translateY(0) scale(1);filter:brightness(1)}50%{transform:translateY(-2px) scale(1.025);filter:brightness(1.035)}}

.lineage-spotlight{
  position:absolute;
  z-index:80;
  top:16px;
  left:50%;
  transform:translateX(-50%);
  width:min(760px,calc(100% - 28px));
  background:linear-gradient(135deg,rgba(23,63,54,.97),rgba(34,86,70,.96));
  color:#fff;
  border:1px solid rgba(239,196,105,.42);
  border-radius:20px;
  padding:16px 54px 16px 18px;
  box-shadow:0 22px 55px rgba(22,54,44,.28),0 0 35px rgba(221,170,66,.12);
  direction:rtl;
  backdrop-filter:blur(12px);
  animation:lineageSpotlightIn .35s ease both;
}
@keyframes lineageSpotlightIn{from{opacity:0;transform:translate(-50%,-10px) scale(.985)}to{opacity:1;transform:translate(-50%,0) scale(1)}}
.lineage-spotlight-close{position:absolute;top:12px;left:13px;width:30px;height:30px;border:1px solid rgba(255,255,255,.18);border-radius:50%;background:rgba(255,255,255,.08);color:#fff;font-size:19px;cursor:pointer}
.lineage-spotlight-kicker{display:flex;align-items:center;gap:7px;color:#f4d795;font-size:11px;font-weight:800;margin-bottom:5px}
.lineage-spotlight-kicker .beam-dot{width:8px;height:8px;border-radius:50%;background:#f0bd54;box-shadow:0 0 0 5px rgba(240,189,84,.13),0 0 18px #f0bd54;animation:beamDotPulse 1.2s ease-in-out infinite}
@keyframes beamDotPulse{50%{box-shadow:0 0 0 8px rgba(240,189,84,.06),0 0 26px #f0bd54}}
.lineage-registry-name{display:block;font-size:clamp(18px,2.2vw,28px);line-height:1.55;letter-spacing:-.3px;color:#fff;margin-inline-end:0}
.lineage-spotlight-meta{font-size:11px;color:#cfe0d8;margin-top:3px}
.lineage-spotlight-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:11px}.lineage-spotlight-actions .btn-soft{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.19);color:#fff}.lineage-spotlight-actions .btn-primary{background:#efd08d;color:#173f36;border-color:#efd08d}

.lineage-modal-card .lineage-hero h2{line-height:1.55;max-width:900px;margin-inline:auto}
.silwad-main-search .search-result>span b{line-height:1.55}

@media(max-width:760px){
  .lineage-spotlight{top:10px;width:calc(100% - 16px);border-radius:15px;padding:13px 42px 13px 13px}
  .lineage-registry-name{font-size:17px;line-height:1.55}
  .lineage-spotlight-meta{font-size:10px;line-height:1.5}
  .lineage-spotlight-actions{margin-top:8px}.lineage-spotlight-actions .btn{font-size:10px;padding:7px 9px}
  .silwad-public-tree.lineage-ray-active .tree-edge.is-lineage-ray{stroke-width:6!important}
}

@media (prefers-reduced-motion:reduce){
  .silwad-public-tree.lineage-ray-active .tree-edge.is-lineage-ray,.silwad-public-tree.lineage-ray-active .person-node.is-lineage-target,.lineage-spotlight,.lineage-spotlight-kicker .beam-dot{animation:none!important}
}


/* Silwad v2.4 — three-field paternal search */
.silwad-search-panel{position:relative;width:min(980px,100%);margin:24px auto 10px;padding:14px;background:#fff;border:1px solid #cbd6cf;border-radius:22px;box-shadow:0 18px 45px rgba(33,58,48,.11);z-index:90;text-align:right}
.silwad-search-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.silwad-search-box{position:relative;display:grid;grid-template-columns:auto 1fr;grid-template-areas:"step label" "step input";column-gap:10px;align-items:center;background:#f8faf8;border:1px solid #dce4df;border-radius:15px;padding:10px 12px;transition:.18s}
.silwad-search-box:focus-within{border-color:#7e9d8d;background:#fff;box-shadow:0 0 0 4px rgba(60,108,85,.08)}
.silwad-search-step{grid-area:step;display:grid;place-items:center;width:31px;height:31px;border-radius:50%;background:#173f36;color:#fff;font-weight:900;font-size:13px}
.silwad-search-label{grid-area:label;font-size:12px;font-weight:900;color:#173f36;line-height:1.2}.silwad-search-label small{font-size:9px;color:#8a7660;font-weight:700}
.silwad-search-box input{grid-area:input;width:100%;min-width:0;border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;font-size:16px;padding:5px 0 0;color:#1e392f}
.silwad-search-actions{display:flex;justify-content:center;gap:8px;margin-top:11px}.silwad-paternal-results{position:absolute;top:calc(100% + 8px);right:14px;left:14px;background:#fff;border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow-sm);max-height:390px;overflow:auto;z-index:100;padding:7px}
.silwad-paternal-result{padding:13px 12px}.silwad-paternal-result>span{display:flex;flex-direction:column;align-items:flex-start;gap:3px}.silwad-paternal-result b{color:#173f36;line-height:1.55}.silwad-paternal-result small{font-size:10px;color:#707d75}
.silwad-search-message{padding:16px;color:#68736c;text-align:center;display:grid;gap:3px}.silwad-search-message strong{color:#173f36}.silwad-search-message span{font-size:11px}
@media(max-width:760px){.silwad-search-panel{padding:10px;border-radius:17px}.silwad-search-grid{grid-template-columns:1fr;gap:7px}.silwad-search-box{grid-template-columns:34px 1fr;padding:8px 10px}.silwad-search-box input{font-size:15px}.silwad-search-actions{display:grid;grid-template-columns:1fr 1fr}.silwad-search-actions .btn{width:100%}.silwad-paternal-results{right:8px;left:8px}}

/* =========================================================
   Silwad v2.5 — heritage content + non-blocking search result
   ========================================================= */
.silwad-story-section{background:#fff}.silwad-history-heading{max-width:820px}.silwad-fact-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:36px 0 22px}.silwad-fact-card{background:linear-gradient(180deg,#fcfbf7,#f6f2e9);border:1px solid #e2ddd2;border-radius:20px;padding:20px;min-height:170px}.silwad-fact-card>span{display:block;color:#a47b3f;font-size:11px;font-weight:900;margin-bottom:8px}.silwad-fact-card strong{display:block;color:#173f36;font-size:20px;line-height:1.45;margin-bottom:7px}.silwad-fact-card p{margin:0;color:#68736c;font-size:13px;line-height:1.8}
.silwad-story-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:14px}.silwad-story-card{display:flex;gap:16px;align-items:flex-start;background:#f9fbf9;border:1px solid #e0e7e2;border-radius:22px;padding:22px}.silwad-story-card-wide{grid-column:1/-1}.silwad-story-icon{flex:0 0 48px;width:48px;height:48px;border-radius:15px;background:#173f36;color:#efd59a;display:grid;place-items:center;font-size:22px}.silwad-story-kicker{display:block;color:#a47b3f;font-size:11px;font-weight:900;margin-bottom:3px}.silwad-story-card h3{color:#173f36;margin:0 0 7px;font-size:21px}.silwad-story-card p{color:#68736c;line-height:1.85;margin:0;font-size:14px}
.silwad-timeline-wrap{margin-top:48px}.silwad-section-title{text-align:center;margin-bottom:22px}.silwad-section-title>span{display:block;color:#a47b3f;font-size:12px;font-weight:900}.silwad-section-title h3{font-size:30px;color:#173f36;margin:5px 0}.silwad-timeline{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.silwad-timeline article{position:relative;background:#173f36;color:#fff;border-radius:18px;padding:20px;min-height:150px;overflow:hidden}.silwad-timeline article:after{content:"";position:absolute;width:90px;height:90px;border-radius:50%;border:1px solid rgba(255,255,255,.09);left:-28px;bottom:-30px}.silwad-timeline b{color:#f1d69b;font-size:16px}.silwad-timeline p{color:#d5e1db;line-height:1.75;font-size:13px;margin:8px 0 0}
.silwad-families-section{background:linear-gradient(180deg,#f4efe5,#fbfaf6)}.silwad-family-primary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.silwad-family-primary{display:flex;gap:14px;background:#fff;border:1px solid #dfd8cb;border-radius:20px;padding:20px;box-shadow:0 8px 26px rgba(31,62,49,.04)}.family-letter{flex:0 0 50px;width:50px;height:50px;border-radius:50%;display:grid;place-items:center;background:#173f36;color:#f0d69b;font-size:22px;font-weight:900}.silwad-family-primary h3{margin:0 0 6px;color:#173f36;font-size:22px}.silwad-family-primary p{margin:0;color:#68736c;line-height:1.85;font-size:13px}.silwad-family-reference-card{margin-top:16px;background:#fff;border:1px solid #dfd8cb;border-radius:22px;padding:23px}.silwad-family-reference-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.silwad-family-reference-head h3{margin:3px 0;color:#173f36;font-size:22px}.silwad-family-reference-card>p{color:#68736c;line-height:1.8}.source-status{display:inline-flex;white-space:nowrap;background:#fff4d8;color:#805c1d;border:1px solid #ead39b;border-radius:999px;padding:6px 10px;font-size:10px;font-weight:900}.silwad-family-tags{display:flex;gap:7px;flex-wrap:wrap;margin:16px 0}.silwad-family-tags span{background:#edf4f0;color:#244f40;border:1px solid #d9e6df;border-radius:999px;padding:7px 10px;font-size:12px;font-weight:700}.silwad-source-warning{background:#fff9e9;border-right:4px solid #c69d42;border-radius:10px;padding:12px 14px;color:#715b37;font-size:12px;line-height:1.75}
.silwad-sources-section{background:#fff}.silwad-source-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.silwad-source-card{display:flex;flex-direction:column;gap:7px;background:#f9fbf9;border:1px solid #dfe7e2;border-radius:18px;padding:18px;min-height:165px;transition:.18s}.silwad-source-card:hover{transform:translateY(-2px);border-color:#9cb5a8;box-shadow:0 10px 28px rgba(23,63,54,.08)}.silwad-source-card strong{color:#173f36;font-size:16px}.silwad-source-card span{color:#68736c;line-height:1.75;font-size:12px;flex:1}.silwad-source-card b{color:#a47b3f;font-size:11px}.silwad-source-card.secondary-source{background:#fffcf4;border-style:dashed}

/* Search result is part of the page flow: it no longer covers the tree. */
.lineage-result-strip{max-width:1400px;margin:0 auto 12px;background:linear-gradient(135deg,#fffdf6,#f7f1e5);border:1px solid #dbcaa7;border-radius:16px;padding:13px 16px;box-shadow:0 8px 24px rgba(31,62,49,.06)}.lineage-result-strip[hidden]{display:none!important}.lineage-result-main{display:flex;align-items:center;justify-content:space-between;gap:18px}.lineage-result-copy{min-width:0;display:flex;flex-direction:column;gap:2px}.lineage-result-kicker{color:#9a7339;font-size:10px;font-weight:900}.lineage-result-strip .lineage-registry-name{color:#173f36;font-size:clamp(16px,1.8vw,23px);line-height:1.55}.lineage-result-strip small{color:#6c756f;font-size:10px}.lineage-result-actions{display:flex;gap:7px;flex:0 0 auto}.lineage-result-actions .btn{white-space:nowrap}

/* Legacy overlay is intentionally disabled in v2.5. */
.lineage-spotlight{display:none!important}

@media(max-width:1000px){.silwad-fact-grid{grid-template-columns:1fr 1fr}.silwad-timeline{grid-template-columns:1fr 1fr}.silwad-family-primary-grid{grid-template-columns:1fr}.silwad-source-grid{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.silwad-fact-grid,.silwad-story-grid,.silwad-timeline,.silwad-source-grid{grid-template-columns:1fr}.silwad-story-card-wide{grid-column:auto}.silwad-fact-card{min-height:0}.silwad-family-reference-head{flex-direction:column}.lineage-result-main{align-items:flex-start;flex-direction:column}.lineage-result-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.lineage-result-actions .btn{width:100%}.silwad-source-grid{gap:9px}.silwad-timeline article{min-height:0}}

/* =========================================================
   Silwad v2.6 — Community family requests
   ========================================================= */
.silwad-hero-compact{padding-bottom:58px}
.silwad-request-section{background:linear-gradient(180deg,#eef5f1,#f8f5ed);border-top:1px solid #dce5df;border-bottom:1px solid #e3ded2}
.request-layout{display:grid;grid-template-columns:.82fr 1.18fr;gap:34px;align-items:start}
.request-intro{position:sticky;top:105px}.request-intro h2{font-size:clamp(34px,4vw,52px);line-height:1.18;color:#173f36;margin:9px 0 14px}.request-intro>p{color:#64716a;font-size:16px;line-height:1.85}
.request-steps{display:grid;gap:9px;margin-top:24px}.request-steps>div{display:flex;align-items:center;gap:11px;background:rgba(255,255,255,.62);border:1px solid #dbe5df;border-radius:14px;padding:11px 13px}.request-steps b{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#173f36;color:#fff}.request-steps span{font-weight:700;color:#42534a}
.request-card{background:#fff;border:1px solid #dce4df;border-radius:24px;padding:24px;box-shadow:0 16px 45px rgba(23,63,54,.07)}
.request-alert{border-radius:12px;padding:11px 13px;margin-bottom:14px;font-weight:700}.request-alert.success{background:#e9f7ee;color:#266144;border:1px solid #cae8d5}.request-alert.error{background:#fff0ef;color:#913b35;border:1px solid #f0cbc7}
.request-lineage-fields{display:grid;grid-template-columns:1fr 1fr;gap:11px}.request-lineage-fields label,.request-extra-grid label{display:flex;flex-direction:column;gap:6px}.request-lineage-fields label span,.request-extra-grid label span{font-weight:800;color:#334b40;font-size:13px}.request-lineage-fields label span b{color:#b54d42}.request-lineage-fields input,.request-extra-grid input,.request-extra-grid textarea,.request-son-row input{border:1px solid #cfdad4;border-radius:11px;padding:11px 12px;background:#fff;outline:none;width:100%}.request-lineage-fields input:focus,.request-extra-grid input:focus,.request-extra-grid textarea:focus,.request-son-row input:focus{border-color:#5d8d77;box-shadow:0 0 0 3px rgba(53,107,83,.08)}
.request-matches{margin:15px 0;border:1px solid #d8e4dd;border-radius:15px;padding:9px;background:#f8fbf9}.request-match-title{padding:6px 7px 10px}.request-match-title strong,.request-match-title small{display:block}.request-match-title small{color:#6c7871;margin-top:3px}.request-match{width:100%;display:flex;justify-content:space-between;gap:12px;align-items:center;text-align:right;border:0;border-top:1px solid #e8edea;background:transparent;padding:10px 8px;cursor:pointer}.request-match:hover{background:#eef6f2}.request-match>span b,.request-match>span small{display:block}.request-match>span b{color:#173f36}.request-match>span small{color:#738078;font-size:11px;margin-top:3px}.request-match em{font-style:normal;border-radius:999px;padding:4px 7px;background:#edf2ef;color:#607067;font-size:10px}.request-match.is-exact em{background:#e1f2e8;color:#28704e}.request-match-empty{padding:10px;color:#6c7771;font-size:12px}
.request-anchor-selected{position:relative;margin:15px 0;padding:13px 50px 13px 14px;border-radius:14px;background:#173f36;color:#fff}.request-anchor-selected span,.request-anchor-selected strong,.request-anchor-selected small{display:block}.request-anchor-selected span{font-size:10px;color:#f2d494;font-weight:800}.request-anchor-selected strong{font-size:16px;margin:3px 0}.request-anchor-selected small{color:#cfddd6}.request-anchor-selected button{position:absolute;left:11px;top:50%;transform:translateY(-50%);border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.09);color:#fff;border-radius:8px;padding:6px 8px;cursor:pointer}
.request-sons-block{margin-top:17px;border-top:1px solid #e5eae7;padding-top:16px}.request-block-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:9px}.request-block-head strong,.request-block-head small{display:block}.request-block-head strong{color:#173f36}.request-block-head small{color:#6e7973;margin-top:2px}.request-block-head button,.request-son-row button{border:1px solid #d5dfd9;background:#f7faf8;border-radius:9px;padding:7px 9px;color:#315746;cursor:pointer}.request-son-row{display:grid;grid-template-columns:1fr auto;gap:7px;margin:7px 0}.request-extra-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-top:16px}.request-confirm{display:flex;align-items:flex-start;gap:8px;margin:15px 0;font-size:12px;color:#5e6c64;line-height:1.6}.request-confirm input{margin-top:3px}.request-form-message{min-height:5px;margin:7px 0}.request-form-message.error{color:#a13d3d;font-weight:700}.request-honeypot{position:absolute!important;right:-9999px!important;opacity:0!important;pointer-events:none!important}
.silwad-story-section{scroll-margin-top:80px}.silwad-public-tree{scroll-margin-top:75px}.silwad-request-section{scroll-margin-top:75px}

@media(max-width:900px){.request-layout{grid-template-columns:1fr}.request-intro{position:static}.request-lineage-fields,.request-extra-grid{grid-template-columns:1fr}}
@media(max-width:600px){.request-card{padding:17px 14px;border-radius:18px}.request-block-head{align-items:flex-start;flex-direction:column}.request-lineage-fields{gap:9px}.request-son-row{grid-template-columns:1fr}.request-son-row button{justify-self:start}.request-steps{gap:6px}}

/* =========================================================
   Silwad v2.7 — Community accounts, private family files
   ========================================================= */
.silwad-single-search{width:min(760px,100%);margin:22px auto 8px;position:relative}.silwad-single-search input{font-size:18px;padding:14px 8px}.silwad-single-search .search-results{top:calc(100% + 8px);max-height:390px;overflow:auto}.silwad-single-search .search-result{align-items:center}.silwad-single-search .search-result>span{display:flex;flex-direction:column;align-items:flex-start;gap:3px}.silwad-single-search .search-result>span b{font-size:15px;color:#173f36;line-height:1.55}.silwad-single-search .search-result>span small{font-size:10px;color:#718078}
.member-community-cta{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(270px,.65fr);gap:28px;align-items:center;background:linear-gradient(135deg,#fff,#f5f8f5);border:1px solid #d8e3dc;border-radius:28px;padding:34px;box-shadow:0 18px 50px rgba(23,63,54,.07)}.member-community-cta h2{font-size:clamp(30px,4vw,46px);line-height:1.2;color:#173f36;margin:8px 0 12px}.member-community-cta p{color:#637069;line-height:1.85;font-size:15px}.member-community-points{display:flex;gap:8px;flex-wrap:wrap;margin-top:17px}.member-community-points span{background:#eef6f2;border:1px solid #dbe9e1;border-radius:999px;padding:7px 10px;font-size:11px;color:#365d4d;font-weight:700}.member-community-actions{display:flex;flex-direction:column;gap:10px}
.private-family-lock{margin-top:16px;border:1px dashed #c9d6cf;background:#f7faf8;border-radius:15px;padding:18px;text-align:center}.private-family-lock>span{font-size:25px;display:block}.private-family-lock strong{display:block;color:#173f36;margin:5px 0}.private-family-lock p{color:#66736c;font-size:12px;line-height:1.7;margin:5px auto 12px;max-width:330px}.private-family-lock>div{display:flex;gap:7px;justify-content:center;flex-wrap:wrap}.private-family-details{margin-top:12px}
.member-auth-page{padding:60px 0 90px;background:linear-gradient(180deg,#f5f2e9,#eef5f1);min-height:calc(100vh - 78px)}.member-auth-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(420px,1.1fr);gap:45px;align-items:start}.member-auth-intro{position:sticky;top:110px;padding:30px 0}.member-auth-intro h1{font-size:clamp(38px,5vw,62px);line-height:1.12;color:#173f36;margin:10px 0 18px}.member-auth-intro>p{font-size:16px;line-height:1.9;color:#637069}.member-auth-points{display:grid;gap:9px;margin-top:22px}.member-auth-points span{background:rgba(255,255,255,.72);border:1px solid #dce6e0;border-radius:12px;padding:10px 12px;color:#385b4d;font-weight:700}.member-auth-card{background:#fff;border:1px solid #dbe4df;border-radius:24px;padding:28px;box-shadow:0 18px 50px rgba(23,63,54,.08)}.member-auth-card>h2{font-size:30px;color:#173f36;margin:0 0 20px}.claim-box{border:1px solid #dfe7e2;border-radius:18px;padding:16px;margin:18px 0;background:#fbfdfc}.claim-tabs{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-bottom:15px}.claim-tabs button{border:1px solid #d5dfd9;background:#f5f8f6;border-radius:10px;padding:10px;font-weight:800;color:#53665c;cursor:pointer}.claim-tabs button.is-active{background:#173f36;color:#fff;border-color:#173f36}.claim-help{font-size:12px;color:#6b7770;line-height:1.7}.member-search-results{border:1px solid #dbe4df;background:#fff;border-radius:13px;padding:6px;max-height:330px;overflow:auto;margin:8px 0}.member-search-results button{display:flex;width:100%;justify-content:space-between;gap:12px;text-align:right;border:0;border-bottom:1px solid #eef2ef;background:#fff;padding:10px;border-radius:8px;cursor:pointer}.member-search-results button:hover{background:#eef6f2}.member-search-results button strong,.member-search-results button small{display:block}.member-search-results button strong{color:#173f36}.member-search-results button small{color:#718078;font-size:10px;margin-top:2px}.member-search-empty{padding:12px;color:#6d7972}.member-selected-person{position:relative;background:#173f36;color:#fff;border-radius:13px;padding:13px 48px 13px 13px;margin:9px 0}.member-selected-person span,.member-selected-person strong,.member-selected-person small{display:block}.member-selected-person span{font-size:10px;color:#f1d392}.member-selected-person strong{font-size:16px;margin:3px 0}.member-selected-person small{color:#cfddd5}.member-selected-person button{position:absolute;left:10px;top:50%;transform:translateY(-50%);border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.08);color:#fff;border-radius:8px;padding:6px;cursor:pointer}.member-suggestion-title{padding:8px;font-weight:800;color:#173f36}
.member-area-page{padding:48px 0 90px;background:#f5f2ea;min-height:calc(100vh - 78px)}.member-area-top{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:25px}.member-area-top h1{margin:4px 0 0;font-size:40px;color:#173f36}.member-status-card{max-width:760px;margin:60px auto;background:#fff;border:1px solid #dbe3de;border-radius:24px;padding:38px;text-align:center;box-shadow:0 18px 50px rgba(23,63,54,.08)}.member-status-card.pending{border-color:#eadcb5;background:#fffdf6}.member-status-card.rejected{border-color:#eccccc}.member-status-icon{width:65px;height:65px;border-radius:50%;display:grid;place-items:center;background:#f1e7ca;color:#7e6128;font-size:28px;margin:0 auto 15px}.member-profile-hero{display:flex;justify-content:space-between;gap:25px;align-items:center;background:linear-gradient(135deg,#173f36,#285f4d);color:#fff;border-radius:26px;padding:25px 28px;box-shadow:0 18px 45px rgba(23,63,54,.18)}.member-profile-person{display:flex;align-items:center;gap:17px}.member-profile-person img{width:88px;height:88px;border-radius:50%;object-fit:cover;border:3px solid rgba(255,255,255,.35);background:#edf2ef}.member-profile-person span{font-size:11px;color:#d7e4dd}.member-profile-person h2{margin:3px 0;font-size:28px}.member-profile-person p{margin:0;color:#cee0d7}.member-profile-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.member-profile-actions .btn-soft{background:rgba(255,255,255,.1);color:#fff;border-color:rgba(255,255,255,.18)}.member-private-note{margin:13px 0;background:#edf7f2;border:1px solid #d3e7dd;border-radius:12px;padding:10px 13px;color:#355c4c;font-size:12px}.member-report-tabs{display:flex;gap:7px;flex-wrap:wrap;margin:22px 0}.member-report-tabs a{background:#fff;border:1px solid #dce3df;border-radius:999px;padding:8px 11px;color:#315447;font-weight:700}.family-report-section{background:#fff;border:1px solid #dfe4e1;border-radius:20px;padding:20px;margin:15px 0}.family-report-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px}.family-report-heading h2{margin:0;color:#173f36}.family-report-heading span{background:#edf5f1;border-radius:999px;padding:5px 9px;color:#426356;font-size:11px}.family-private-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.family-private-card{display:flex;align-items:center;gap:11px;border:1px solid #e2e7e4;border-radius:14px;padding:11px;background:#fbfdfc}.family-private-card img{width:55px;height:55px;border-radius:50%;object-fit:cover;background:#edf2ef}.family-private-card strong,.family-private-card small,.family-private-card span{display:block}.family-private-card strong{color:#173f36}.family-private-card small,.family-private-card span{font-size:10px;color:#718078;margin-top:2px}.family-report-empty{padding:20px;text-align:center;color:#77827c;background:#f8faf9;border-radius:12px}.member-contribute-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-top:20px}.member-contribute-card{background:#fff;border:1px solid #dfe5e1;border-radius:20px;padding:20px}.member-contribute-card h2{color:#173f36;margin:5px 0 8px}.member-contribute-card>p{color:#68756e;line-height:1.7;font-size:13px}.member-child-row{display:grid;grid-template-columns:1fr auto;gap:7px;margin:7px 0}.member-child-row input{border:1px solid #d3ddd7;border-radius:10px;padding:10px}.member-child-row button{border:1px solid #d8dfdb;border-radius:9px;background:#f8faf9;color:#8b3e3e}.member-contribute-card .btn-block{width:100%;margin-top:12px}.member-requests-list{background:#fff;border:1px solid #dfe5e1;border-radius:20px;padding:20px;margin-top:16px}.member-request-rows{display:grid;gap:7px}.member-request-rows>div{display:grid;grid-template-columns:1fr auto auto;gap:12px;align-items:center;border-bottom:1px solid #eef1ef;padding:9px 0}.member-request-rows span{color:#758179;font-size:11px}.member-request-rows em{font-style:normal;border-radius:999px;padding:4px 8px;font-size:10px}.status-pending{background:#fff3d6;color:#7e6128}.status-approved{background:#e7f4ec;color:#2d6b49}.status-rejected{background:#fae9e8;color:#8a3939}
@media print{.site-header,.site-footer,.member-profile-actions,.member-report-tabs,.member-contribute-grid,.member-requests-list,.member-area-top .btn{display:none!important}.member-area-page{background:#fff;padding:0}.member-profile-hero{box-shadow:none}.family-report-section{break-inside:avoid}}
@media(max-width:900px){.member-community-cta,.member-auth-grid,.member-contribute-grid{grid-template-columns:1fr}.member-auth-intro{position:static;padding:0}.member-profile-hero{align-items:flex-start;flex-direction:column}.member-profile-actions{justify-content:flex-start}.family-private-grid{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.member-auth-page,.member-area-page{padding-top:30px}.member-auth-card{padding:20px 15px;border-radius:18px}.member-auth-intro h1{font-size:38px}.claim-tabs{grid-template-columns:1fr}.member-area-top{align-items:flex-start}.member-area-top h1{font-size:32px}.member-profile-person{align-items:flex-start}.member-profile-person img{width:70px;height:70px}.member-profile-person h2{font-size:22px}.family-private-grid{grid-template-columns:1fr}.member-request-rows>div{grid-template-columns:1fr}.member-community-cta{padding:23px 18px}.silwad-single-search input{font-size:16px}}
.member-branch-row>div{display:grid;grid-template-columns:1fr 1.25fr;gap:7px}.member-branch-row>div input{width:100%}.member-branch-row{grid-template-columns:1fr auto;align-items:end}@media(max-width:650px){.member-branch-row>div{grid-template-columns:1fr}}

/* =========================================================
   Silwad v2.8 — registration WhatsApp + family photo editing
   ========================================================= */
.member-always-name{background:#f7faf8;border:1px solid #dbe5df;border-radius:14px;padding:12px;margin-bottom:14px}.member-always-name>span small{font-weight:500;color:#78827c;margin-inline-start:4px}
.whatsapp-required-box{border:1px solid #d8e4dd;background:#f8fbf9;border-radius:16px;padding:14px;margin:16px 0 18px}.whatsapp-required-title{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:10px}.whatsapp-required-title strong{color:#173f36;font-size:15px}.whatsapp-required-title span{font-size:11px;color:#6d7972}.whatsapp-row{display:grid;grid-template-columns:minmax(220px,.9fr) minmax(240px,1.1fr);gap:10px;align-items:end}.whatsapp-row .field{margin:0}.whatsapp-country-field select{min-height:46px}.whatsapp-number-field input{min-height:46px;direction:ltr;text-align:left}.whatsapp-help{display:block;margin-top:8px;color:#6d7972;font-size:10px}
.family-private-photo-wrap{position:relative;flex:0 0 auto}.family-private-photo-wrap img{display:block}.family-photo-change{display:block;width:100%;margin-top:6px;border:1px solid #d8e2dc;background:#f7faf8;color:#245446;border-radius:8px;padding:5px 7px;font-size:10px;font-weight:700;cursor:pointer}.family-photo-change:hover{background:#eaf4ef}.member-photo-permission-note{display:block;color:#6a766f;font-size:10px;margin:-6px 0 10px}.member-contribute-card#member-photo{scroll-margin-top:100px}
@media(max-width:700px){.whatsapp-required-title{align-items:flex-start;flex-direction:column}.whatsapp-row{grid-template-columns:1fr}.whatsapp-country-field select,.whatsapp-number-field input{width:100%}}

/* v2.9 registration hardening */
.claim-box-v29 .existing-name-search-always{display:block!important;visibility:visible!important;opacity:1!important;margin-top:14px;padding-top:14px;border-top:1px solid #e4eae6}
.claim-box-v29 .claim-section-title{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:10px}.claim-box-v29 .claim-section-title strong{color:#173f36}.claim-box-v29 .claim-section-title small{color:#718078;font-size:10px}
.member-name-search-field input{min-height:54px;font-size:17px;border:2px solid #9bb8a8!important;background:#fffdf8!important}
.whatsapp-v29{border:2px solid #c8ddd1!important;background:#f8fcfa!important}.whatsapp-important-note{display:flex;gap:11px;align-items:flex-start;background:#fff4d6;border:1px solid #edd08a;border-radius:13px;padding:12px 13px;margin-bottom:14px}.whatsapp-important-note>span{flex:0 0 28px;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#c38a21;color:#fff;font-weight:900}.whatsapp-important-note strong{display:block;color:#6d4c12;margin-bottom:2px}.whatsapp-important-note p{margin:0;color:#6d5d3e;font-size:12px;line-height:1.65}.whatsapp-required-title em{font-style:normal;color:#a43f27;background:#fde7df;padding:3px 7px;border-radius:999px;font-size:10px;margin-inline-start:5px}
.whatsapp-row-v29{grid-template-columns:minmax(250px,.95fr) minmax(270px,1.05fr)!important}.phone-input-wrap{display:flex;direction:ltr;border:1px solid #cfd9d3;border-radius:10px;background:#fff;overflow:hidden;min-height:46px}.phone-input-wrap:focus-within{border-color:#6e927f;box-shadow:0 0 0 3px rgba(32,91,70,.08)}.phone-input-wrap .dial-code-preview{display:flex;align-items:center;justify-content:center;min-width:72px;padding:0 10px;background:#edf5f1;border-right:1px solid #d7e2dc;color:#173f36;font-weight:800}.phone-input-wrap input{border:0!important;box-shadow:none!important;border-radius:0!important;min-width:0;flex:1}
@media(max-width:700px){.claim-box-v29 .claim-section-title{align-items:flex-start;flex-direction:column}.whatsapp-row-v29{grid-template-columns:1fr!important}.phone-input-wrap{width:100%}}

/* =========================================================
   Silwad v3 — private family profiles + public nickname only
   ========================================================= */
.person-node .node-nickname{display:inline-flex;margin-top:5px;padding:3px 7px;border-radius:999px;background:#fff3d7;color:#79591f;font-size:10px;font-weight:800;max-width:120px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.person-drawer-nickname{display:inline-flex;margin-top:4px;padding:4px 8px;border-radius:999px;background:#fff1cf;color:#79591f;font-size:11px;font-weight:800}.private-family-lock.compact{margin-top:14px;padding:12px 13px}.private-family-lock.compact p{margin:5px 0 0}
.member-hero-nickname{display:inline-flex;margin-top:4px;padding:5px 9px;border-radius:999px;background:rgba(239,208,141,.17);border:1px solid rgba(239,208,141,.35);color:#f1d699;font-size:12px;font-weight:800}.family-data-card{align-items:flex-start}.family-data-card.is-self{border-color:#b8d2c5;background:linear-gradient(145deg,#fff,#f4faf6)}.family-data-body{min-width:0;flex:1}.family-data-name-row{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.family-nickname-badge{display:inline-flex!important;margin:0!important;padding:3px 7px;border-radius:999px;background:#fff0ce;color:#76551e!important;font-size:9px!important;font-weight:800}.family-data-list{display:grid;gap:4px;margin-top:7px}.family-data-list span{font-size:11px!important;line-height:1.55;color:#5d6b64!important}.family-data-list b{color:#254f40}.family-edit-data{margin-top:9px}.family-private-grid-single{grid-template-columns:minmax(0,620px)}
.member-profile-edit-grid{grid-template-columns:1.35fr .65fr}.member-profile-edit-card{scroll-margin-top:95px}.member-profile-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.member-profile-form-grid .field{margin:0}.member-profile-form-grid .full{grid-column:1/-1}.member-profile-form-grid textarea{resize:vertical}.member-private-note strong{color:#173f36}
@media(max-width:900px){.member-profile-edit-grid{grid-template-columns:1fr}.member-profile-form-grid{grid-template-columns:1fr}.member-profile-form-grid .full{grid-column:auto}}
@media(max-width:600px){.family-data-name-row{align-items:flex-start;flex-direction:column;gap:3px}.family-private-grid-single{grid-template-columns:1fr}}
.silwad-paternal-result .search-nickname{display:inline-flex;margin:3px 0;padding:2px 6px;border-radius:999px;background:#fff0cf;color:#76551e;font-size:9px;font-style:normal;font-weight:800}

/* =========================================================
   Silwad v3.1 — Official emblem + olive & fig memory garden
   ========================================================= */
.silwad-logo-mark{
  width:54px;height:54px;padding:2px;border-radius:50%;overflow:hidden;
  background:radial-gradient(circle at 50% 42%,#fffdf5 0 61%,#e7cf91 62% 68%,#173f36 69% 100%);
  border:1px solid rgba(183,139,63,.44);box-shadow:0 5px 17px rgba(23,63,54,.13);
}
.silwad-logo-mark img{width:100%;height:100%;object-fit:contain;display:block;filter:drop-shadow(0 2px 2px rgba(0,0,0,.08))}
.silwad-brand{gap:10px}.silwad-brand .brand-text strong{color:#173f36}.silwad-brand .brand-text small{color:#8a6a32}
.silwad-footer-brand{display:inline-flex!important;align-items:center;gap:10px;margin-bottom:8px}.footer-logo-seal{width:58px;height:58px;border-radius:50%;background:#f7f0dc;border:1px solid rgba(231,207,145,.45);display:grid;place-items:center;overflow:hidden;box-shadow:0 8px 22px rgba(0,0,0,.12)}.footer-logo-seal img{width:54px;height:54px;object-fit:contain}

.silwad-heritage-scene{isolation:isolate;position:relative}.silwad-heritage-scene>.container{position:relative;z-index:4}.silwad-hero-public.silwad-heritage-scene{overflow:hidden}
.silwad-emblem-card{background:radial-gradient(circle at 50% 40%,#fffefa 0,#f7f0db 60%,#ebd69e 100%)!important;border:1px solid rgba(171,127,49,.48)!important;box-shadow:0 30px 70px rgba(47,61,50,.16),inset 0 0 0 8px rgba(255,255,255,.34)!important;min-height:410px!important;color:#173f36!important;overflow:hidden;position:relative}
.silwad-emblem-card:before{content:"";position:absolute;inset:12px;border-radius:26px;border:1px solid rgba(135,103,41,.18);pointer-events:none}
.silwad-hero-emblem{position:relative;z-index:3;width:min(92%,390px);height:auto;object-fit:contain;filter:drop-shadow(0 16px 25px rgba(72,59,29,.18));animation:emblemFloat 6s ease-in-out infinite}
.silwad-emblem-card small{position:relative;z-index:3;color:#6d5526!important;font-weight:800;letter-spacing:.06em;margin-top:-4px}
.emblem-halo{position:absolute;border-radius:50%;border:1px solid rgba(181,137,62,.18);inset:auto;pointer-events:none}.emblem-halo-one{width:330px;height:330px;background:rgba(255,255,255,.2);box-shadow:0 0 70px rgba(211,164,78,.13)}.emblem-halo-two{width:440px;height:440px;border-style:dashed;animation:emblemRing 24s linear infinite}
@keyframes emblemFloat{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-7px) rotate(.35deg)}}
@keyframes emblemRing{to{transform:rotate(360deg)}}

.heritage-botanical{--branch-x:0px;--branch-y:0px;--branch-r:0deg;position:absolute;z-index:1;width:min(29vw,360px);height:auto;opacity:.68;pointer-events:none;transform:translate3d(var(--branch-x),var(--branch-y),0) rotate(var(--branch-r));transform-origin:center bottom;will-change:transform;transition:opacity .3s ease;filter:drop-shadow(0 16px 20px rgba(40,51,36,.08))}
.heritage-botanical svg{width:100%;height:auto;overflow:visible}.heritage-branch-right{right:-95px;bottom:-110px}.heritage-branch-left{left:-90px;top:-55px}
.heritage-botanical .heritage-stem,.heritage-botanical .heritage-twig{fill:none;stroke:#6c4a2a;stroke-width:9;stroke-linecap:round;stroke-linejoin:round}.heritage-botanical .heritage-twig{stroke-width:5.5}.heritage-botanical .fig-stem{stroke:#735337}.heritage-botanical .fig-twig{stroke:#735337;stroke-width:5}
.heritage-leaf{pointer-events:auto;cursor:default;transform-box:fill-box;transform-origin:center;transition:filter .25s ease,opacity .25s ease}.olive-leaves .heritage-leaf{fill:#66773b;stroke:#405125;stroke-width:2}.fig-leaf{fill:#71864b;stroke:#41572b;stroke-width:2}.heritage-fruit{pointer-events:auto;cursor:default;transform-box:fill-box;transform-origin:center;transition:filter .25s ease}.heritage-fruit.olive{fill:#9b8435;stroke:#67551e;stroke-width:2}.heritage-fruit.fig{fill:#675535;stroke:#483720;stroke-width:2}
.heritage-botanical .heritage-branch-sway{transform-box:fill-box;transform-origin:center bottom;animation:heritageSway 7.5s ease-in-out infinite}.heritage-botanical .fig-sway{animation-delay:-2.7s;animation-duration:9s}.heritage-botanical .heritage-leaf:nth-child(3n){animation:leafFlutter 4.7s ease-in-out infinite}.heritage-botanical .heritage-leaf:nth-child(4n){animation:leafFlutter 5.9s ease-in-out infinite reverse}.heritage-botanical.is-awake{opacity:.86}.heritage-botanical.is-awake .heritage-leaf,.heritage-botanical.is-awake .heritage-fruit{filter:brightness(1.12) saturate(1.08)}
@keyframes heritageSway{0%,100%{transform:rotate(-1.1deg)}50%{transform:rotate(1.5deg)}}
@keyframes leafFlutter{0%,100%{filter:brightness(1)}50%{filter:brightness(1.13) saturate(1.08)}}

.heritage-memory-ribbon{position:relative;overflow:hidden;background:linear-gradient(90deg,#173f36,#245e4c 50%,#173f36);color:#fff;border-block:1px solid rgba(226,190,114,.25);isolation:isolate;min-height:112px;display:flex;align-items:center}.heritage-memory-inner{position:relative;z-index:3;display:flex;align-items:center;justify-content:center;gap:16px;padding-block:17px}.heritage-memory-inner img{width:76px;height:76px;object-fit:contain;filter:drop-shadow(0 8px 16px rgba(0,0,0,.22))}.heritage-memory-inner p{margin:0;display:flex;flex-direction:column;gap:2px}.heritage-memory-inner strong{font-size:16px;color:#f2d98e}.heritage-memory-inner span{font-size:13px;color:#d7e3dc}
.heritage-memory-branch{--branch-x:0px;--branch-y:0px;--branch-r:0deg;position:absolute;z-index:1;display:flex;align-items:center;gap:7px;font-size:48px;color:#a7b96e;opacity:.32;transform:translate3d(var(--branch-x),var(--branch-y),0) rotate(var(--branch-r));transition:.2s;pointer-events:none}.memory-olive{right:3%;transform-origin:right center}.memory-fig{left:3%;color:#c6a46b;transform-origin:left center}.heritage-memory-branch span:nth-child(2){font-size:.72em;transform:rotate(23deg)}.heritage-memory-branch span:nth-child(3){font-size:.36em}.heritage-memory-branch span:nth-child(4){font-size:.82em;transform:rotate(-18deg)}

@media(max-width:1050px){.heritage-botanical{opacity:.42;width:min(34vw,300px)}.heritage-branch-right{right:-125px}.heritage-branch-left{left:-115px}.silwad-emblem-card{min-height:340px!important}.silwad-hero-emblem{width:min(80%,330px)}}
@media(max-width:760px){
  .silwad-logo-mark{width:46px;height:46px}.silwad-brand .brand-text strong{font-size:15px}.silwad-brand .brand-text small{font-size:10px}
  .silwad-heritage-card.silwad-emblem-card{display:flex!important;min-height:230px!important;max-width:340px!important;margin-top:6px!important}.silwad-hero-emblem{width:205px}.silwad-emblem-card small{font-size:10px}.emblem-halo-one{width:190px;height:190px}.emblem-halo-two{width:255px;height:255px}
  .heritage-botanical{opacity:.20;width:220px}.heritage-branch-right{right:-135px;bottom:-40px}.heritage-branch-left{left:-145px;top:0}.heritage-botanical .heritage-leaf,.heritage-botanical .heritage-fruit{pointer-events:none}
  .heritage-memory-ribbon{min-height:96px}.heritage-memory-inner{gap:10px;padding-inline:18px}.heritage-memory-inner img{width:58px;height:58px}.heritage-memory-inner strong{font-size:14px}.heritage-memory-inner span{font-size:11px;line-height:1.55}.heritage-memory-branch{font-size:35px;opacity:.16}.memory-olive{right:-24px}.memory-fig{left:-24px}
  .footer-logo-seal{width:50px;height:50px}.footer-logo-seal img{width:47px;height:47px}
}
@media(max-width:480px){.heritage-botanical{display:none}.silwad-heritage-card.silwad-emblem-card{min-height:205px!important}.silwad-hero-emblem{width:180px}.heritage-memory-branch{display:none}.heritage-memory-inner{justify-content:flex-start}.heritage-memory-inner p{max-width:250px}}
@media(prefers-reduced-motion:reduce){.silwad-hero-emblem,.emblem-halo-two,.heritage-botanical .heritage-branch-sway,.heritage-botanical .heritage-leaf{animation:none!important}.heritage-botanical,.heritage-memory-branch{transform:none!important}}

/* =========================================================
   Silwad v3.2 — restrained botanical olive & fig identity
   ========================================================= */
.botanical-scene{position:relative;isolation:isolate;overflow:hidden}
.botanical-scene>.container,.botanical-scene>.silwad-hero-glow{position:relative;z-index:2}
.botanical-piece{
  --bx:0px;--by:0px;--br:0deg;
  position:absolute;z-index:1;display:block;height:auto;pointer-events:none;user-select:none;
  transform:translate3d(var(--bx),var(--by),0) rotate(var(--br));
  transform-origin:50% 86%;will-change:transform;
  filter:drop-shadow(0 16px 22px rgba(32,47,35,.10));
  transition:opacity .25s ease;
}
.botanical-olive.botanical-right{
  width:min(29vw,360px);right:-82px;bottom:-112px;opacity:.48;
}
.botanical-story-fig{
  width:min(27vw,335px);left:-96px;bottom:-68px;opacity:.26;
  transform-origin:44% 88%;
}
.silwad-story-section.botanical-scene>.container{position:relative;z-index:2}

/* Remove the old emoji/vector branch treatment completely in case cached markup survives briefly. */
.heritage-botanical,.heritage-memory-branch{display:none!important}

@media(max-width:1050px){
  .botanical-olive.botanical-right{width:285px;right:-105px;bottom:-82px;opacity:.32}
  .botanical-story-fig{width:265px;left:-112px;bottom:-40px;opacity:.18}
}
@media(max-width:760px){
  .botanical-olive.botanical-right{width:215px;right:-118px;bottom:-28px;opacity:.18}
  .botanical-story-fig{width:215px;left:-132px;bottom:-24px;opacity:.12}
}
@media(max-width:520px){
  .botanical-piece{display:none}
}
@media(prefers-reduced-motion:reduce){.botanical-piece{transform:none!important}}

/* =========================================================
   Silwad v3.3 — single real olive-tree photo background
   ========================================================= */
/* All previous decorative olive/fig branches are retired. */
.botanical-piece,
.heritage-botanical,
.heritage-memory-ribbon,
.heritage-memory-branch{display:none!important}

.olive-photo-hero{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  background:#f5f1e8!important;
}
.olive-photo-hero::before{
  content:"";
  position:absolute;
  inset:-10px;
  z-index:0;
  background-image:url('../img/olive-tree-bg.webp');
  background-repeat:no-repeat;
  background-size:cover;
  background-position:center center;
  opacity:.46;
  filter:blur(3.2px) saturate(.78);
  transform:scale(1.025);
  pointer-events:none;
}
.olive-photo-hero::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:
    linear-gradient(90deg,rgba(248,245,237,.80) 0%,rgba(248,245,237,.70) 46%,rgba(248,245,237,.88) 100%),
    linear-gradient(180deg,rgba(255,253,247,.18),rgba(243,239,229,.36));
  pointer-events:none;
}
.olive-photo-hero>.container{position:relative;z-index:2}
.olive-photo-hero .silwad-hero-copy{position:relative;z-index:3}
.olive-photo-hero .silwad-emblem-card{position:relative;z-index:3}

@media(max-width:900px){
  .olive-photo-hero::before{background-position:36% center;opacity:.36;filter:blur(3.8px) saturate(.72)}
  .olive-photo-hero::after{background:rgba(248,245,237,.80)}
}
@media(max-width:600px){
  .olive-photo-hero::before{background-position:30% center;opacity:.25;filter:blur(4.5px) saturate(.68)}
  .olive-photo-hero::after{background:rgba(250,248,242,.86)}
}

/* v3.6: classic card tree, rendered from the oldest ancestor at the bottom toward newer generations above. */

/* v4.0 support / donation bar */
.silwad-support-bar{background:linear-gradient(90deg,#123c31,#215b49);color:#fff;border-bottom:1px solid rgba(255,255,255,.12);position:relative;z-index:110}
.silwad-support-inner{min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding-block:7px}.silwad-support-copy{display:flex;flex-direction:column;gap:1px}.silwad-support-copy strong{font-size:13px}.silwad-support-copy span{font-size:10px;color:#d4e4dc}.silwad-support-contacts{display:flex;gap:7px;flex-wrap:wrap}.silwad-support-contacts a{display:inline-flex;align-items:center;justify-content:center;background:rgba(255,255,255,.11);border:1px solid rgba(255,255,255,.18);color:#fff;border-radius:999px;padding:6px 10px;font-size:11px;font-weight:700;text-decoration:none;direction:ltr}.silwad-support-contacts a:hover{background:#efd08d;color:#173f36;border-color:#efd08d}
@media(max-width:800px){.silwad-support-inner{align-items:stretch;flex-direction:column;gap:6px;padding-block:8px}.silwad-support-copy{text-align:center}.silwad-support-contacts{display:grid;grid-template-columns:1fr 1fr}.silwad-support-contacts a{font-size:10px;padding:6px 4px}}
@media(max-width:480px){.silwad-support-copy strong{font-size:11px;line-height:1.45}.silwad-support-copy span{display:none}.silwad-support-contacts{grid-template-columns:1fr}.silwad-support-contacts a{font-size:10px}}

/* v4.1 — paternal uncles mini family trees inside approved member accounts */
.family-uncles-section{overflow:hidden}.family-uncles-intro{margin:-2px 0 16px;color:#68756e;font-size:13px;line-height:1.75}.family-uncle-trees{display:grid;gap:18px}.uncle-mini-tree{border:1px solid #dfe6e2;border-radius:18px;background:linear-gradient(180deg,#fbfdfc,#f6f3eb);padding:17px;overflow-x:auto}.uncle-tree-title{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:14px}.uncle-tree-title>span{background:#173f36;color:#fff;border-radius:999px;padding:5px 9px;font-size:10px;font-weight:800}.uncle-tree-title>strong{font-size:19px;color:#173f36}.uncle-tree-title>small{color:#748078;font-size:11px}.uncle-root-node,.uncle-son-node,.uncle-grandchild-node{background:#fff;border:1px solid #dbe3de;border-radius:13px;box-shadow:0 6px 18px rgba(23,63,54,.045)}.uncle-root-node{width:min(250px,100%);margin:0 auto 33px;padding:11px;display:flex;align-items:center;justify-content:center;gap:10px;position:relative}.uncle-root-node:after{content:"";position:absolute;bottom:-34px;right:50%;height:34px;border-right:2px solid #9db3a8}.uncle-root-node img,.uncle-son-node img,.uncle-grandchild-node img{width:42px;height:42px;border-radius:50%;object-fit:cover;background:#edf2ef}.uncle-root-node strong,.uncle-root-node span,.uncle-son-node strong,.uncle-son-node span,.uncle-son-node small,.uncle-grandchild-node strong,.uncle-grandchild-node span{display:block}.uncle-root-node strong,.uncle-son-node strong,.uncle-grandchild-node strong{color:#173f36}.uncle-root-node span,.uncle-son-node span,.uncle-grandchild-node span{font-size:10px;color:#8a672a;margin-top:2px}.uncle-son-node small{font-size:9px;color:#728078;margin-top:3px}.uncle-sons-level{display:flex;align-items:flex-start;justify-content:center;gap:16px;min-width:max-content;position:relative;padding-top:28px}.uncle-sons-level:before{content:"";position:absolute;top:0;right:8%;left:8%;border-top:2px solid #9db3a8}.uncle-son-branch{width:220px;position:relative;padding-top:0}.uncle-son-branch:before{content:"";position:absolute;top:-28px;right:50%;height:28px;border-right:2px solid #9db3a8}.uncle-son-node{padding:9px;display:flex;align-items:center;gap:8px;min-height:62px}.uncle-grandchildren-level{margin-top:26px;display:grid;grid-template-columns:1fr;gap:7px;position:relative;padding-top:14px}.uncle-grandchildren-level:before{content:"";position:absolute;top:0;right:50%;height:14px;border-right:2px solid #b2c2ba}.uncle-grandchild-node{padding:8px;display:flex;align-items:center;gap:7px;font-size:11px;position:relative}.uncle-grandchild-node:before{content:"";position:absolute;top:-8px;right:50%;height:8px;border-right:1px solid #b2c2ba}.uncle-grandchild-node img{width:32px;height:32px}.uncle-tree-empty,.uncle-no-grandchildren{text-align:center;color:#78837d;font-size:10px;background:rgba(255,255,255,.6);border-radius:9px;padding:8px}.uncle-no-grandchildren{margin-top:9px}
@media(max-width:700px){.uncle-mini-tree{padding:13px}.uncle-sons-level{justify-content:flex-start}.uncle-son-branch{width:185px}.uncle-root-node{margin-right:0;margin-left:auto}.uncle-tree-title>strong{font-size:17px}}
@media print{.family-uncles-section{break-inside:auto}.uncle-mini-tree{break-inside:avoid;overflow:visible}.uncle-sons-level{min-width:0;flex-wrap:wrap}.uncle-son-branch{width:30%}}

/* v4.2 bilingual interface */
.silwad-language-switch{display:inline-flex;align-items:center;gap:3px;padding:3px;border:1px solid rgba(32,77,62,.16);border-radius:999px;background:#f8faf8;white-space:nowrap}
.silwad-language-switch a{display:inline-flex;align-items:center;justify-content:center;padding:5px 8px;border-radius:999px;text-decoration:none;color:#53655c;font-size:10px;font-weight:800;line-height:1}
.silwad-language-switch a.active{background:#173f36;color:#fff}
.silwad-language-switch.mobile{margin:7px 10px 10px;width:max-content}
html[dir="ltr"] body{direction:ltr;text-align:left}
html[dir="ltr"] .site-header,html[dir="ltr"] .site-footer,html[dir="ltr"] .member-auth-page,html[dir="ltr"] .member-area-page,html[dir="ltr"] .silwad-story-section,html[dir="ltr"] .silwad-families-section,html[dir="ltr"] .silwad-request-section{direction:ltr}
html[dir="ltr"] .silwad-support-copy,html[dir="ltr"] .brand-text,html[dir="ltr"] .member-auth-intro,html[dir="ltr"] .member-auth-card,html[dir="ltr"] .family-data-body,html[dir="ltr"] .family-report-heading,html[dir="ltr"] .member-contribute-card{text-align:left}
html[dir="ltr"] .tree-search,html[dir="ltr"] .search-results,html[dir="ltr"] .person-profile,html[dir="ltr"] .lineage-modal-card{direction:ltr;text-align:left}
html[dir="ltr"] .phone-input-wrap{direction:ltr}
html[dir="ltr"] .uncle-root-node:after,html[dir="ltr"] .uncle-son-branch:before,html[dir="ltr"] .uncle-grandchildren-level:before,html[dir="ltr"] .uncle-grandchild-node:before{right:auto;left:50%;border-right:0;border-left:2px solid #9db3a8}
html[dir="ltr"] .uncle-grandchild-node:before{border-left-width:1px}
@media(max-width:980px){.header-actions .silwad-language-switch{display:none}}

/* v5.4 canonical Silwad foundation strip */
.silwad-foundation-strip{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:10px 14px;background:#f7f1df;border-top:1px solid #eadcb7;border-bottom:1px solid #eadcb7;color:#57471f}.silwad-foundation-strip>span{background:#d3b46d;color:#173f36;padding:5px 9px;border-radius:999px;font-weight:900;font-size:12px}.silwad-foundation-strip>strong{color:#173f36}.silwad-foundation-strip>div{display:flex;gap:6px;flex-wrap:wrap}.silwad-foundation-strip button{border:1px solid #cdbb8b;background:#fff;border-radius:999px;padding:6px 10px;font:inherit;font-weight:800;cursor:pointer;color:#173f36}.silwad-foundation-strip button.is-active{background:#173f36;color:#fff;border-color:#173f36}.silwad-foundation-strip small{margin-inline-start:auto;color:#786a48}@media(max-width:700px){.silwad-foundation-strip{align-items:flex-start}.silwad-foundation-strip small{width:100%;margin-inline-start:0}.silwad-foundation-strip>div{width:100%}.silwad-foundation-strip button{flex:1}}
