/* Ejaaba Knowledge Library: quiet editorial style, clear hierarchy on iPhone. */
.ek-library{max-width:1120px;margin:13px auto 30px;direction:rtl;color:#193e54}
.ek-library-hero{display:flex;align-items:center;gap:20px;position:relative;min-height:218px;padding:28px;border-radius:20px;border:1px solid #bdac81;background:radial-gradient(ellipse at 100% 0%,#2e6c70 0,transparent 45%),linear-gradient(112deg,#0b3c4d,#05263b 75%,#102442);color:#fff;overflow:hidden;box-shadow:0 14px 35px #15394b21}
.ek-library-hero:before{content:"";position:absolute;inset:12px;border:1px solid #bdad7e7c;border-radius:13px;pointer-events:none}
.ek-hero-mark{display:grid;place-items:center;flex:none;height:100px;width:100px;border:2px solid #dcc17f;border-radius:50%;color:#f1d58f;font-size:63px;background:#0b435195;box-shadow:0 0 0 9px #e4c68b16}
.ek-library-hero h1{font-size:clamp(26px,3.7vw,40px);margin:5px 0 8px;font-weight:850;line-height:1.4;color:#fff}.ek-library-hero h1 em{font-style:normal;color:#f3d594}
.ek-library-hero p{max-width:700px;line-height:1.95;color:#d0e3e7;margin:0;font-size:13px}
.ek-eyebrow{color:#e8ca87;font-size:12px;font-weight:800}.ek-export{margin-right:auto;flex:none;padding:11px 14px;border-radius:9px;background:#f8e9ca;color:#173e50;text-decoration:none;font-weight:800;font-size:12px;position:relative;z-index:1}
.ek-library-summary{display:flex;align-items:center;gap:10px;padding:15px 2px;color:#35576d}.ek-library-summary strong{font-size:27px;color:#0b614f}.ek-library-summary span{font-weight:800}.ek-library-summary small{margin-right:auto;color:#758c9a;font-size:12px}
.ek-topic-nav{display:flex;gap:8px;overflow-x:auto;overscroll-behavior-inline:contain;padding:6px 1px 12px;scrollbar-width:thin}
.ek-topic-nav a{display:inline-flex;align-items:center;gap:7px;flex:none;white-space:nowrap;padding:10px 14px;border-radius:11px;border:1px solid #cadbe0;background:#fff;color:#225265;text-decoration:none;font-size:13px}
.ek-topic-nav a.active{background:#0b5748;color:#fff;border-color:#0b5748}.ek-topic-nav a span{font-size:17px}.ek-topic-nav a b{font-size:11px;background:#e9f2f1;color:#3d6469;padding:2px 7px;border-radius:15px}.ek-topic-nav a.active b{background:#ffffff35;color:#fff}
.ek-results,.ek-recognition-panel{background:#fff;border:1px solid #dce3e3;border-radius:19px;padding:22px;margin:8px 0 20px}
.ek-list-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;padding-bottom:13px;border-bottom:1px solid #e9eeee}
.ek-list-head h2,.ek-recognition-panel h2{font-size:20px;margin:0;color:#0b4b43}
.ek-list-head p,.ek-recognition-panel header p{font-size:12px;color:#708890;line-height:1.9;margin:5px 0}
.ek-list-head a{font-size:12px;color:#8d6b32;padding:8px 12px;border-radius:9px;border:1px solid #e3d0aa;background:#fdf9ef;text-decoration:none}
.ek-saved-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding-top:15px}
.ek-saved-card{border:1px solid #d7e5e3;border-radius:15px;background:#fcfdfc;padding:16px;display:flex;flex-direction:column;min-width:0;min-height:190px;gap:7px}
.ek-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#ad843d;font-weight:700;font-size:12px}.ek-card-top small{color:#8da0a5;font-weight:400;font-size:11px}
.ek-saved-card h3{font-size:17px;line-height:1.65;margin:4px 0 0;overflow-wrap:anywhere}.ek-saved-card h3 a{color:#114d48;text-decoration:none}.ek-saved-card h3 a:hover{text-decoration:underline}
.ek-excerpt{color:#536d70;line-height:1.85;margin:0;font-size:13px;overflow-wrap:anywhere}.ek-answer-author{color:#31736c;font-size:12px}.ek-answer-author span{color:#899a9e}
.ek-saved-card footer{display:flex;flex-wrap:wrap;gap:10px;align-items:end;margin-top:auto;padding-top:12px;border-top:1px solid #e3eded}
.ek-card-category{flex:1;display:flex;align-items:end;flex-wrap:wrap;gap:7px}.ek-card-category label{font-size:11px;color:#50716e;flex:1}.ek-card-category select{display:block;min-width:110px;width:100%;height:36px;padding:6px;border:1px solid #cbdad7;border-radius:8px;background:#fff;color:#225358;margin-top:4px;font-size:12px}
.ek-saved-card button{padding:9px 11px;border:1px solid #196257;border-radius:8px;background:#0d594c;color:#fff;font:inherit;font-size:11px;cursor:pointer;min-height:36px}.ek-saved-card button.ek-remove{background:#fff;color:#8f4941;border-color:#ddbdb7}
.ek-empty{grid-column:1/-1;padding:45px 20px;text-align:center;color:#557276}.ek-empty>span{display:block;font-size:47px;color:#b1945b}.ek-empty h3{margin:7px 0;color:#154e4c}.ek-empty a{display:inline-block;margin-top:12px;background:#0d594c;border-radius:10px;padding:11px 15px;text-decoration:none;color:#fff}
.ek-pagination{display:flex;justify-content:center;gap:20px;margin-top:15px}.ek-pagination a{padding:9px 17px;border:1px solid #c5d9d5;border-radius:9px;color:#116058;text-decoration:none}
.ek-privacy-note{padding:12px 15px;background:#f1f7f4;color:#54736e;border-radius:11px;border:1px solid #d7e6df;font-size:12px;line-height:1.9}
.ek-recognition-list{display:grid;gap:9px;padding-top:17px}.ek-person{display:grid;grid-template-columns:46px minmax(0,1fr) auto;gap:12px;align-items:center;text-decoration:none;color:#23545a;border:1px solid #e4e9e5;border-radius:12px;padding:12px;background:linear-gradient(100deg,#f7fbfa,#fff)}
.ek-person-number{height:36px;width:36px;border-radius:50%;display:grid;place-items:center;color:#85662a;background:#f3e7cf;font-size:18px;font-weight:900}.ek-person strong{display:block;font-size:14px}.ek-person small{display:block;font-size:11px;color:#708e8f;margin-top:3px}.ek-person b{color:#9e7a37;font-size:11px}
.ek-answer-savebar{margin:10px 0 0;padding:10px 12px;border:1px solid #d6e5e1;border-radius:10px;background:linear-gradient(110deg,#f8fcfa,#f5fafb);display:flex;gap:9px;align-items:center;flex-wrap:wrap;color:#23544e;min-width:0}
.ek-answer-savebar label{font-size:11px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}.ek-answer-savebar select{padding:6px 9px;min-height:35px;min-width:100px;max-width:190px;background:#fff;color:#194e4a;border:1px solid #c0d5d1;border-radius:7px;font-size:12px}
.ek-answer-savebar button{padding:7px 13px;background:#0b5d4c;color:#fff;border:1px solid #0b5d4c;border-radius:8px;cursor:pointer;font:inherit;font-size:12px;min-height:35px}
.ek-answer-savebar a{margin-right:auto;text-decoration:none;color:#176b62;font-size:11px}.ek-answer-savebar [data-library-message]{font-size:11px;color:#22836b}
.ek-answer-savebar[data-saved=true]{background:#eaf7f1;border-color:#a9d8c5}
@media(max-width:650px){.ek-library{margin:9px 0 28px}.ek-library-hero{gap:12px;padding:20px 15px;min-height:180px;align-items:center;flex-wrap:wrap}.ek-hero-mark{width:62px;height:62px;font-size:35px}.ek-library-hero>div{flex:1;min-width:190px}.ek-library-hero h1{font-size:26px}.ek-export{margin-right:0}.ek-library-summary{flex-wrap:wrap}.ek-library-summary small{flex-basis:100%;margin-right:0}.ek-results,.ek-recognition-panel{padding:13px}.ek-saved-grid{grid-template-columns:1fr}.ek-person{grid-template-columns:35px minmax(0,1fr)}.ek-person b{grid-column:2}.ek-answer-savebar{padding:8px;gap:7px}.ek-answer-savebar a{margin-right:0}.ek-card-category select{min-width:110px}}


/* Answer library now lives strictly within the existing three-dot menu. */
.ej-menu-popover .ek-library-menu {width:100%!important;min-width:0!important;box-sizing:border-box!important}
.ej-menu-popover .ek-library-menu-body {padding:11px!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
.ej-menu-popover .ek-library-menu-body form {display:block!important;width:100%!important;margin:0!important}
.ej-menu-popover .ek-library-menu-body form[hidden] {display:none!important}
.ej-menu-popover .ek-library-menu-body label{font-size:12px!important;margin:0!important}
.ej-menu-popover .ek-library-menu-body select {box-sizing:border-box!important;width:100%!important;height:37px!important;margin:6px 0 9px!important}
.ej-menu-popover .ek-library-save-button{min-height:36px!important;background:#0e6655!important;color:#fff!important}
.ej-menu-popover .ek-library-remove-button{display:block!important;width:100%!important;min-height:33px!important;margin:7px 0 0!important;background:#fff!important;color:#984d44!important;border:1px solid #e0c6c1!important;border-radius:8px!important;font-size:12px!important;cursor:pointer}
.ej-menu-popover .ek-library-menu-link{display:block;text-align:center;font-size:12px!important;color:#146c63!important;padding:9px 0 2px;text-decoration:none}
.ej-menu-popover .ek-library-menu-body [data-library-message]:empty{display:none}
.ej-menu-popover .ek-library-menu-body [data-library-message]:not(:empty){display:block;margin-top:8px;line-height:1.5;color:#166b53}
.ej-menu-popover .ek-library-menu[data-saved=true] > summary.ej-menu-action > .arch-icon:first-child {color:#187d5e!important}
