/* =====================================================================
   المشرق نيوز — تصميم الواجهة
   بوابة إخبارية: أبيض نظيف، شريط أقسام كحلي، برتقالي الشمس للتمييز.
   ===================================================================== */
:root{
  --bg:#ffffff; --bg-2:#f4f5f8; --bg-3:#eceef3;
  --ink:#111318; --ink-2:#2b2f3a; --muted:#6b7080; --rule:#e3e5ea; --rule-2:#cfd2da;
  --navy:#16185a; --navy-2:#0e1040; --indigo:#2f2a9c;
  --accent:#e8750f; --accent-2:#f7941d; --live:#d6310f;
  --font:"Almarai",system-ui,-apple-system,"Segoe UI",Tahoma,sans-serif;
  --wrap:1240px; --gap:24px; --radius:4px;
}
:root[data-theme="dark"]{
  --bg:#0d0f1a; --bg-2:#151827; --bg-3:#1d2133;
  --ink:#eef0f6; --ink-2:#cdd1de; --muted:#8d93a8; --rule:#242842; --rule-2:#323758;
  --navy:#12144a; --navy-2:#0a0b2c; --accent:#f7941d; --accent-2:#ffab45; --live:#ff5a36;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
html,body{overflow-x:clip}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font);font-size:16px;line-height:1.7;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
button,input{font:inherit;color:inherit}
svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 20px}
.skip{position:absolute;right:-9999px}.skip:focus{right:16px;top:8px;z-index:99;background:var(--navy);color:#fff;padding:8px 14px}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* ---------- topbar ---------- */
.topbar{background:var(--navy-2);color:#b9bdd6;font-size:12.5px}
.topbar .wrap{display:flex;align-items:center;gap:18px;height:34px}
.dates{display:flex;gap:8px;align-items:center;white-space:nowrap}
.dates .sep{opacity:.4}
.toplinks{display:flex;gap:16px;margin-inline-start:auto}
.toplinks a:hover{color:#fff}
.social{display:flex;gap:12px;align-items:center}
.social a{display:inline-flex;color:inherit;transition:color .2s}
.social a:hover{color:var(--accent-2)}
.social svg{width:15px;height:15px;fill:currentColor;stroke:none}

/* ---------- masthead ---------- */
.masthead{background:var(--bg);border-bottom:1px solid var(--rule)}
.masthead .wrap{display:flex;align-items:center;gap:20px;height:92px}
.logo{display:flex;align-items:center;gap:10px;flex:none}
.logo .sun{width:74px;height:auto}
.lockup{display:flex;flex-direction:column;line-height:1}
.wordmark{display:inline-flex;align-items:baseline;gap:6px;font-family:var(--font);line-height:1}
.wordmark b{font-weight:800;font-size:38px;color:var(--navy)}
:root[data-theme="dark"] .wordmark b{color:#fff}
.wordmark i{font-style:normal;font-weight:700;font-size:17px;color:var(--accent)}
.wordmark.sm b{font-size:26px}.wordmark.sm i{font-size:13px}
.wordmark.light b{color:#fff}
.latin{font-size:9.5px;font-weight:700;letter-spacing:.42em;color:var(--indigo);margin-top:7px;direction:ltr;text-align:right}
:root[data-theme="dark"] .latin{color:#a9a6f2}
.tagline{margin:0;padding-inline-start:20px;border-inline-start:1px solid var(--rule);color:var(--muted);font-size:13px;line-height:1.5;max-width:180px}
.mh-end{display:flex;align-items:center;gap:6px;margin-inline-start:auto}
.search{display:flex;align-items:center;background:var(--bg-2);border:1px solid var(--rule);border-radius:999px;padding:0 6px 0 4px;height:40px;width:280px;transition:border-color .2s}
.search:focus-within{border-color:var(--accent)}
.search input{flex:1;min-width:0;border:0;background:none;outline:none;padding:0 12px;font-size:14px;color:var(--ink)}
.search button{background:none;border:0;cursor:pointer;color:var(--muted);display:grid;place-items:center;width:32px;height:32px}
.search button svg{width:18px;height:18px}
.icon-btn{display:inline-grid;place-items:center;width:40px;height:40px;background:none;border:0;border-radius:50%;cursor:pointer;color:var(--ink-2)}
.icon-btn:hover{background:var(--bg-2)}
.icon-btn svg{width:21px;height:21px}
.menu-btn{display:none}

/* ---------- nav ---------- */
nav.cats{background:var(--navy);position:sticky;top:0;z-index:30;box-shadow:0 1px 0 rgba(0,0,0,.08)}
nav.cats .wrap{display:flex;align-items:stretch;overflow-x:auto;scrollbar-width:none}
nav.cats .wrap::-webkit-scrollbar{display:none}
nav.cats a{position:relative;display:flex;align-items:center;padding:0 15px;height:48px;white-space:nowrap;color:#e6e7f4;font-size:15px;font-weight:700;transition:background .2s,color .2s}
nav.cats a:hover{background:rgba(255,255,255,.07);color:#fff}
nav.cats a.on{color:#fff}
nav.cats a.on::after{content:"";position:absolute;inset-inline:10px;bottom:0;height:3px;background:var(--accent-2)}
nav.cats a.special{color:var(--accent-2)}
nav.cats a.home svg{width:19px;height:19px}
nav.cats .sep{width:1px;background:rgba(255,255,255,.14);margin:12px 6px;flex:none}

/* ---------- drawer ---------- */
.drawer{position:fixed;inset:0;background:rgba(5,6,20,.55);z-index:60}
.drawer-panel{position:absolute;inset-block:0;inset-inline-start:0;width:min(320px,86vw);background:var(--bg);padding:18px 22px;overflow:auto;box-shadow:0 0 40px rgba(0,0,0,.25)}
.drawer-head{display:flex;justify-content:space-between;align-items:center;padding-bottom:14px;margin-bottom:6px;border-bottom:1px solid var(--rule)}
.drawer-head button{background:none;border:0;cursor:pointer;color:var(--ink);width:40px;height:40px;display:grid;place-items:center}
.drawer-head svg{width:22px;height:22px}
#drawerLinks a{display:block;padding:12px 0;border-bottom:1px solid var(--rule);font-weight:700;font-size:16px}
#drawerLinks a:hover{color:var(--accent)}
#drawerLinks .sep{height:14px}

/* ---------- breaking ticker ---------- */
.ticker{background:var(--bg);border-bottom:1px solid var(--rule)}
.ticker .wrap{display:flex;align-items:center;height:44px;gap:0}
.ticker-label{flex:none;background:var(--live);color:#fff;font-size:14px;font-weight:800;padding:0 16px;height:30px;display:flex;align-items:center;border-radius:var(--radius)}
.track{flex:1;overflow:hidden;position:relative;margin-inline-start:14px;-webkit-mask-image:linear-gradient(to left,transparent,#000 4%,#000 96%,transparent);mask-image:linear-gradient(to left,transparent,#000 4%,#000 96%,transparent)}
.ticker .move{display:inline-flex;white-space:nowrap;animation:tick 80s linear infinite;font-size:14.5px;font-weight:700;color:var(--ink-2)}
.ticker .move:hover{animation-play-state:paused}
.ticker .move a{padding:0 18px;border-inline-start:1px solid var(--rule-2)}
.ticker .move a:hover{color:var(--accent)}
@keyframes tick{from{transform:translateX(0)}to{transform:translateX(50%)}}

/* ---------- common bits ---------- */
.ad-wrap{padding-top:18px}
main.wrap{padding-top:22px;padding-bottom:60px;min-height:60vh}
.tag{display:inline-block;font-size:12.5px;font-weight:700;color:var(--accent);margin-bottom:6px}
time,.time{display:inline-flex;align-items:center;gap:5px;font-size:12px;color:var(--muted)}
.thumb{position:relative;aspect-ratio:16/9;overflow:hidden;background:var(--bg-3);border-radius:var(--radius)}
.thumb img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.thumb.empty::after{content:"المشرق";position:absolute;inset:0;display:grid;place-items:center;font-weight:800;font-size:22px;color:var(--rule-2)}
a:hover .thumb img{transform:scale(1.03)}
a:hover h2,a:hover h3,a:hover h4{color:var(--accent)}
h1,h2,h3,h4{transition:color .2s}

/* section heading */
.sec-head{display:flex;align-items:center;gap:12px;margin:40px 0 18px;padding-bottom:10px;border-bottom:2px solid var(--rule)}
.sec-head h2{position:relative;margin:0;font-size:22px;font-weight:800;line-height:1.3;padding-inline-start:12px}
.sec-head h2::before{content:"";position:absolute;inset-inline-start:0;top:3px;bottom:3px;width:4px;background:var(--accent);border-radius:2px}
.sec-head h2 a:hover{color:var(--accent)}
.sec-head .more{margin-inline-start:auto;font-size:13.5px;font-weight:700;color:var(--muted);white-space:nowrap}
.sec-head .more::after{content:" ←"}
.sec-head .more:hover{color:var(--accent)}
.live-badge{display:inline-flex;align-items:center;gap:7px;background:var(--live);color:#fff;font-size:12px;font-weight:800;padding:3px 10px;border-radius:var(--radius);white-space:nowrap}
.live-badge::before{content:"";width:7px;height:7px;border-radius:50%;background:#fff;animation:blink 1.4s infinite}
@keyframes blink{50%{opacity:.25}}

/* cards */
.card{display:flex;flex-direction:column;gap:10px;min-width:0}
.card h3{margin:0;font-size:17px;font-weight:800;line-height:1.55}
.card p{margin:4px 0 0;color:var(--muted);font-size:14.5px;line-height:1.75}
.card .c-body{display:flex;flex-direction:column;align-items:flex-start;min-width:0}
.card time{margin-top:8px}
.card.lg h3{font-size:24px;line-height:1.5}
.card.row{flex-direction:row;gap:14px;align-items:flex-start;padding:14px 0;border-top:1px solid var(--rule)}
.card.row:first-child{border-top:0;padding-top:0}
.card.row .thumb{flex:none;width:132px}
.card.row h3{font-size:15px;line-height:1.6}
.card.row .tag{font-size:12px;margin-bottom:3px}
.card.row time{margin-top:5px}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px var(--gap)}
.grid.four{grid-template-columns:repeat(4,1fr)}

/* ---------- home: top news ---------- */
.top-news{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:var(--gap);margin-top:6px}
.lead{position:relative;display:block;border-radius:var(--radius);overflow:hidden;background:#000}
.lead .thumb{aspect-ratio:16/10;border-radius:0}
.lead .thumb img{opacity:.92}
.lead-txt{position:absolute;inset:auto 0 0 0;padding:110px 28px 26px;background:linear-gradient(to top,rgba(5,6,24,.95) 0%,rgba(5,6,24,.75) 45%,transparent 100%);color:#fff;display:flex;flex-direction:column;align-items:flex-start}
.lead-txt .tag{background:var(--accent);color:#fff;padding:3px 10px;border-radius:var(--radius);margin-bottom:12px}
.lead-txt h2{margin:0;font-size:34px;font-weight:800;line-height:1.45}
.lead:hover .lead-txt h2{color:#fff;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:6px}
.lead-txt p{margin:10px 0 0;color:#d6d8e6;font-size:16px;max-width:680px}
.lead-txt time{color:#b9bccf;margin-top:12px}
.top-list{display:flex;flex-direction:column}
.mini-title{margin:0 0 14px;font-size:16px;font-weight:800;color:var(--navy);display:flex;align-items:center;gap:8px}
:root[data-theme="dark"] .mini-title{color:var(--ink)}
.mini-title::before{content:"";width:4px;height:18px;background:var(--accent);border-radius:2px}

/* layout with sidebar */
.layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:36px;align-items:start}
.layout>aside{padding-top:40px}
.sticky{position:sticky;top:64px;display:flex;flex-direction:column;gap:26px}

/* block: one big + list */
.blk{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:var(--gap)}
.blk-side{display:flex;flex-direction:column}

/* Gaza live */
.live-list{list-style:none;margin:0 6px 0 0;padding:0;border-inline-start:2px solid var(--rule)}
.live-list li{position:relative;padding:0 22px 18px}
.live-list li:last-child{padding-bottom:4px}
.live-list li::before{content:"";position:absolute;inset-inline-start:-7px;top:6px;width:12px;height:12px;border-radius:50%;background:var(--bg);border:2px solid var(--live)}
.live-list li:first-child::before{background:var(--live)}
.live-list time{font-weight:700;color:var(--live);font-size:13px}
.live-list a{display:block;font-weight:700;font-size:16px;line-height:1.6;margin-top:2px}
.live-list a:hover{color:var(--accent)}

/* latest */
.latest a{display:grid;grid-template-columns:62px 1fr;gap:12px;padding:12px 0;border-top:1px solid var(--rule);align-items:baseline}
.latest a:first-child{border-top:0;padding-top:0}
.latest time{font-weight:700;color:var(--ink-2);font-size:13px}
.latest span{font-weight:700;font-size:15.5px;line-height:1.6}
.latest span small{display:block;font-size:12px;color:var(--accent);font-weight:700}
.latest a:hover span{color:var(--accent)}

/* Marsad band */
.marsad{background:var(--navy-2);color:#fff;margin:48px calc(50% - 50vw + var(--sbw,0px) / 2) 0;padding:40px 0 48px}
.marsad-in{max-width:var(--wrap);margin:0 auto;padding:0 20px}
.marsad .sec-head{margin-top:0;border-color:rgba(255,255,255,.14)}
.marsad .sec-head h2{color:#fff;font-size:26px}
.marsad .sec-head .sub{color:#a7abc8;font-size:14px}
.marsad .sec-head .more{color:#c4c7de}
.marsad .card h3{color:#fff}
.marsad .card:hover h3{color:var(--accent-2)}
.marsad .card p{color:#b3b6cf}
.marsad .card time{color:#9094b3}
.marsad .tag{color:var(--accent-2)}
.marsad .card.lg{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:28px;align-items:center;margin-bottom:30px}
.marsad .card.lg h3{font-size:28px}
.page-head.dark{background:var(--navy-2);color:#fff;border:0;padding:30px 26px;border-radius:var(--radius)}
.page-head.dark p{color:#b3b6cf}

/* opinions */
.op-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--gap)}
.op-grid.three{grid-template-columns:repeat(3,1fr)}
.op{display:flex;flex-direction:column;gap:12px;padding:20px;background:var(--bg-2);border-radius:var(--radius);border-top:3px solid var(--navy)}
:root[data-theme="dark"] .op{border-top-color:var(--accent)}
.op h3{margin:0;font-size:17px;font-weight:800;line-height:1.6}
.op p{margin:0;color:var(--muted);font-size:14px;line-height:1.75;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.author{display:flex;align-items:center;gap:10px}
.author b{display:block;font-size:14px;font-weight:800}
.author span{display:block;font-size:12px;color:var(--muted)}
.avatar{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;color:#fff;font-weight:800;font-size:17px;flex:none;overflow:hidden;background:var(--navy)}
.avatar img{width:100%;height:100%;object-fit:cover}

/* category columns */
.cat-cols{display:grid;grid-template-columns:repeat(3,1fr);gap:0 var(--gap)}
.cat-cols>section>.card:not(.row){margin-bottom:16px}

/* ---------- sidebar boxes ---------- */
.box-title{margin:0 0 14px;font-size:17px;font-weight:800;padding-bottom:10px;border-bottom:2px solid var(--rule);position:relative}
.box-title::after{content:"";position:absolute;inset-inline-start:0;bottom:-2px;width:48px;height:2px;background:var(--accent)}
.most ol{list-style:none;margin:0;padding:0;counter-reset:n}
.most li{display:grid;grid-template-columns:34px 1fr;gap:6px;padding:12px 0;border-top:1px solid var(--rule)}
.most li:first-child{border-top:0;padding-top:4px}
.most li::before{counter-increment:n;content:counter(n);font-size:24px;font-weight:800;line-height:1.1;color:var(--rule-2)}
.most a{font-weight:700;font-size:14.5px;line-height:1.6}
.most a:hover{color:var(--accent)}
.newsbox{background:var(--navy);color:#fff;padding:22px;border-radius:var(--radius)}
.newsbox h4{margin:0 0 4px;font-size:18px;font-weight:800}
.newsbox p{margin:0 0 14px;color:#c4c7de;font-size:13.5px}
.newsbox input{width:100%;height:42px;border:0;border-radius:var(--radius);padding:0 12px;margin-bottom:8px;background:#fff;color:#111}
.ok-msg{margin:6px 0 0;font-weight:700}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:42px;padding:0 20px;border:0;border-radius:var(--radius);background:var(--accent);color:#fff;font-weight:800;font-size:14.5px;cursor:pointer;transition:background .2s}
.btn:hover{background:#cf640a}
.btn.block{width:100%}
.btn.ghost{background:none;border:1px solid var(--rule-2);color:var(--ink)}
.btn.ghost:hover{border-color:var(--accent);color:var(--accent)}
.center{text-align:center;margin-top:30px}

/* ---------- ads ---------- */
.ad{display:grid;place-items:center;text-align:center;background:var(--bg-2);border:1px dashed var(--rule-2);color:var(--muted);font-size:12px;position:relative;overflow:hidden;border-radius:var(--radius)}
.ad b{display:block;font-size:15px;font-weight:800;color:var(--ink-2);margin-bottom:2px}
.ad::before{content:"إعلان";position:absolute;top:5px;inset-inline-end:8px;font-size:10px;color:var(--muted)}
.ad.real{border:0;background:none}
.ad.real::before{background:rgba(0,0,0,.45);color:#fff;padding:0 5px;border-radius:2px}
.ad.real img{width:100%;height:100%;object-fit:cover}
.ad-top{height:90px;max-width:970px;margin:0 auto}
.ad-sidebar{height:250px}
.ad-wide{height:110px;margin-top:40px}
.ad-inline{height:120px;margin:28px 0}

/* ---------- page heads & listings ---------- */
.crumbs{display:flex;gap:8px;font-size:13px;color:var(--muted);margin-bottom:12px;flex-wrap:wrap}
.crumbs a:hover{color:var(--accent)}
.page-head{padding:6px 0 18px;border-bottom:2px solid var(--rule);margin-bottom:6px}
.page-head h1{margin:0;font-size:32px;font-weight:800;line-height:1.35;position:relative;padding-inline-start:14px}
.page-head h1::before{content:"";position:absolute;inset-inline-start:0;top:6px;bottom:6px;width:5px;background:var(--accent);border-radius:2px}
.page-head p{margin:8px 0 0;color:var(--muted);font-size:15px}
.writer-head{display:flex;align-items:center;gap:16px}
.writer-head h1{padding:0}.writer-head h1::before{display:none}
.writer-head .avatar{width:72px;height:72px;font-size:28px}
.list-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:30px var(--gap);padding-top:24px}
.list-grid.ops{grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}

/* ---------- article ---------- */
.article-head{max-width:860px;padding-top:4px}
.article-head h1{margin:6px 0 0;font-size:36px;font-weight:800;line-height:1.5}
.article-head .lead-p{margin:14px 0 0;font-size:19px;color:var(--ink-2);line-height:1.8}
.article-head .author{margin-top:18px}
.a-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;margin-top:18px;padding:12px 0;border-top:1px solid var(--rule);border-bottom:1px solid var(--rule);font-size:13px;color:var(--muted)}
.a-meta .share{margin-inline-start:auto}
.share{display:flex;gap:6px;align-items:center}
.share button{width:34px;height:34px;display:grid;place-items:center;border:1px solid var(--rule);border-radius:50%;background:var(--bg);cursor:pointer;color:var(--ink-2);transition:all .2s;padding:0}
.share button:hover{background:var(--navy);border-color:var(--navy);color:#fff}
.share svg{width:15px;height:15px;fill:currentColor;stroke:none}
.share button[data-share="copy"] svg{fill:none;stroke:currentColor;stroke-width:2}
.article-cover{margin:22px 0 0}
.article-cover .thumb{aspect-ratio:16/9}
.article-body{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:40px;align-items:start;margin-top:26px}
.content{font-size:18.5px;line-height:2.05;color:var(--ink)}
.content p{margin:0 0 1.15em}
.content h2,.content h3{font-weight:800;line-height:1.5;margin:1.6em 0 .5em}
.content h2{font-size:24px}.content h3{font-size:20px}
.content a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
.content img{border-radius:var(--radius);margin:1.2em 0;height:auto}
.content blockquote{margin:1.6em 0;padding:4px 20px;border-inline-start:4px solid var(--accent);font-weight:700;font-size:20px;color:var(--ink-2)}
.content iframe{width:100%;aspect-ratio:16/9;height:auto;border:0;border-radius:var(--radius);margin:1.2em 0}
.content ul,.content ol{padding-inline-start:1.4em}
.disclaimer{margin-top:24px;padding:14px 16px;background:var(--bg-2);border-radius:var(--radius);font-size:13.5px;color:var(--muted)}
.share-bottom{display:flex;align-items:center;gap:10px;margin-top:28px;padding-top:18px;border-top:1px solid var(--rule)}
.share-bottom b{font-size:14px}

/* ---------- static pages ---------- */
.page-body{max-width:760px;white-space:pre-line;font-size:17.5px;line-height:2;padding-top:20px}
.contact-list{display:grid;gap:14px;white-space:normal}
.contact-list>div{padding:18px;background:var(--bg-2);border-radius:var(--radius)}
.contact-list small{display:block;color:var(--muted);font-size:12.5px;margin-bottom:4px}
.contact-list a{font-weight:800;font-size:18px}
.empty{text-align:center;padding:70px 20px;color:var(--muted)}
.empty h2{font-size:26px;font-weight:800;color:var(--ink);margin:0 0 18px}
.loading{display:grid;place-items:center;padding:110px 0}
.loading span{width:34px;height:34px;border:3px solid var(--rule);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* ---------- footer ---------- */
.site-footer{background:var(--navy-2);color:#a9adc7;font-size:14px;border-top:4px solid var(--accent)}
.footer-grid{display:grid;grid-template-columns:1.4fr 1.4fr .8fr 1.1fr;gap:36px;padding-top:44px;padding-bottom:36px}
.foot-logo{display:inline-flex;align-items:center;gap:8px}
.foot-logo img{width:56px;height:auto}
.foot-logo .wordmark b{font-size:28px}
.f-brand p{margin:14px 0 16px;line-height:1.9;font-size:13.5px}
.social.big{gap:8px}
.social.big a{width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.07);justify-content:center;align-items:center}
.social.big a:hover{background:var(--accent);color:#fff}
.site-footer h4{color:#fff;margin:6px 0 14px;font-size:15px;font-weight:800}
.flinks{display:grid;grid-template-columns:1fr 1fr;gap:9px 16px}
.flinks.one{grid-template-columns:1fr}
.flinks a:hover{color:#fff}
.fnote{margin:0 0 12px;font-size:13.5px}
.foot-sub{display:flex;background:#fff;border-radius:var(--radius);overflow:hidden}
.foot-sub input{flex:1;min-width:0;border:0;padding:0 12px;height:42px;outline:none;color:#111;background:#fff}
.foot-sub button{border:0;background:var(--accent);color:#fff;font-weight:800;padding:0 16px;cursor:pointer}
.footer-bottom{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;padding-top:16px;padding-bottom:20px;border-top:1px solid rgba(255,255,255,.08);font-size:12.5px;color:#7e83a3}

/* ---------- toast ---------- */
.toast{position:fixed;bottom:22px;left:50%;transform:translate(-50%,120px);background:var(--ink);color:var(--bg);padding:11px 20px;border-radius:var(--radius);font-weight:700;font-size:14px;transition:transform .25s;z-index:90}
.toast.show{transform:translate(-50%,0)}

/* =====================================================================
   التجاوب مع الشاشات
   ===================================================================== */
@media (min-width:1600px){:root{--wrap:1400px}}
@media (max-width:1100px){
  .tagline{display:none}
  .search{width:220px}
  .layout,.article-body{grid-template-columns:1fr;gap:10px}
  .layout>aside{padding-top:10px}
  .sticky{position:static;display:grid;grid-template-columns:1fr 1fr;gap:24px}
  .grid.four,.op-grid{grid-template-columns:repeat(2,1fr)}
  .footer-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:900px){
  .top-news{grid-template-columns:1fr}
  .top-list{display:grid;grid-template-columns:1fr 1fr;column-gap:24px}
  .top-list .mini-title{grid-column:1/-1}
  .top-list .card.row:nth-child(2),.top-list .card.row:nth-child(3){border-top:0;padding-top:0}
  .lead-txt h2{font-size:28px}
  .cat-cols{grid-template-columns:1fr 1fr}
  .marsad .card.lg{grid-template-columns:1fr}
  .grid,.list-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:760px){
  .wrap,.marsad-in{padding:0 14px}
  .topbar .toplinks,.topbar .social{display:none}
  .masthead .wrap{height:66px;gap:8px;position:relative}
  .menu-btn{display:inline-grid;margin-inline-start:-8px}
  .logo .sun{width:50px}
  .wordmark b{font-size:27px}.wordmark i{font-size:13px}
  .latin{font-size:7.5px;margin-top:5px;letter-spacing:.38em}
  .search{width:auto;background:none;border:0;padding:0}
  .search input{width:0;padding:0}
  .search:focus-within{position:absolute;inset-inline:10px;background:var(--bg);border:1px solid var(--accent);padding:0 6px;z-index:5}
  .search:focus-within input{width:100%;padding:0 10px}
  nav.cats a{height:44px;padding:0 12px;font-size:14.5px}
  .ticker .wrap{height:40px}
  .ticker-label{height:26px;padding:0 10px;font-size:13px}
  .ad-top{height:60px}
  .ad-wrap{padding-top:12px}
  main.wrap{padding-top:14px}
  .lead .thumb{aspect-ratio:4/3}
  .lead-txt{padding:80px 16px 16px}
  .lead-txt h2{font-size:22px}
  .lead-txt p{display:none}
  .top-list{display:flex;margin-top:22px}
  .top-list .card.row:nth-child(3){border-top:1px solid var(--rule);padding-top:14px}
  .sec-head{margin-top:32px}.sec-head h2{font-size:20px}
  .grid,.grid.four,.list-grid,.op-grid,.op-grid.three,.cat-cols{grid-template-columns:1fr}
  .blk{grid-template-columns:1fr}
  .card.lg h3{font-size:21px}
  .card.row .thumb{width:112px}
  .sticky{grid-template-columns:1fr}
  .marsad{padding:30px 0 34px}
  .marsad .card.lg h3{font-size:22px}
  .page-head h1{font-size:26px}
  .article-head h1{font-size:26px}
  .article-head .lead-p{font-size:17px}
  .a-meta .share{margin-inline-start:0;width:100%}
  .content{font-size:17.5px}
  .footer-grid{grid-template-columns:1fr;gap:26px}
}
@media (pointer:coarse){.share button{width:40px;height:40px}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* ---- تحسينات ---- */
.sec-head h2{white-space:nowrap}
@media (max-width:1100px){nav.cats{-webkit-mask-image:linear-gradient(to left,#000 90%,transparent);mask-image:linear-gradient(to left,#000 90%,transparent)}}
@media (max-width:760px){.sec-head .sub{display:none}.sec-head .more{font-size:12.5px}}
.content a.ad{text-decoration:none;color:var(--muted)}.content a.ad b{color:var(--ink-2)}
@media (max-width:1100px){.layout,.article-body{grid-template-columns:minmax(0,1fr)}}
@media (max-width:760px){.sec-head{flex-wrap:wrap;row-gap:6px}}
@media (max-width:360px){
  .logo .sun{width:42px}.logo{gap:6px}
  .wordmark b{font-size:24px}
  .masthead .wrap{gap:4px}
  .mh-end{gap:0}
  .icon-btn{width:36px;height:36px}
}
