/* AlManara V12.3: editorial news gallery + activity confirmations, Arabic RTL. */
:root{--v123-deep:#103c2b;--v123-evergreen:#166a46;--v123-ink:#143728;--v123-cream:#fffdf4;--v123-gold:#c69b48}
/* Editorial-style news cards: full image, never cropped. */
.news-section{position:relative;overflow:hidden;border:1px solid #dae8dd!important;background:linear-gradient(142deg,#f6fff9 0%,#fffdf8 65%,#ebf5ee 100%)!important;padding:clamp(16px,2.5vw,30px)!important}
.news-section::before{content:"";position:absolute;width:270px;height:270px;left:-140px;top:-150px;border-radius:50%;background:radial-gradient(circle,rgba(216,185,111,.18),transparent 69%);pointer-events:none}
.news-section > .row.spread{position:relative;align-items:center!important;padding:6px 3px 10px}
.news-section .hub-overline{font-weight:800;color:#957033!important;letter-spacing:.2px}
.news-section h2{font-size:clamp(1.4rem,2.2vw,2rem);font-weight:900;color:#173e2c}
.v123-news-admin-links{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:8px}
.news-slider-head{padding:0 3px 7px!important}
.news-live{display:inline-flex;align-items:center;gap:9px;color:#166741!important;font-weight:900}
.news-live::before{content:"";width:7px;height:7px;box-shadow:0 0 0 4px #ddede0;border-radius:50%;background:#229760}
.news-slides{border:1px solid #e5ebe1!important;border-radius:26px!important;background:linear-gradient(125deg,#fffefa,#ffffff)!important;min-height:380px!important;box-shadow:0 18px 50px rgba(13,54,37,.095)!important}
.news-slides .news-item.is-active{grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr)!important;min-height:380px;align-items:stretch}
.news-slides .news-item .news-content{padding:clamp(22px,3vw,44px)!important;display:flex;flex-direction:column;justify-content:center;gap:6px;background:radial-gradient(ellipse at 0 0,#fff9e6 0,transparent 53%),#fffefa!important}
.news-slides .news-item .news-content h3{font-size:clamp(1.5rem,2.6vw,2.2rem)!important;line-height:1.35!important;font-weight:900;margin:4px 0!important;letter-spacing:-.4px}
.news-slides .news-item .news-content p{font-size:clamp(.94rem,1.2vw,1.06rem);line-height:1.95!important;color:#4a6557;max-width:65ch;white-space:pre-line}
.news-slides .news-item .news-photo{position:relative;min-height:380px!important;height:auto!important;display:flex;justify-content:center;align-items:center;overflow:hidden;border-radius:0!important;background:radial-gradient(circle at 48% 46%,#315f48 0,#0b251c 90%)!important;padding:14px!important;cursor:zoom-in}
.news-slides .news-item .news-photo img{display:block;width:100%!important;height:100%!important;max-height:520px!important;object-fit:contain!important;object-position:center!important;border-radius:14px;filter:drop-shadow(0 12px 18px rgba(0,0,0,.2))}
.news-slides .news-item .news-photo:after{content:"🔎 اضغط لعرض الصورة بالحجم الكامل";position:absolute;bottom:14px;right:50%;transform:translateX(50%);padding:7px 14px;border-radius:999px;color:#fff;background:rgba(0,0,0,.66);backdrop-filter:blur(5px);font-size:.76rem;font-weight:800;pointer-events:none;white-space:nowrap}
.news-slides .news-item .news-photo:focus-visible{outline:3px solid #e8bd5b;outline-offset:-5px}
.news-slider-controls .btn{border-radius:12px!important;font-size:.84rem;min-height:38px}
.news-dots button{width:10px;height:10px;background:#a4bdb2}
.news-dots button.active{width:32px;background:linear-gradient(90deg,#146940,#d5ad55)}
.news-top{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.news-label{background:#e8f4e7;border:1px solid #d7eadb;border-radius:20px;color:#176a44;font-weight:900;padding:5px 11px}
.news-top time{color:#768d7e;font-size:.79rem}
.news-slider-controls{justify-content:center}
.news-section .launch-card{border:1px solid #cfe4d5;border-radius:20px!important;background:linear-gradient(120deg,#093d2c,#176e4b)!important;color:#fff!important;margin-top:10px}
.news-section .launch-card strong{color:#ffdb87!important}
.news-section .launch-digits span{background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.18);color:#fff}
@media(max-width:820px){.news-slides .news-item.is-active{display:flex!important;flex-direction:column!important}.news-slides .news-item .news-photo{min-height:280px!important;max-height:none!important;aspect-ratio:16/10}.news-slides .news-item .news-photo img{max-height:100%!important}.news-slides .news-item .news-content{padding:23px!important}.news-slider-controls{flex-wrap:wrap}.news-slider-controls .btn{padding:8px 9px!important}}
@media(max-width:450px){.news-slides .news-item .news-photo{min-height:235px!important;aspect-ratio:4/3;padding:9px!important}.news-slides .news-item .news-photo:after{bottom:6px;font-size:.63rem}.news-section h2{font-size:1.45rem}.v123-news-admin-links{width:100%}.v123-news-admin-links .btn{flex:1}}
.v123-news-lightbox{position:fixed;inset:0;z-index:900000;background:rgba(1,13,9,.96);display:flex;align-items:center;justify-content:center;padding:70px 18px 24px;cursor:zoom-out}
.v123-news-lightbox img{max-width:100%;max-height:100%;object-fit:contain;border-radius:10px;box-shadow:0 20px 60px #0009}
.v123-news-lightbox button{position:absolute;top:15px;left:17px;background:#fff;color:#113d29;padding:10px 18px;border-radius:12px;border:0;font-weight:900;cursor:pointer}
.v123-home-strip{display:flex;align-items:center;gap:17px;margin:16px 0 30px;padding:22px 24px;border:1px solid #cfe3d5;border-radius:22px;background:linear-gradient(125deg,#124c38,#1a714d);color:#fff;box-shadow:0 12px 27px #093d2c20}
.v123-home-strip>.v123-strip-icon{font-size:2rem;display:grid;place-items:center;width:64px;height:64px;flex:none;border-radius:19px;background:#ffffff17}
.v123-home-strip>div{flex:1;min-width:0}.v123-home-strip strong{font-size:1.18rem;font-weight:900}.v123-home-strip p{color:#deefe3;margin:5px 0 0}.v123-home-strip .btn{flex:none;background:linear-gradient(110deg,#fff6d8,#f6d58c);color:#123c28;border:0;font-weight:900}
@media(max-width:650px){.v123-home-strip{flex-wrap:wrap;padding:18px}.v123-home-strip>.v123-strip-icon{width:51px;height:51px}.v123-home-strip .btn{width:100%}}
/* Participation page */
.v123-hero{margin:4px 0 24px;padding:34px 32px;border-radius:26px;background:radial-gradient(circle at 0% 10%,rgba(234,196,116,.22),transparent 35%),linear-gradient(120deg,#0a3627,#195f43);color:#fff;border:1px solid #255f46;box-shadow:0 14px 30px #16482e24}
.v123-hero>span,.v123-overline{display:block;color:#e3c484;letter-spacing:1.5px;font-size:.79rem;font-weight:900}
.v123-hero h2{font-size:clamp(1.4rem,3vw,2.3rem);color:#fff;margin:12px 0;font-weight:950}
.v123-hero p{color:#dfefe4;font-size:.99rem;line-height:1.8}
.v123-create-panel,.v123-event-list,.v123-roster-panel{background:#fff;border:1px solid #d7e6db;border-radius:24px;padding:clamp(16px,2.5vw,28px);margin:20px 0;box-shadow:0 12px 36px rgba(17,59,37,.06)}
.v123-head{display:flex;gap:14px;align-items:center;margin-bottom:20px}.v123-head h3{font-size:1.32rem;color:#133c2a;font-weight:900;margin:0 0 3px}.v123-head p{margin:0;color:#648171;font-size:.9rem}.v123-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:17px;background:#eaf4eb;color:#1b6b45;font-size:1.7rem;flex:none}
.v123-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.v123-form-grid .v123-full{grid-column:1/-1}
.v123-form-grid textarea{resize:vertical;min-height:90px}.v123-form-grid .field{margin-bottom:0}
.v123-form-grid input,.v123-form-grid select,.v123-form-grid textarea{width:100%;min-width:0;box-sizing:border-box}
.v123-form-grid .field small{font-size:.78rem;color:#7a897c;font-weight:500}
.v123-checkbox{display:flex;align-items:center;gap:10px;font-weight:800;margin:19px 0 12px;cursor:pointer}.v123-checkbox input{width:19px;height:19px;accent-color:#136e45}
.v123-muted{color:#6e8276;font-size:.88rem;line-height:1.7}.v123-primary{display:block;width:100%;text-align:center;border:0;border-radius:15px;background:linear-gradient(110deg,#14613f,#0d3c2a);color:#fff;font-size:1.02rem;font-weight:900;min-height:52px;cursor:pointer;box-shadow:0 8px 18px #0e50351b}.v123-primary:hover{filter:brightness(1.09)}.v123-primary:disabled{opacity:.7;cursor:wait}
.v123-poll-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr));gap:16px}
.v123-poll-card{padding:22px;border:1px solid #dbe6db;border-radius:21px;background:linear-gradient(165deg,#fff,#f5faf5);box-shadow:0 8px 18px #15462b0b}
.v123-poll-card h3{color:#153d2c;font-size:1.18rem;font-weight:900;margin:14px 0 9px}.v123-poll-card>p{font-size:.9rem;color:#607b6a;line-height:1.75;white-space:pre-wrap}.v123-poll-top{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px}.v123-status,.v123-required-pill{display:inline-flex;align-items:center;font-size:.74rem;font-weight:800;border-radius:100px;padding:5px 10px}.v123-status.live{background:#e1f5e8;color:#14643c}.v123-status.closed{background:#eff0ed;color:#68776c}.v123-required-pill{background:#fff2d2;color:#815800}.v123-poll-meta{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}.v123-poll-meta span{font-size:.78rem;color:#3c5b4c;background:#ebf3eb;padding:7px 10px;border-radius:10px}
.v123-actions{display:flex;flex-wrap:wrap;gap:8px;margin:15px 0 2px}.v123-member-answer{padding:12px;background:#f1f7ef;border:1px solid #e1eadf;border-radius:14px}.v123-member-answer fieldset{border:0;margin:0;padding:0}.v123-member-answer legend{font-size:.85rem;font-weight:900;margin-bottom:11px}.v123-inline-options{display:flex;gap:8px;flex-wrap:wrap}.v123-answered{font-size:.9rem;color:#17663f;margin:0 0 10px}
.v123-roster-container{scroll-margin-top:15px}.v123-stat-row{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.v123-stat-row>span{background:#f1f7f0;border:1px solid #dce8da;color:#24613f;border-radius:12px;padding:9px 14px;font-size:.9rem}
.v123-table-wrap{width:100%;overflow-x:auto}.v123-roster-table{border-collapse:separate;border-spacing:0;width:100%;min-width:760px;text-align:right;white-space:nowrap}.v123-roster-table th,.v123-roster-table td{padding:12px 10px;border-bottom:1px solid #e1eae3;text-align:right;font-size:.88rem}.v123-roster-table thead th{background:#eaf2e8;font-weight:900;color:#244936}.v123-roster-table tr:hover td{background:#fbfcf8}.v123-att-state.present{color:#147546;font-weight:900}.v123-att-state.absent{color:#ab4444;font-weight:900}.v123-att-state.unknown{color:#819386}.v123-table-actions{display:flex;gap:5px;align-items:center;flex-wrap:wrap}.v123-table-actions .btn{padding:6px 9px;font-size:.76rem}
@media(max-width:720px){.v123-form-grid{grid-template-columns:1fr}.v123-hero{padding:24px 20px}.v123-head{align-items:flex-start}.v123-poll-card{padding:18px}}
/* Full-screen mandatory attendance response. No "skip" button; logout remains available. */
body.v123-gate-open{overflow:hidden!important}.v123-gate{position:fixed;inset:0;z-index:990000;background:rgba(5,28,19,.83);backdrop-filter:blur(9px);display:flex;align-items:center;justify-content:center;padding:14px;overflow:auto}
.v123-gate-card{width:min(600px,100%);max-height:calc(100dvh - 28px);overflow:auto;border-radius:26px;background:#fffefa;box-shadow:0 25px 100px #0008;direction:rtl;border:1px solid #d5d8c9}
.v123-gate-banner{padding:17px 27px;display:flex;justify-content:space-between;gap:10px;align-items:center;background:linear-gradient(100deg,#0b3325,#186447);color:#f8e6bc;font-weight:900}
.v123-gate-count{border:1px solid #fff5;padding:6px 12px;border-radius:100px;font-size:.75rem;color:#fff}
.v123-gate-main{padding:28px clamp(20px,4vw,40px)}.v123-illustration{width:70px;height:70px;display:grid;place-items:center;border-radius:23px;background:linear-gradient(125deg,#f6e3ae,#fffae6);font-size:2rem;margin-bottom:16px}.v123-label-gold{color:#a57e38;font-size:.83rem;font-weight:900}
.v123-gate-main h2{font-size:clamp(1.5rem,3vw,2.05rem);color:#123f2b;font-weight:950;margin:9px 0}.v123-gate-description{line-height:1.85;color:#536b5b;white-space:pre-wrap}.v123-gate-details{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0 20px}.v123-gate-details span{background:#eaf3eb;border:1px solid #d3e4d6;border-radius:10px;padding:9px 11px;font-weight:800;font-size:.84rem;color:#255c3e}
.v123-gate-main fieldset{padding:0;border:0;margin:0 0 14px}.v123-gate-main legend{font-size:1.05rem;color:#133e2b;font-weight:950;margin-bottom:12px}.v123-response-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.v123-choice{display:flex;cursor:pointer;align-items:center;gap:10px;border-radius:14px;background:#f7faf6;border:2px solid #dce9df;padding:15px 14px;font-weight:900;min-width:0;transition:background .15s,border-color .15s;color:#264b38}.v123-choice:hover,.v123-choice:has(input:checked){background:#e9f6eb;border-color:#268550}.v123-choice input{width:19px;height:19px;accent-color:#137b46;flex:none}.v123-choice span{overflow-wrap:anywhere}.v123-message{min-height:16px;color:#ae3445;font-weight:800}.v123-gate-disclaimer{font-size:.8rem;color:#829184;text-align:center;margin:16px 0 0;line-height:1.65}.v123-gate-footer{display:flex;gap:10px;justify-content:space-between;align-items:center;padding:15px 27px;border-top:1px solid #e8e9de;color:#64816c;font-size:.83rem}.v123-gate-footer button{color:#23523b;background:transparent;border:0;text-decoration:underline;cursor:pointer;font:inherit;font-weight:800}.v123-error-card{max-width:480px}.v123-error-small{display:block;color:#ae4b4b;overflow-wrap:anywhere;margin:12px 0 25px}
@media(max-width:440px){.v123-response-choices{grid-template-columns:1fr}.v123-gate-main{padding:20px}.v123-gate-banner,.v123-gate-footer{padding:12px 18px}.v123-choice{padding:12px}}
@media(prefers-reduced-motion:reduce){.news-slides .news-item.is-active{animation:none!important}.v123-primary,.v123-choice{transition:none!important}}
@media print{
 body.v123-print-roster{background:#fff!important;color:#111!important}
 body.v123-print-roster #root>header,body.v123-print-roster #root>footer,body.v123-print-roster #page>*:not(#v123-roster){display:none!important}
 body.v123-print-roster #root,body.v123-print-roster #page,body.v123-print-roster #v123-roster{display:block!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
 body.v123-print-roster #v123-roster{position:static!important;border:0!important;box-shadow:none!important}
 body.v123-print-roster .v123-roster-panel{border:0!important;box-shadow:none!important;padding:0!important}
 body.v123-print-roster .v123-roster-table{min-width:0!important;white-space:normal;font-size:9pt}
 body.v123-print-roster .v123-roster-table th:last-child,body.v123-print-roster .v123-roster-table td:last-child,
 body.v123-print-roster .v123-roster-panel>.v123-actions{display:none!important}
 body.v123-print-roster .v123-roster-table tr{break-inside:avoid}
 @page{size:A4 portrait;margin:13mm}
}
