/* app.css - ظاهر مشترک همه‌ی صفحه‌ها (هدر، نوار بالا، PWA) */
:root{--bar-h:56px;}
html{-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent;}
.banner{height:var(--bar-h);overflow:hidden;background:var(--bar);}
.banner img{display:block;width:100%;height:var(--bar-h);object-fit:cover;}
.navbar{position:relative;}
.topbar{direction:rtl;height:var(--bar-h);padding:0 10px;gap:6px;align-items:center;justify-content:flex-start;}
.topbar .menu-toggle,.topbar .theme-btn{width:38px;height:36px;padding:0;display:flex;align-items:center;justify-content:center;background:none;border:none;color:#fff;border-radius:12px;cursor:pointer;}
.topbar .menu-toggle:hover,.topbar .theme-btn:hover{background:rgba(255,255,255,.16);}
.topbar .menu-toggle svg,.topbar .theme-btn svg{width:24px;height:24px;fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.topbar .theme-btn .i-sun{display:none;}
body.dark .topbar .theme-btn .i-sun{display:block;fill:none;stroke:#fff;}
body.dark .topbar .theme-btn .i-moon{display:none;}
.topbar .lang-btn{height:36px;border-radius:12px;padding:0 10px;font-size:.78rem;}
.brand{flex:1;min-width:0;display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none;direction:rtl;}
.brand-logo{height:46px;width:auto;max-width:60px;object-fit:contain;display:block;flex-shrink:0;}
.brand-sep{opacity:.55;font-weight:300;font-size:1.25rem;line-height:1;}
.brand-name{font-size:.9rem;font-weight:bold;line-height:1.25;white-space:normal;text-align:right;max-height:2.6em;overflow:hidden;margin-left:auto;}
.brand-nameimg{height:40px;width:auto;min-width:0;max-width:100%;object-fit:contain;display:block;margin-left:auto;}
.brand.empty{display:none;}
.menu{position:absolute;top:100%;left:0;right:0;z-index:70;background:var(--bar);box-shadow:0 8px 20px rgba(0,0,0,.25);}
.menu li:first-child a{border-top:none;}
/* صفحه‌ی اول: متن آخرین مراسم */
.latest{text-align:center;}
.latest h2{font-size:1.05rem;}
/* نمایش درست روی گوشی‌های دارای نوار پایین (اپلیکیشن) */
body{padding-bottom:calc(92px + env(safe-area-inset-bottom));}
.dock{bottom:calc(12px + env(safe-area-inset-bottom));}

/* ناحیه‌ی امن گوشی (هاله/نوار وضعیت) در حالت اپلیکیشن */
body::before{content:"";display:block;height:env(safe-area-inset-top);background:var(--bar);}
/* درخواست فعال‌سازی اعلان */
.push-ask{position:fixed;left:12px;right:12px;bottom:calc(98px + env(safe-area-inset-bottom));max-width:520px;margin:0 auto;z-index:60;padding:14px 16px;border-radius:18px;background:var(--bg);color:var(--text);border:1px solid var(--accent);box-shadow:0 10px 30px rgba(0,0,0,.3);font-size:.9rem;}
.push-ask p{margin-bottom:10px;line-height:1.8;}
.push-ask div{display:flex;gap:8px;}
.push-ask button{flex:1;padding:9px;border-radius:14px;border:1px solid var(--accent);background:none;color:var(--accent);font:inherit;cursor:pointer;}
.push-ask .go{background:var(--accent);color:var(--bg);}
