@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,wght@0,400;0,600;0,700;1,500&family=Estedad:wght@400;500;600;700;800&family=Great+Vibes&family=Marcellus&family=Markazi+Text:wght@400;500;600;700&family=Noto+Serif+Arabic:wght@400;500;600;700&family=Scheherazade+New:wght@400;500;600;700&family=Spectral:ital,wght@0,400;0,600;0,700;1,500&display=swap');
/* New Hope 7 v2.2.4 — focused usability patch */
:root{--nh7-bottom-safe:max(88px,calc(70px + env(safe-area-inset-bottom)))}
body.nh7-modal-open,body.nh7-student-modal-open{overflow:hidden!important}

/* Registration gives immediate, unmistakable feedback and prevents duplicate taps. */
.registration-submit-btn{position:relative;min-width:190px;transition:opacity .2s,transform .2s}.registration-submit-btn.is-busy{opacity:.72;cursor:wait}.registration-submit-btn.is-busy:before{content:"";display:inline-block;width:15px;height:15px;margin-inline-end:8px;border:2px solid currentColor;border-top-color:transparent;border-radius:50%;animation:nh7-v224-spin .75s linear infinite;vertical-align:-2px}.registration-submit-status{min-height:24px;margin-top:9px;font-weight:700;line-height:1.55;color:#475569}.registration-submit-status.success{color:#047857}@keyframes nh7-v224-spin{to{transform:rotate(360deg)}}

/* Bible selection and four compact highlight colors. */
.continuous-reader{line-height:2.05!important;overflow:visible!important}.continuous-reader .reader-verse{position:relative;display:inline;padding:3px 2px;border-radius:5px;box-decoration-break:clone;-webkit-box-decoration-break:clone;transition:background-color .18s,box-shadow .18s,transform .16s;text-decoration-skip-ink:auto}.continuous-reader .reader-verse.verse-selected{box-shadow:inset 0 -3px 0 #2563eb;background-color:rgba(37,99,235,.07);animation:nh7VerseTap .2s ease-out}.continuous-reader .reader-verse.verse-selected .num{color:#1d4ed8;font-weight:900}@keyframes nh7VerseTap{50%{filter:brightness(.94);transform:translateY(-1px)}}
.continuous-reader .reader-verse.highlighted{box-decoration-break:clone;-webkit-box-decoration-break:clone;padding-block:3px;line-height:inherit;color:#111827!important}.continuous-reader .reader-verse.highlight-yellow{background:#fde68a!important}.continuous-reader .reader-verse.highlight-red{background:#fecaca!important}.continuous-reader .reader-verse.highlight-green{background:#bbf7d0!important}.continuous-reader .reader-verse.highlight-blue{background:#bfdbfe!important}.continuous-reader .reader-verse.highlighted .verse-text{position:relative;z-index:1;color:inherit!important}
.highlight-control{position:relative;display:inline-flex;align-items:center}.highlight-palette{position:absolute;z-index:10025;bottom:calc(100% + 9px);inset-inline-start:0;display:flex;align-items:center;gap:7px;padding:7px 9px;border-radius:999px;background:#fff;border:1px solid #cbd5e1;box-shadow:0 10px 30px rgba(15,23,42,.22)}.highlight-palette.hidden{display:none!important}.highlight-dot,.highlight-clear{width:25px!important;height:25px!important;min-width:25px!important;min-height:25px!important;padding:0!important;border-radius:50%!important;border:2px solid #fff!important;box-shadow:0 0 0 1px #94a3b8;cursor:pointer}.highlight-dot.yellow{background:#facc15}.highlight-dot.red{background:#ef4444}.highlight-dot.green{background:#22c55e}.highlight-dot.blue{background:#3b82f6}.highlight-dot.active{box-shadow:0 0 0 3px #0f172a;transform:scale(1.06)}.highlight-clear{background:#fff;color:#b91c1c;font-weight:900;font-size:18px;line-height:20px}
.reader-verse .verse-tools:not(.hidden){bottom:calc(var(--nh7-bottom-safe) + 18px)!important;max-width:calc(100vw - 16px)!important;overflow:visible!important}.reader-verse .verse-tools:not(.hidden)>button,.reader-verse .verse-tools:not(.hidden)>.highlight-control>button{white-space:nowrap}

/* Secure in-app document viewer. */
.nh7-pdf-viewer-modal{overscroll-behavior:contain}.nh7-pdf-viewer-dialog iframe{min-height:0}.nh7-docx-reader{flex:1;overflow:auto;background:#e5e7eb;padding:18px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.nh7-docx-page{width:min(210mm,100%);min-height:280mm;margin:0 auto;background:#fff;padding:18mm 15mm;box-shadow:0 12px 40px rgba(15,23,42,.2);color:#111827;line-height:1.85}.nh7-docx-page img{max-width:100%;height:auto}.nh7-docx-page table{border-collapse:collapse;max-width:100%}.nh7-docx-page td,.nh7-docx-page th{border:1px solid #cbd5e1;padding:5px}.nh7-pdf-viewer-head{flex:0 0 auto;position:relative;z-index:2}.nh7-pdf-viewer-head strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nh7-pdf-viewer-head .icon-btn{display:grid!important;place-items:center;width:46px;height:46px;background:#b91c1c;color:#fff;border-radius:50%;border:0;flex:0 0 auto}

/* Student profile: only the foreground profile scrolls. */
.student-modal-backdrop{padding:0!important;overflow:hidden!important;align-items:stretch!important;overscroll-behavior:contain!important;touch-action:pan-y}.student-modal{width:min(1020px,100%)!important;height:min(100dvh,980px)!important;max-height:100dvh!important;margin:auto!important;border-radius:22px!important;overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y;position:relative}.student-modal-head{top:0!important;padding:10px 2px 14px!important}.student-modal .close-round{position:sticky;top:0;z-index:30;display:grid!important;place-items:center;flex:0 0 46px;width:46px;height:46px;background:#b42318!important;color:#fff!important;font-size:24px!important}.student-modal-backdrop>*{pointer-events:auto}

/* Stable admin brand icon, avoiding reload flicker on every panel render. */
.nh7-admin-brand-logo{display:block;width:56px;height:56px;flex:0 0 56px;border-radius:17px;background:url('../assets/admin-icon-192.png') center/cover no-repeat;transform:translateZ(0);contain:paint}.brand img{animation:none!important;transition:none!important}

/* v2.2.4 private library controls. */
.nh7-upload-track{display:block;height:8px;margin-top:9px;border-radius:99px;background:#e2e8f0;overflow:hidden}.nh7-upload-track i{display:block;width:0;height:100%;background:linear-gradient(90deg,#0f766e,#2563eb);transition:width .18s}.library-item-card.is-hidden{opacity:.72;border-style:dashed}.library-item-card .actions{align-items:center}

/* Certificate header is always photo-left, independent of Persian/RTL. */
.document-sheet.v222{--doc-photo-size:115px;--doc-logo-size:94px}.document-sheet.v222 .doc-v222-header{direction:ltr!important;grid-template-columns:minmax(var(--doc-photo-size),auto) minmax(0,1fr) minmax(var(--doc-logo-size),auto)!important;min-height:calc(var(--doc-photo-size) + 20px)!important}.document-sheet.v222 .doc-v222-photo-wrap{grid-column:1!important;grid-row:1!important;justify-self:start!important;width:var(--doc-photo-size)!important;height:calc(var(--doc-photo-size) * 1.18)!important;max-width:190px;max-height:225px}.document-sheet.v222 .doc-v222-church{grid-column:3!important;grid-row:1!important;justify-self:end;width:max-content;max-width:230px;direction:inherit}.document-sheet.v222 .doc-v222-logo{width:var(--doc-logo-size)!important;height:var(--doc-logo-size)!important;max-width:180px;max-height:180px}.document-sheet.v222.logo-position-center .doc-v222-church{grid-column:2!important;justify-self:center}.document-sheet.v222.logo-position-left .doc-v222-church{grid-column:1!important;justify-self:start}.document-sheet.v222.logo-position-left .doc-v222-photo-wrap{grid-column:3!important;justify-self:end!important}.document-sheet.v222.logo-circle .doc-v222-logo{border-radius:50%!important;aspect-ratio:1/1;object-fit:contain;background:var(--doc-logo-bg,transparent);padding:5px}.document-sheet.v222.logo-blend-multiply .doc-v222-logo{mix-blend-mode:multiply}.document-sheet.v222 .doc-v222-main{padding-top:16px!important}.document-sheet.v222 .doc-v222-body-line{position:relative;min-height:.4em;white-space:pre-wrap;margin:2px 0;transform-origin:center}.doc-v222-style-toolbar{grid-template-columns:repeat(auto-fit,minmax(135px,1fr))!important}.doc-v222-style-toolbar label{display:grid;gap:4px}.doc-v222-editor details{scroll-margin-top:90px}.doc-v222-editor details[open] summary{color:#0f4c81}.doc-v222-preview-actions{position:sticky;bottom:8px;z-index:8;background:rgba(255,255,255,.94);padding:10px;border:1px solid #cbd5e1;border-radius:14px;box-shadow:0 8px 26px rgba(15,23,42,.14)}.doc-v222-preview-modal{z-index:40000!important;padding:max(8px,env(safe-area-inset-top)) 8px max(8px,env(safe-area-inset-bottom))!important}.doc-v222-preview-top{justify-content:flex-start!important;flex-wrap:wrap!important;max-width:1180px;width:100%;z-index:20!important}.doc-v222-close{display:grid!important;place-items:center!important;flex:0 0 46px;width:46px!important;height:46px!important;font-size:28px!important}.doc-v222-preview-modal.after-print .doc-v222-preview-top:after{content:"Print completed — use × or Back to panel";font-size:12px;color:#047857;font-weight:700}

/* Additional professional frames. */
.theme-covenant_gold_v224.document-sheet.v222{--doc-border:#5b4518;--doc-accent:#c9a14a;background:linear-gradient(rgba(255,253,247,.95),rgba(255,253,247,.95)),radial-gradient(circle at 50% 45%,#fef3c7,transparent 55%);border:12px ridge #a87922;box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 6px #d6b35e,inset 0 0 35px rgba(116,78,12,.16)}.theme-covenant_gold_v224.document-sheet.v222:after{content:"✦  NEW HOPE 7  ✦";position:absolute;top:15px;left:50%;transform:translateX(-50%);color:#8a641c;font-family:Cinzel,serif;letter-spacing:.2em;z-index:2;font-size:11px}
.theme-royal_marble_v224.document-sheet.v222{--doc-border:#132e5a;--doc-accent:#c6a55b;background:linear-gradient(rgba(250,252,255,.92),rgba(250,252,255,.92)),repeating-linear-gradient(127deg,#e8edf4 0 2px,#fff 2px 16px);border:9px double #173d70;box-shadow:inset 0 0 0 5px #fff,inset 0 0 0 7px #c6a55b}.theme-royal_marble_v224 .doc-ornament-top,.theme-royal_marble_v224 .doc-ornament-bottom{height:12px;background:linear-gradient(90deg,transparent,#173d70,#c6a55b,#173d70,transparent)}
.theme-baptism_wave_v224.document-sheet.v222{--doc-border:#075985;--doc-accent:#38bdf8;background:radial-gradient(ellipse at 10% 90%,rgba(14,165,233,.2),transparent 35%),radial-gradient(ellipse at 90% 90%,rgba(56,189,248,.18),transparent 35%),linear-gradient(180deg,#f0f9ff,#fff 55%,#ecfeff);border:7px solid #075985;box-shadow:inset 0 0 0 4px #fff,inset 0 0 0 6px #7dd3fc}.theme-baptism_wave_v224:after{content:"";position:absolute;left:-5%;right:-5%;bottom:0;height:70px;background:radial-gradient(ellipse at 20% 0,transparent 0 43%,rgba(56,189,248,.22) 45% 50%,transparent 52%) 0 0/150px 70px;z-index:0}
.theme-ministry_blue_v224.document-sheet.v222{--doc-border:#0c2f5f;--doc-accent:#8ba8c9;background:linear-gradient(135deg,#f8fbff 0,#fff 42%,#eef5fb 100%);border:5px solid #0c2f5f;outline:2px solid #8ba8c9;outline-offset:-12px}.theme-ministry_blue_v224 .doc-v222-header{background:linear-gradient(90deg,rgba(12,47,95,.08),transparent);border-bottom:2px solid #0c2f5f}

@media(max-width:760px){.reader-verse .verse-tools:not(.hidden){bottom:calc(var(--nh7-bottom-safe) + 12px)!important}.student-modal{height:100dvh!important;max-height:100dvh!important;border-radius:0!important;padding:12px!important}.nh7-pdf-viewer-modal{padding:0!important}.nh7-pdf-viewer-dialog{border-radius:0!important}.nh7-pdf-viewer-head{padding-top:max(8px,env(safe-area-inset-top))}.nh7-docx-reader{padding:4px}.nh7-docx-page{padding:12mm 9mm;box-shadow:none}.document-sheet.v222 .doc-v222-header{grid-template-columns:70px minmax(0,1fr) 70px!important;min-height:100px!important}.document-sheet.v222 .doc-v222-photo-wrap{width:70px!important;height:83px!important}.document-sheet.v222 .doc-v222-logo{width:68px!important;height:68px!important}.doc-v222-preview-top{position:sticky!important;top:0!important}}
@media print{.doc-v222-preview-top{display:none!important}.doc-v222-preview-modal{position:static!important;padding:0!important;background:#fff!important;overflow:visible!important}.document-sheet.v222 .doc-v222-header{grid-template-columns:var(--doc-photo-size) minmax(0,1fr) var(--doc-logo-size)!important}}
