/*
Theme Name: Massarok Editorial — مسارك
Author: Massarok
Description: قالب إخباري عربي لموقع مسارك، بأقسام ديناميكية وتصميم متجاوب ووضع داكن وفهرس للمقالات.
Version: 1.4.7
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: massarok-editorial
Tags: news, blog, custom-logo, custom-menu, featured-images, rtl-language-support, theme-options
*/
@font-face{font-family:Massarok;src:url('assets/fonts/NotoSansArabic.ttf') format('truetype');font-style:normal;font-weight:100 900;font-display:swap}
:root{--accent:#c2181d;--ink:#121b29;--muted:#5d646f;--paper:#fff;--canvas:#fff;--line:#dfe1e5;--soft:#f2f3f6;--gold:#d3ad65;--dark:#0e182b;--radius:8px;--shadow:0 12px 35px #142e2310}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:95px}body{margin:0;background:var(--canvas);color:var(--ink);font-family:Massarok,Tahoma,Arial,sans-serif;font-size:15px;line-height:1.8;-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}a:hover{color:var(--accent)}button,input,textarea,select{font:inherit}button,summary{cursor:pointer}button{color:inherit}img{max-width:100%;height:auto;display:block}figure{margin:0}h1,h2,h3,h4,p{margin-top:0}h1,h2,h3,h4{line-height:1.5;font-weight:750}p{margin-bottom:1em}ul,ol{padding-inline-start:1.5em}button,a,input,textarea,summary{outline-offset:5px}a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid var(--gold)}[hidden]{display:none!important}.container{width:min(1280px,calc(100% - 64px));margin-inline:auto}.screen-reader-text,.skip-link{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link:focus{z-index:999999;clip:auto;width:auto;height:auto;top:10px;inset-inline-start:10px;padding:12px 20px;background:var(--paper);color:var(--ink)}
.topbar{background:var(--dark);color:#d9e5de;font-size:11px;letter-spacing:.1px}.topbar-inner{min-height:35px;display:flex;justify-content:space-between;align-items:center;gap:20px}.live-dot{display:inline-block;width:6px;height:6px;background:#e32636;border-radius:50%;margin-inline-end:8px}.site-header{background:var(--paper)}.masthead{display:flex;align-items:center;justify-content:space-between;gap:32px;min-height:122px}.brand{display:flex;flex-direction:column;gap:3px;flex-shrink:0}.wordmark{display:flex;align-items:center;gap:12px;font-weight:850;font-size:47px;line-height:1.3;letter-spacing:-2px;color:var(--dark)}.brand-square{display:grid;place-items:center;width:40px;height:40px;background:var(--dark);color:white;border-radius:6px;letter-spacing:0}.brand-square svg{width:100%;height:100%}.brand-subtitle{font-size:11px;color:var(--muted)}.custom-logo{max-width:240px;max-height:88px;object-fit:contain}.masthead-message{border-inline-start:1px solid var(--line);padding-inline-start:25px;display:flex;flex-direction:column;gap:3px;margin-inline-end:auto}.masthead-message span{font-size:11px;color:var(--muted)}.masthead-message strong{font-size:16px;font-weight:600}.header-actions{display:flex;gap:10px;align-items:center}.icon-button{border:1px solid var(--line);border-radius:50%;width:43px;height:43px;display:flex;align-items:center;justify-content:center;background:var(--paper);font-size:23px;list-style:none}.icon-button:hover{background:var(--soft)}summary::-webkit-details-marker{display:none}.search-panel{position:relative}.search-popover{position:absolute;inset-inline-end:0;top:55px;z-index:100;width:360px;padding:20px;background:var(--paper);box-shadow:var(--shadow);border:1px solid var(--line);border-radius:8px}.search-form{display:flex;gap:8px;max-width:560px}.search-form input{min-width:0;flex:1;background:var(--canvas);border:1px solid var(--line);padding:10px 12px;border-radius:4px;color:var(--ink)}.search-form button,.button,input[type=submit]{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:4px;padding:10px 18px;background:var(--accent);color:#fff;cursor:pointer;font-size:13px;font-weight:650}.button:hover,.search-form button:hover{filter:brightness(.92);color:white}.button.subtle{background:var(--soft);color:var(--ink)}.nav-shell{border-block:1px solid var(--dark);background:var(--dark)}.nav-shell .menu>li>a{color:#f7f8fb}.nav-shell .menu>li>a:hover,.nav-shell .menu>li.current-menu-item>a{color:#ff4656}.nav-shell .submenu-toggle{color:#fff}.edition-link{color:#d6dbe5}.nav-inner{display:flex;align-items:center;gap:20px;min-height:55px}.primary-nav{flex:1;min-width:0}.menu{list-style:none;padding:0;margin:0;display:flex;align-items:center;flex-wrap:wrap;column-gap:25px;row-gap:0}.menu>li{position:relative;display:flex;align-items:center}.menu>li>a{display:block;padding:15px 0;font-size:13px;font-weight:650;position:relative}.menu>li.current-menu-item>a:after,.menu>li.current-menu-ancestor>a:after{content:'';position:absolute;bottom:0;inset-inline:0;height:3px;background:var(--accent)}.current-menu-item>a{color:var(--accent)}.edition-link{font-size:11px;color:var(--muted);white-space:nowrap}.sub-menu{list-style:none;display:none;position:absolute;top:100%;inset-inline-start:0;min-width:240px;padding:10px;background:var(--paper);border:1px solid var(--line);box-shadow:var(--shadow);z-index:80}.sub-menu li{position:relative}.sub-menu a{display:block;padding:8px 10px;font-size:13px}.sub-menu .sub-menu{top:0;inset-inline-start:100%}.menu li:hover>.sub-menu,.menu li:focus-within>.sub-menu,.menu li.sub-open>.sub-menu{display:block}.submenu-toggle{padding:5px;border:0;background:none}.menu-toggle{border:0;background:transparent;font-weight:700;padding:10px 0;gap:10px}.news-strip{display:flex;align-items:center;gap:22px;border-bottom:1px solid var(--line);min-height:55px;margin-bottom:28px;font-size:12px}.news-strip-label{display:flex;gap:9px;align-items:center;white-space:nowrap;font-weight:750;color:var(--accent)}.news-strip-label i{display:block;width:6px;height:6px;border-radius:50%;background:var(--accent)}.news-strip-items{display:block;overflow:hidden;min-width:0;flex:1;padding:10px 0;direction:rtl}.news-strip-track,.news-strip-copy{display:flex;align-items:center;width:max-content;gap:25px}.news-strip-track{animation:msrk-ticker 34s linear infinite}.news-strip:hover .news-strip-track,.news-strip:focus-within .news-strip-track{animation-play-state:paused}@keyframes msrk-ticker{to{transform:translateX(-50%)}}@media(prefers-reduced-motion:reduce){.news-strip-track{animation:none}}.news-strip-items a{white-space:nowrap;max-width:520px;text-overflow:ellipsis;overflow:hidden;flex-shrink:0}.news-strip-items a:before{content:'✦';font-size:9px;color:var(--gold);margin-inline-end:20px}
.homepage{padding-top:28px}.news-strip+.homepage{padding-top:0}.hero-grid{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(0,1fr);gap:30px;margin-bottom:50px}.story{min-width:0}.story-image{display:block;overflow:hidden;border-radius:var(--radius);background:var(--soft);aspect-ratio:3/2}.story-image img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}.story:hover .story-image img{transform:scale(1.025)}.story-body{padding-top:16px}.category-label{font-size:11px;font-weight:750;color:var(--accent);display:inline-block;margin-bottom:8px}.story-title{font-size:20px;margin-bottom:10px;font-weight:750;overflow-wrap:anywhere}.story-excerpt{font-size:13px;line-height:1.95;color:var(--muted);margin-bottom:12px}.post-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:10px;color:var(--muted)}.story--hero{height:100%;min-height:535px;position:relative;isolation:isolate;border-radius:var(--radius);overflow:hidden;background:var(--dark)}.story--hero .story-image{position:absolute;inset:0;height:100%;width:100%;aspect-ratio:auto;border-radius:0;z-index:-2}.story--hero:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,rgba(8,15,31,.96),rgba(8,15,31,.33) 65%,rgba(8,15,31,.02));z-index:-1}.story--hero .story-body{display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;padding:35px;height:100%;color:#fff}.story--hero .category-label{color:#fff;background:var(--accent);padding:3px 12px;border-radius:3px;margin-bottom:15px}.story--hero .story-title{font-size:clamp(27px,2.5vw,38px);line-height:1.5;margin-bottom:13px}.story--hero .story-title a:hover{color:#e7d6ad}.story--hero .story-excerpt{color:#e1e7e0;font-size:14px;max-width:650px}.story--hero .post-meta{color:#c6ccda}.headline-rail{padding:0 0 0 0}.rail-heading{display:flex;align-items:center;justify-content:space-between;flex-direction:row-reverse;border-bottom:2px solid var(--ink);margin-bottom:8px;padding-bottom:14px}.rail-heading h2{font-size:25px;margin:0}.gold-dot{color:var(--gold)}.eyebrow{font-size:10px;font-weight:650;color:var(--muted);letter-spacing:.3px;display:block;margin-bottom:5px}.story--compact{display:grid;grid-template-columns:115px minmax(0,1fr);gap:17px;padding:20px 0;border-bottom:1px solid var(--line);align-items:start}.story--compact:last-child{border-bottom:0}.story--compact .story-image{aspect-ratio:1;align-self:start;border-radius:5px}.story--compact .story-body{padding:0}.story--compact .story-title{font-size:16px;line-height:1.65;margin-bottom:9px}.story--compact .category-label{font-size:10px;margin-bottom:5px}.story--compact .post-meta{font-size:9px}.image-placeholder{display:grid;place-items:center;width:100%;height:100%;background:linear-gradient(145deg,#18243d,#485572);color:#d3ad65;font-size:35px;font-weight:850}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;border-top:2px solid var(--ink);padding-top:18px;margin-bottom:23px}.section-heading h2{font-size:28px;margin:0}.section-number{font-size:42px;line-height:1;color:var(--line);font-weight:700}.section-more{font-size:12px;font-weight:650;display:flex;align-items:center;gap:20px}.section-more span{font-family:Arial;font-size:23px;color:var(--accent)}.cards-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:27px}.latest-section{margin-bottom:58px}.category-section{margin-block:55px}.section-layout{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);gap:35px}.section-list .story--compact{grid-template-columns:135px minmax(0,1fr);padding:17px 0}.section-list .story--compact:first-child{padding-top:0}.section-list .story--compact .story-image{aspect-ratio:3/2}.section-list .story-title{font-size:18px}.story--lead .story-title{font-size:25px}.story--lead .story-image{aspect-ratio:16/9}.section-tinted{background:var(--soft);border-radius:8px;padding:28px}.section-tinted .section-heading{border-top:0;padding-top:0}.discovery-banner{margin:65px 0;display:flex;align-items:center;justify-content:space-between;gap:30px;background:var(--dark);color:#fff;padding:40px 45px;border-radius:8px;overflow:hidden}.discovery-banner .eyebrow{color:#d1c090}.discovery-banner h2{font-size:32px;margin-bottom:10px}.discovery-banner p{margin:0;color:#c6ccda;font-size:14px}.discovery-mark{font-family:Arial;font-size:110px;line-height:1;color:#c1a265}.home-slot{margin:30px 0}.home-widget{overflow-wrap:anywhere}
.site-footer{background:var(--dark);color:#c6ccda;padding-top:50px}.footer-grid{display:grid;grid-template-columns:1.2fr 1.3fr .8fr;gap:70px;padding-bottom:45px}.site-footer .wordmark{color:#fff;font-size:40px;margin-bottom:20px}.site-footer .brand-square{background:#0b1120}.site-footer p{font-size:12px;line-height:2.1;max-width:360px}.site-footer h2{font-size:16px;color:#fff;margin-bottom:20px}.footer-links,.footer-categories{list-style:none;padding:0;margin:0;display:grid;gap:10px;font-size:12px}.footer-categories{grid-template-columns:1fr 1fr;column-gap:20px}.site-footer a:hover{color:#e7c78a}.social-links{display:flex;flex-wrap:wrap;gap:16px;font-size:11px}.footer-bottom{padding-block:20px;border-top:1px solid #ffffff20;display:flex;justify-content:space-between;gap:20px;font-size:10px}
.archive-main{padding-block:45px 70px}.archive-heading{border-bottom:1px solid var(--line);padding-bottom:30px;margin-bottom:35px}.archive-heading h1{font-size:38px;margin-bottom:8px}.archive-description{max-width:750px;color:var(--muted)}.archive-grid{row-gap:40px}.pagination{margin:40px 0;text-align:center}.nav-links{display:flex;justify-content:center;gap:9px;flex-wrap:wrap}.page-numbers{padding:7px 14px;border:1px solid var(--line);border-radius:4px}.page-numbers.current{background:var(--accent);color:white}.single-main{padding-top:35px;padding-bottom:60px}.breadcrumbs{display:flex;gap:10px;align-items:center;font-size:11px;color:var(--muted);margin-bottom:25px}.breadcrumbs .category-label{margin:0}.article-header{max-width:1040px;margin-bottom:28px}.article-header h1{font-size:clamp(29px,3.1vw,45px);line-height:1.55;margin-bottom:20px}.article-deck{font-size:17px;color:var(--muted);line-height:2}.byline{display:flex;flex-wrap:wrap;align-items:center;gap:14px;font-size:12px;padding-bottom:10px}.author-initial{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--soft);color:var(--accent);font-weight:800}.updated{color:var(--muted);font-size:10px}.article-cover{margin-bottom:35px}.article-cover img{width:100%;max-height:650px;object-fit:cover;border-radius:8px}.article-cover figcaption{font-size:11px;color:var(--muted);padding:10px 0;border-bottom:1px solid var(--line)}.article-layout{display:grid;grid-template-columns:minmax(0,860px) minmax(210px,1fr);gap:60px;align-items:start}.entry-content{font-size:18px;line-height:2.15;overflow-wrap:anywhere}.entry-content p{margin-bottom:1.5em}.entry-content h2{font-size:28px;margin-top:1.8em;margin-bottom:.7em;line-height:1.65}.entry-content h3{font-size:23px;margin-top:1.5em}.entry-content a{color:var(--accent);text-decoration:underline;text-underline-offset:4px}.entry-content ul,.entry-content ol{margin-bottom:1.5em}.entry-content li{margin-bottom:.5em}.entry-content blockquote{border-inline-start:4px solid var(--gold);background:var(--soft);margin:30px 0;padding:20px 30px;font-size:21px}.entry-content pre{direction:ltr;text-align:left;max-width:100%;overflow:auto;padding:20px;background:var(--soft);font-size:14px}.entry-content table{display:block;max-width:100%;overflow:auto;border-collapse:collapse;font-size:15px}.entry-content th,.entry-content td{border:1px solid var(--line);padding:12px}.entry-content iframe{max-width:100%}.entry-content .alignwide{max-width:100%}.entry-content .alignleft{float:left;margin:0 20px 15px 0}.entry-content .alignright{float:right;margin:0 0 15px 20px}.entry-content .aligncenter{margin-inline:auto}.entry-content:after{content:'';display:block;clear:both}.wp-caption{max-width:100%}.wp-caption-text,.gallery-caption{font-size:12px;color:var(--muted)}.article-aside{position:sticky;top:25px;min-width:0}.widget{border:1px solid var(--line);background:var(--paper);border-radius:7px;padding:23px;margin-bottom:24px;font-size:13px}.widget-title,.widget h2{font-size:18px}.article-toc{max-height:75vh;overflow:auto}.article-toc ol{padding-inline-start:20px;margin:0}.article-toc li{margin:12px 0;font-size:12px;line-height:1.9}.article-toc li::marker{color:var(--gold)}.reading-progress{position:fixed;top:0;inset-inline:0;height:3px;background:var(--accent);z-index:9999;transform:scaleX(0);transform-origin:right}.admin-bar .reading-progress{top:32px}.article-tags{display:flex;gap:10px;flex-wrap:wrap;margin:30px 0}.article-tags a{background:var(--soft);padding:4px 12px;font-size:12px;border-radius:4px}.share-row{display:flex;gap:15px;flex-wrap:wrap;align-items:center;padding:25px 0;border-block:1px solid var(--line);font-size:13px}.share-status{font-size:11px}.post-navigation{margin:30px 0}.post-navigation .nav-links{display:grid;grid-template-columns:1fr 1fr;gap:25px}.post-navigation span{font-size:11px;color:var(--muted);display:block}.post-navigation strong{display:block;font-size:15px}.related-section{margin-top:60px}.page-main{max-width:920px;padding-block:45px 70px}.empty-state{padding-block:80px;text-align:center}.empty-state h1,.empty-state h2{font-size:32px}.empty-state p{color:var(--muted)}.empty-state .search-form{margin-inline:auto}.error-number{font-size:100px;font-weight:850;color:var(--accent)}.comments-area{margin-top:45px}.comment-list{list-style:none;padding:0}.comment-body{padding-block:20px;border-bottom:1px solid var(--line);font-size:14px}.comment-author img{display:inline-block;vertical-align:middle;margin-inline-end:8px;border-radius:50%}.comment-metadata{font-size:11px;color:var(--muted)}.comment-form label{display:block;font-size:13px}.comment-form input:not([type=checkbox]):not([type=submit]),.comment-form textarea{width:100%;background:var(--paper);border:1px solid var(--line);color:var(--ink);padding:10px;border-radius:4px}.comment-form-cookies-consent label{display:inline}.bypostauthor{border-inline-start:2px solid var(--accent);padding-inline-start:15px}
[data-theme=dark]{--ink:#e7eaf0;--muted:#adb6c5;--paper:#192131;--canvas:#101827;--line:#343e51;--soft:#202a3b;--dark:#0b1120;--accent:#ff5968;--gold:#e1c27e;--shadow:0 12px 35px #0004}[data-theme=dark] .wordmark{color:var(--ink)}[data-theme=dark] .brand-square{background:#0b1120}[data-theme=dark] .button,[data-theme=dark] .search-form button,[data-theme=dark] .story--hero .category-label{background:#a8192b;color:white}[data-theme=dark] .story--hero .story-title{color:white}
@media(min-width:901px){.menu-toggle{display:none!important}}@media(max-width:1100px){.menu{column-gap:18px}.menu>li>a{font-size:12px}.hero-grid{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:24px}.story--compact{grid-template-columns:90px minmax(0,1fr);gap:13px}.story--hero{min-height:535px}.story--hero .story-body{padding:26px}.story--hero .story-title{font-size:29px}.article-layout{gap:30px;grid-template-columns:minmax(0,1fr) 240px}.footer-grid{gap:35px}}
@media(max-width:900px){.container{width:calc(100% - 40px)}.masthead{min-height:102px;gap:20px}.masthead-message{display:none}.wordmark{font-size:39px}.brand-square{width:34px;height:34px;font-size:28px}.brand-subtitle{font-size:10px}.nav-inner{flex-wrap:wrap;gap:0;justify-content:space-between}.has-js .menu-toggle{display:flex}.has-js .primary-nav{display:none;order:3;flex-basis:100%}.has-js .primary-nav.is-open{display:block}.primary-nav{order:3;flex-basis:100%}.menu{display:block;padding:10px 0 18px}.menu>li{display:block;border-top:1px solid var(--line)}.menu>li>a{padding:12px 0;font-size:14px;display:inline-block}.sub-menu{position:static;box-shadow:none;border:0;border-inline-start:2px solid var(--line);margin:0 10px 10px;padding:0 15px;min-width:0}.sub-menu .sub-menu{position:static}.has-js .menu li:hover>.sub-menu{display:none}.has-js .menu li.sub-open>.sub-menu{display:block}.submenu-toggle{float:inline-end;padding:12px}.edition-link{padding-block:14px}.hero-grid{grid-template-columns:1fr}.story--hero{min-height:500px}.headline-rail{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.rail-heading{grid-column:1/-1}.headline-rail .story--compact{display:block;padding:0;border:0}.headline-rail .story-image{aspect-ratio:3/2;margin-bottom:12px}.headline-rail .story-title{font-size:16px}.section-layout{gap:25px}.section-list .story--compact{grid-template-columns:90px minmax(0,1fr)}.section-list .story-title{font-size:15px}.story--lead .story-title{font-size:22px}.cards-grid{gap:20px}.story-title{font-size:18px}.article-layout{display:block}.article-aside{position:static;margin-top:30px}.article-toc{display:none!important}.article-cover img{max-height:480px}.footer-grid{grid-template-columns:1fr 1fr}.footer-grid>div:first-child{grid-column:1/-1}.footer-grid>div:first-child p{max-width:650px}}
@media(max-width:600px){.container{width:calc(100% - 32px)}.topbar-inner{font-size:9px;gap:10px;min-height:32px}.topbar-inner>span{display:none}.topbar-inner{justify-content:center}.masthead{min-height:98px}.wordmark{font-size:37px}.header-actions{gap:7px}.icon-button{width:37px;height:37px;font-size:21px}.search-popover{width:min(340px,calc(100vw - 32px))}.news-strip{gap:12px;min-height:52px;margin-bottom:20px}.news-strip-label{font-size:11px}.news-strip-items{font-size:11px}.news-strip-items a{max-width:260px}.homepage{padding-top:20px}.hero-grid{gap:25px;margin-bottom:35px}.story--hero{min-height:455px}.story--hero .story-body{padding:23px}.story--hero .story-title{font-size:27px;line-height:1.6}.story--hero .story-excerpt{font-size:12px}.headline-rail{display:block}.rail-heading{margin-bottom:0}.headline-rail .story--compact{display:grid;grid-template-columns:92px minmax(0,1fr);gap:15px;padding:17px 0;border-bottom:1px solid var(--line)}.headline-rail .story-image{margin:0;aspect-ratio:1}.headline-rail .story-title{font-size:15px}.section-heading{margin-bottom:20px;padding-top:16px}.section-heading h2{font-size:23px}.section-more{font-size:10px;gap:9px}.section-number{font-size:32px}.cards-grid{grid-template-columns:1fr;gap:28px}.story-title{font-size:21px}.latest-section{margin-bottom:35px}.section-layout{grid-template-columns:1fr;gap:22px}.category-section{margin-block:38px}.section-list .story--compact{grid-template-columns:100px minmax(0,1fr)}.section-list .story-title{font-size:16px}.section-tinted{padding:20px 15px;margin-inline:-5px}.story--lead .story-title{font-size:23px}.discovery-banner{margin:40px 0;padding:28px 24px}.discovery-banner h2{font-size:25px}.discovery-mark{font-size:65px}.discovery-banner p{font-size:12px}.footer-grid{gap:30px 20px;padding-bottom:30px}.site-footer{padding-top:35px}.footer-categories{grid-template-columns:1fr}.footer-bottom{flex-direction:column;gap:8px}.archive-heading h1{font-size:28px}.article-header h1{font-size:29px}.article-deck{font-size:15px}.byline{gap:10px}.article-cover img{max-height:350px}.entry-content{font-size:17px;line-height:2.1}.entry-content h2{font-size:24px}.entry-content h3{font-size:21px}.entry-content blockquote{padding:15px 20px;font-size:18px}.single-main{padding-top:22px}.post-navigation .nav-links{grid-template-columns:1fr}.page-main{padding-top:30px}.share-row{gap:10px}.related-section{margin-top:40px}.admin-bar .reading-progress{top:46px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}
@media print{.topbar,.nav-shell,.header-actions,.news-strip,.site-footer,.article-aside,.share-row,.related-section,.post-navigation,.reading-progress,.comments-area{display:none!important}body{background:white;color:black}.container{width:100%}.article-layout{display:block}.entry-content{font-size:12pt}.masthead{min-height:60px}.story-image{break-inside:avoid}a{color:inherit}.article-header h1{font-size:25pt}}

.about-author-card{display:grid;grid-template-columns:minmax(180px,280px) minmax(0,1fr);gap:28px;align-items:center;margin:0 0 40px;padding:22px;background:#fff;border:1px solid var(--line);border-radius:var(--radius)}.about-author-card img{width:100%;aspect-ratio:4/5;object-fit:cover;border-radius:6px}.about-author-card h2{margin-bottom:8px}.about-author-card p:last-child{margin-bottom:0}@media(max-width:600px){.about-author-card{grid-template-columns:1fr;padding:16px}.about-author-card img{max-width:260px;margin-inline:auto}}

.footer-legal{display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:20px;font-size:11px;color:#bacbc0}.footer-legal strong{flex-basis:100%;font-size:12px;color:#fff}.footer-legal a:hover{color:#fff}

/* Readable surfaces and controls in both appearances. */
html{color-scheme:light}html[data-theme=dark]{color-scheme:dark}
.category-intro{max-width:760px;font-size:14px;line-height:1.95;color:var(--muted);margin:9px 0 0}
.nav-shell .menu-toggle,.nav-shell .edition-link{color:#dce3ef}
[data-theme=dark] .custom-logo-link{display:inline-flex;background:#fff;padding:10px 14px;border-radius:8px;width:fit-content}
[data-theme=dark] .story--standard,[data-theme=dark] .story--lead{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
[data-theme=dark] .story--standard .story-body,[data-theme=dark] .story--lead .story-body{padding:20px}
[data-theme=dark] .story--standard .story-image,[data-theme=dark] .story--lead .story-image{border-radius:0}
[data-theme=dark] .section-number{color:var(--muted)}
[data-theme=dark] input::placeholder,[data-theme=dark] textarea::placeholder{color:var(--muted);opacity:1}
[data-theme=dark] .theme-toggle{background:var(--soft);border-color:var(--gold);color:var(--gold)}
[data-theme=dark] input[type=submit]{background:#a8192b;color:#fff}

/* Reference-inspired compact newsroom layout. */
.masthead{min-height:88px;padding-block:12px}.brand-subtitle{display:none}.header-actions{margin-inline-start:auto}.custom-logo{max-width:210px;max-height:60px}.icon-button{border-radius:4px;width:38px;height:38px}.wordmark{font-size:36px;letter-spacing:-1px}.nav-inner{min-height:49px}.menu{column-gap:24px}.menu>li>a{padding-block:11px;font-size:14px}
.news-strip-shell{background:var(--soft);border-bottom:1px solid var(--line)}.news-strip{gap:0;min-height:42px;border:0;margin-bottom:0}.news-strip-label{align-self:stretch;display:flex;align-items:center;background:#c2181d;color:#fff;padding:8px 18px;position:relative;z-index:1}.news-strip-items{padding:0;direction:ltr}.news-strip-track{direction:ltr;gap:0;width:max-content;animation:msrk-ticker 40s linear infinite;will-change:transform}.news-strip-copy{direction:ltr;gap:0;flex:none}.news-strip-copy a{direction:rtl;unicode-bidi:isolate;max-width:none;overflow:visible;padding:10px 25px}.news-strip-copy a:before{content:'●';color:var(--accent);margin-inline-end:10px}@keyframes msrk-ticker{from{transform:translateX(0)}to{transform:translateX(-50%)}}
.site-footer{margin-top:0}.footer-bottom{justify-content:center}
@media(prefers-reduced-motion:reduce){.news-strip-track{animation:none;will-change:auto}.news-strip-items{overflow-x:auto}.news-strip-copy[aria-hidden=true]{display:none}}

@media(max-width:600px){.header-actions{gap:5px}.header-latest{padding:7px 9px;font-size:10px}.icon-button{width:32px;height:32px}.custom-logo{max-width:145px}}

/* Owner portrait and direct contact. */
.about-author-card{grid-template-columns:150px minmax(0,1fr);background:var(--paper)}
.about-author-card img,.page-main .entry-content img[alt="ياسين العزاوي"],.page-main .entry-content img[src*="yassine-el-azzaoui"]{width:150px;max-width:100%;height:auto;margin-inline:auto;border-radius:8px}
.footer-contact a{color:#e7eaf0}.footer-contact a:hover{color:#fff;text-decoration:underline}
.whatsapp-contact{position:fixed;bottom:22px;inset-inline-start:22px;z-index:900;display:flex;align-items:center;gap:10px;background:#166534;color:#fff;border-radius:28px;padding:10px 19px;font-size:14px;font-weight:700;box-shadow:0 4px 18px #0003}
.whatsapp-contact:hover{background:#14532d;color:#fff}.contact-whatsapp{margin-block:28px;padding:22px;background:var(--soft);border:1px solid var(--line);border-radius:8px}
@media(max-width:600px){.about-author-card{grid-template-columns:1fr}.about-author-card img,.page-main .entry-content img[alt="ياسين العزاوي"],.page-main .entry-content img[src*="yassine-el-azzaoui"]{width:130px}.whatsapp-contact{bottom:16px;inset-inline-start:16px;font-size:12px;padding:9px 15px}}
@media print{.whatsapp-contact{display:none}}

.footer-contact a{display:block;margin-block:10px;overflow-wrap:anywhere}.footer-contact-label{display:block;font-weight:650}.footer-contact br{display:none}
.site-footer .footer-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px}.footer-links li{min-width:0;overflow-wrap:anywhere}
@media(min-width:901px){.footer-grid{grid-template-columns:1.2fr 1fr 1.4fr;gap:40px}}

.whatsapp-icon{width:24px;height:24px;flex-shrink:0;display:block}

/* Center footer headings above compact pairs of link columns. */
.footer-nav-group{width:100%;max-width:340px;justify-self:center;text-align:center}
.footer-nav-group h2{text-align:center}
.site-footer .footer-nav-group .footer-links,.site-footer .footer-nav-group .footer-categories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:12px;row-gap:12px;text-align:center}
.footer-nav-group a{display:inline-block;max-width:100%;overflow-wrap:anywhere}
@media(max-width:600px){
 .footer-grid{grid-template-columns:1fr;gap:30px}
 .footer-grid>div:first-child{grid-column:auto}
 .footer-nav-group{max-width:320px}
 .footer-bottom{align-items:center;text-align:center;padding-top:20px;padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))}
 .footer-bottom>span,.footer-bottom>a{width:100%;text-align:center}
 .whatsapp-contact{bottom:calc(16px + env(safe-area-inset-bottom,0px))}
}

/* Replacement footer matching the supplied reference. */
.reference-footer{background:#0e182b;color:#a9b2c0;padding-top:48px}
.reference-footer-grid{display:grid;grid-template-columns:1.2fr 1fr 1.4fr;gap:50px;padding-bottom:48px;align-items:start}
.reference-footer-logo{display:flex;align-items:center;gap:10px;color:#f3f5f9;width:fit-content;font-size:30px;font-weight:850;line-height:1.4;letter-spacing:-1px}
.reference-footer-logo:hover{color:#fff}.reference-footer-logo svg{display:block;flex-shrink:0}
.reference-footer p.reference-footer-description{font-size:14px;line-height:2.3;color:#acbbcd;margin:18px 0 22px;max-width:390px}
.reference-footer h2{font-size:16px;color:#f3f5f9;margin:0 0 20px;font-weight:750}
.reference-footer-links,.reference-footer-categories{list-style:none;padding:0;margin:0;font-size:14px;line-height:1.8}
.reference-footer-links{display:grid;grid-template-columns:1fr;gap:10px}
.reference-footer-categories{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 22px}
.reference-footer-links li,.reference-footer-categories li{min-width:0;overflow-wrap:anywhere}
.reference-footer-social{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:18px}
.reference-footer-social a{display:grid;place-items:center;border:1px solid #ffffff30;border-radius:2px;width:34px;height:34px}
.reference-footer-contact{display:grid;gap:9px;font-size:11px;line-height:1.9}.reference-footer-contact a{display:block;overflow-wrap:anywhere}.reference-footer-contact span{display:inline-block}
.reference-footer a:hover{color:#fff}.reference-footer-bottom{border-top:1px solid #ffffff20;padding:18px 0;font-size:11px;text-align:center}.reference-footer-bottom>.container{display:flex;align-items:center;justify-content:center;gap:20px;flex-wrap:wrap}
@media(max-width:900px){.reference-footer-grid{grid-template-columns:1fr 1.3fr;gap:35px}.reference-footer-identity{grid-column:1/-1}.reference-footer p.reference-footer-description{max-width:600px}}
@media(max-width:600px){.reference-footer{padding-top:32px}.reference-footer-grid{grid-template-columns:1fr;gap:30px;padding-bottom:32px}.reference-footer-identity{grid-column:auto}.reference-footer-logo{font-size:30px}.reference-footer p.reference-footer-description{font-size:13px}.reference-footer-categories{gap:10px 14px}.reference-footer-links{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}.reference-footer-bottom{padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))}.reference-footer-bottom>.container{flex-direction:column;gap:8px;text-align:center}.reference-footer-bottom span,.reference-footer-bottom a{width:100%;text-align:center}}

.byline .msrk-author-avatar{width:40px;height:40px;object-fit:cover;border-radius:50%;flex-shrink:0}
