:root{
  --royal:#0A2373; --night:#040F36; --ink:#0b1530; --mist:#eef2fb; --line:#d9e0f2; --white:#fff;
  --flame:#e5402a; --sky:#2f6bff; --muted:#5a6788;
  --body:'IBM Plex Sans Arabic',system-ui,sans-serif;
  --display:'Lalezar','IBM Plex Sans Arabic',sans-serif;
  --s:1; --wrap:1200px;
}
html[lang=en]{--display:'Barlow Condensed','Arial Narrow',sans-serif;--s:-1}
html[dir=rtl]{--s:1}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--body);color:var(--ink);background:var(--white);line-height:1.7;font-size:17px}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
a:hover{color:var(--sky)}
:focus-visible{outline:3px solid var(--sky);outline-offset:2px;border-radius:2px}
.container{width:100%;max-width:var(--wrap);margin-inline:auto;padding-inline:16px}
.skip{position:absolute;inset-inline-start:8px;top:-60px;background:#fff;color:var(--royal);padding:8px 14px;z-index:99;border-radius:4px}
.skip:focus{top:8px}
.muted{color:var(--muted)}

/* masthead */
.mast{background:var(--royal);color:#fff;position:relative}
.mast::after{content:"";display:block;height:6px;background:linear-gradient(#fff 0 3px,#6f96ff 3px 6px)} /* flag stripe */
.mast-bar{display:flex;justify-content:space-between;align-items:center;font-size:13px;padding-block:7px;color:#b9c7f2;border-bottom:1px solid rgba(255,255,255,.12)}
.lang{color:#fff;font-weight:600;border:1px solid rgba(255,255,255,.4);padding:1px 14px;border-radius:99px}
.lang:hover{background:#fff;color:var(--royal)}
.mast-main{padding-block:14px 12px}
.brand{display:inline-flex;align-items:center;gap:14px}
.brand img{width:64px;height:64px;border-radius:50%}
.brand-text{display:flex;flex-direction:column;line-height:1.1}
.brand-text strong{font-family:var(--display);font-weight:400;font-size:clamp(28px,4.4vw,44px);letter-spacing:.2px}
html[lang=en] .brand-text strong{font-weight:700;font-size:clamp(30px,4.6vw,46px)}
.brand-text small{font-size:13px;color:#b9c7f2;margin-top:4px}
.cats{background:var(--night);position:sticky;top:0;z-index:20}
.cats-in{display:flex;gap:2px;overflow-x:auto;scrollbar-width:none}
.cats-in::-webkit-scrollbar{display:none}
.cats a{white-space:nowrap;padding:11px 16px;font-weight:600;font-size:15px;color:#d4defa;border-bottom:3px solid transparent}
.cats a:hover{color:#fff;background:rgba(255,255,255,.07)}
.cats a[aria-current]{color:#fff;border-bottom-color:#fff}

/* banner */
.banner{background:var(--night)}
.banner img{width:100%;max-width:var(--wrap);margin-inline:auto;aspect-ratio:21/8;object-fit:cover;object-position:50% 46%;height:auto}
@media(max-width:700px){.banner img{aspect-ratio:4/3;object-position:50% 50%}}

/* ticker */
.ticker{background:var(--royal);color:#fff;border-bottom:1px solid var(--night)}
.ticker-in{display:flex;align-items:stretch;gap:0}
.ticker-label{background:var(--flame);color:#fff;font-family:var(--display);font-size:20px;padding:4px 18px;display:flex;align-items:center;flex:none;position:relative;z-index:1}
html[lang=en] .ticker-label{font-weight:700}
.ticker-track{overflow:hidden;flex:1;min-width:0;display:flex;align-items:center;mask-image:linear-gradient(to right,transparent,#000 24px,#000 calc(100% - 24px),transparent)}
.ticker-run{display:flex;width:max-content;animation:run 55s linear infinite}
.ticker-run:hover{animation-play-state:paused}
.ticker-run span{display:flex}
.ticker-run a{padding:10px 28px;font-weight:500;font-size:15px;white-space:nowrap;position:relative}
.ticker-run a::before{content:"";display:inline-block;width:7px;height:7px;background:var(--flame);border-radius:50%;margin-inline-end:12px;vertical-align:middle}
@keyframes run{to{transform:translateX(calc(var(--s) * 50%))}}
@media(prefers-reduced-motion:reduce){.ticker-run{animation:none}.ticker-track{overflow-x:auto}}

/* section titles */
.sec-title{font-family:var(--display);font-weight:400;font-size:26px;line-height:1.2;margin:0 0 14px;display:flex;align-items:center;gap:12px;color:var(--royal)}
html[lang=en] .sec-title{font-weight:700;font-size:28px}
.sec-title::before{content:"";width:9px;height:26px;background:linear-gradient(90deg,var(--royal) 0 4px,#fff 4px 5px,#6f96ff 5px);border-radius:2px;flex:none;box-shadow:inset 0 0 0 1px var(--royal)}
.sec-title.big{font-size:clamp(30px,5vw,42px)}
.count{font-family:var(--body);font-size:14px;background:var(--mist);color:var(--royal);border-radius:99px;padding:0 10px}

main{padding-block:28px 56px}
.chip{display:inline-block;background:var(--royal);color:#fff;font-size:13px;font-weight:600;padding:1px 12px;border-radius:3px;line-height:1.8}
.chip:hover{background:var(--sky);color:#fff}

/* home top */
.top{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:22px;margin-bottom:40px}
.hero{position:relative;border-radius:6px;overflow:hidden;background:var(--night);min-height:360px;display:flex}
.hero-img{position:absolute;inset:0}
.hero-img img,.hero-img .ph{width:100%;height:100%;object-fit:cover}
.hero::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(4,15,54,.96) 0,rgba(4,15,54,.55) 45%,rgba(4,15,54,0) 75%);pointer-events:none}
.hero-text{position:relative;z-index:1;align-self:flex-end;padding:26px;color:#fff;max-width:760px}
.hero-text .chip{background:var(--flame)}
.hero h1{font-family:var(--display);font-weight:400;font-size:clamp(28px,4.2vw,46px);line-height:1.25;margin:10px 0 6px}
html[lang=en] .hero h1{font-weight:700;font-size:clamp(32px,4.6vw,52px);line-height:1.1}
.hero h1 a:hover{color:#fff;text-decoration:underline;text-underline-offset:6px;text-decoration-thickness:2px}
.hero p{margin:0;color:#d4defa;font-size:16px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ph{background:linear-gradient(135deg,var(--royal),var(--night));display:grid;place-items:center}
.ph img{width:34%;max-width:140px;opacity:.35}
.box{background:var(--mist);border-radius:6px;padding:18px}
.latest ul{list-style:none;margin:0;padding:0}
.latest li{display:flex;gap:12px;padding:11px 0;border-top:1px solid var(--line);align-items:baseline;line-height:1.55}
.latest li:first-child{border-top:0;padding-top:0}
.latest time{flex:none;font-weight:700;color:var(--royal);font-variant-numeric:tabular-nums;font-size:14px;min-width:42px}
.latest a{font-weight:600;font-size:16px}

.cols{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:36px;align-items:start}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 22px}
.card{display:flex;flex-direction:column;gap:12px}
.card-img{display:block;border-radius:5px;overflow:hidden;aspect-ratio:16/9;background:var(--mist)}
.card-img img,.card-img .ph{width:100%;height:100%;object-fit:cover}
.card-body{display:flex;flex-direction:column;gap:6px;align-items:flex-start}
.card h3{margin:0;font-size:19px;line-height:1.5;font-weight:700}
.card h3 a:hover{color:var(--sky)}
.card p{margin:0;color:var(--muted);font-size:15px;line-height:1.65;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card time,.meta,.c-name time{font-size:13px;color:var(--muted)}

.side{display:flex;flex-direction:column;gap:22px;position:sticky;top:60px}
.ranked{list-style:none;counter-reset:r;margin:0;padding:0}
.ranked li{counter-increment:r;display:flex;gap:14px;padding:12px 0;border-top:1px solid var(--line);align-items:flex-start}
.ranked li:first-child{border-top:0;padding-top:0}
.ranked li::before{content:counter(r);font-family:var(--display);font-size:30px;line-height:1;color:var(--royal);min-width:26px;text-align:center}
html[lang=en] .ranked li::before{font-weight:700}
.ranked a{font-weight:600;line-height:1.55}
.about{display:flex;gap:14px;align-items:center;background:var(--royal);color:#d4defa}
.about img{border-radius:50%;flex:none}
.about p{margin:0;font-size:14px;line-height:1.6}
.pager{display:flex;justify-content:space-between;align-items:center;margin-top:34px;gap:12px}
.pager a{background:var(--royal);color:#fff;padding:8px 20px;border-radius:4px;font-weight:600}
.pager a:hover{background:var(--sky);color:#fff}
.empty{text-align:center;padding:70px 16px;color:var(--muted)}
.empty img{margin:0 auto 18px;border-radius:50%;opacity:.9}
.empty .sec-title{justify-content:center}
.btn{display:inline-block;background:var(--royal);color:#fff;padding:9px 24px;border-radius:4px;font-weight:600;margin-top:8px}
.btn:hover{background:var(--sky);color:#fff}

/* article */
.art{min-width:0}
.art-head h1{font-size:clamp(28px,4vw,42px);line-height:1.35;margin:12px 0 10px;font-weight:700;color:var(--night)}
html[lang=en] .art-head h1{line-height:1.2}
.lede{font-size:19px;color:var(--muted);margin:0 0 12px;line-height:1.7}
.meta{display:flex;flex-wrap:wrap;gap:6px 18px;padding:10px 0;border-block:1px solid var(--line);margin-bottom:20px}
.meta span:first-child{font-weight:600;color:var(--royal)}
.art-cover{margin:0 0 24px}
.art-cover img{width:100%;border-radius:6px;max-height:560px;object-fit:cover}
.prose{font-size:19px;line-height:2;max-width:70ch;overflow-wrap:break-word}
.prose p{margin:0 0 1.1em}
.prose h2,.prose h3{font-family:var(--body);line-height:1.5;color:var(--royal);margin:1.6em 0 .5em}
.prose img{border-radius:5px;margin:1.2em auto}
.prose blockquote{margin:1.4em 0;padding:4px 18px;border-inline-start:5px solid var(--royal);background:var(--mist);border-radius:3px}
.prose a{color:var(--sky);text-decoration:underline;text-underline-offset:3px}
.prose ul,.prose ol{padding-inline-start:1.4em}
.ql-align-center{text-align:center}.ql-align-right{text-align:right}.ql-align-justify{text-align:justify}.ql-align-left{text-align:left}
.tags{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:26px 0 8px;font-size:14px;color:var(--muted)}
.tags a{background:var(--mist);color:var(--royal);padding:1px 12px;border-radius:99px;font-weight:600}
.tags a:hover{background:var(--royal);color:#fff}
.share{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:22px 0 40px;padding:16px;background:var(--mist);border-radius:6px}
.share strong{margin-inline-end:6px}
.sh{border:0;font:inherit;font-weight:600;font-size:15px;color:#fff;padding:6px 18px;border-radius:4px;cursor:pointer;line-height:1.6}
.sh.fb{background:#1877f2}.sh.wa{background:#1fa855}.sh.cp{background:var(--royal)}
.sh:hover{color:#fff;filter:brightness(1.12)}
.comments{margin-bottom:44px}
.clist{list-style:none;margin:0 0 24px;padding:0}
.clist li{padding:14px 0;border-top:1px solid var(--line)}
.clist li:first-child{border-top:0}
.clist p{margin:4px 0 0}
.c-name{font-weight:700;color:var(--royal);display:flex;gap:12px;align-items:baseline}
.cform{background:var(--mist);padding:20px;border-radius:6px;display:grid;gap:14px;max-width:640px}
.cform h3{margin:0;font-size:18px}
.cform label{display:grid;gap:4px;font-weight:600;font-size:15px}
.cform input,.cform textarea{font:inherit;padding:10px 12px;border:1px solid var(--line);border-radius:4px;background:#fff;color:var(--ink)}
.cform button{justify-self:start;font:inherit;font-weight:700;background:var(--royal);color:#fff;border:0;border-radius:4px;padding:9px 26px;cursor:pointer}
.cform button:hover{background:var(--sky)}
.cform button:disabled{opacity:.6;cursor:wait}
.hp{position:absolute;inset-inline-start:-9999px;width:1px;height:1px;overflow:hidden}
.form-msg{margin:0;font-size:15px;min-height:1.2em}
.form-msg.ok{color:#137a3b}.form-msg.bad{color:#b3261e}

/* footer */
.foot{background:var(--night);color:#b9c7f2;margin-top:20px}
.foot::before{content:"";display:block;height:6px;background:linear-gradient(#fff 0 3px,#6f96ff 3px 6px)}
.foot-in{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;padding-block:30px}
.foot-brand{display:flex;gap:14px;align-items:center;max-width:520px}
.foot-brand img{border-radius:50%}
.foot-brand strong{color:#fff;font-family:var(--display);font-weight:400;font-size:24px}
html[lang=en] .foot-brand strong{font-weight:700}
.foot-brand p{margin:0;font-size:14px}
.foot-links{display:flex;gap:18px;align-items:center}
.foot-links a:hover{color:#fff}
.foot-copy{padding-block:14px 22px;font-size:13px;border-top:1px solid rgba(255,255,255,.1)}

@media(max-width:960px){
  .cols{grid-template-columns:1fr}
  .side{position:static}
  .top{grid-template-columns:1fr}
  .hero{min-height:320px}
}
@media(max-width:600px){
  body{font-size:16px}
  .grid{grid-template-columns:1fr}
  .brand img{width:52px;height:52px}
  .hero{min-height:280px}.hero-text{padding:18px}
  .prose{font-size:18px}
  main{padding-block:20px 40px}
}
