/*
Theme Name: Asim Host News Lite
Theme URI: https://asimhost.com/
Author: Asim Host
Description: قالب إخباري عربي خفيف متجاوب. إصدار تأسيسي للمعاينة والاختبار.
Version: 0.9.9
Requires at least: 6.4
Requires PHP: 8.2
Text Domain: asim-host-news-lite
License: GPL-2.0-or-later
*/
:root{--ah-primary:#18375a;--ah-secondary:#32659b;--ah-bg:#fff;--ah-surface:#f4f6f9;--ah-text:#18212f;--ah-muted:#677589;--ah-border:#e3e8ef;--ah-gutter:20px;--ah-radius:9px;--ah-max:1200px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--ah-bg);color:var(--ah-text);font-family:Tahoma,Arial,sans-serif;line-height:1.65}img{max-width:100%;height:auto}a{color:inherit;text-decoration:none}a:hover{color:var(--ah-secondary)}button,input{font:inherit}button{cursor:pointer}.wrap{width:min(var(--ah-max),calc(100% - 40px));margin-inline:auto}.skip-link{position:absolute;inset-block-start:-100px;background:#fff;color:#000;padding:8px;z-index:9999}.skip-link:focus{inset-block-start:5px}.site-head{background:var(--ah-bg);border-block-end:1px solid var(--ah-border)}.head-inner{display:flex;align-items:center;gap:28px;min-height:82px}.brand{display:inline-flex;align-items:center;font-size:23px;font-weight:800;color:var(--ah-primary);white-space:nowrap}.brand img{display:block;max-width:210px;max-height:60px;width:auto;height:auto}.site-nav{margin-inline-start:auto}.site-nav ul{display:flex;align-items:center;gap:24px;list-style:none;margin:0;padding:0}.site-nav a{font-size:14px;font-weight:700}.head-actions{display:flex;align-items:center;gap:8px}.icon-btn{border:0;background:transparent;color:var(--ah-primary);font-size:22px;width:40px;height:40px;border-radius:8px}.icon-btn:hover,.icon-btn:focus-visible{background:var(--ah-surface)}.mobile-menu-toggle{display:none}.site-search{display:none;border-block-start:1px solid var(--ah-border);padding:12px 0}.site-search.is-open{display:block}.search-form{display:flex;max-width:550px;gap:8px}.search-form input{width:100%;border:1px solid var(--ah-border);border-radius:6px;padding:9px 12px}.search-form button{background:var(--ah-primary);color:white;border:0;padding:9px 20px;border-radius:6px}.site-main{padding-block:24px 48px}.section-title{display:flex;align-items:center;gap:12px;margin:28px 0 17px}.section-title h2{margin:0;color:var(--ah-primary);font-size:21px;border-inline-start:5px solid var(--ah-primary);padding-inline-start:12px}.section-title:after{content:"";flex:1;height:2px;background:var(--ah-border)}.hero-grid{display:grid;grid-template-columns:1fr 2fr 1fr;gap:12px;min-height:420px}.hero-side{display:grid;grid-template-rows:1fr 1fr;gap:12px;min-height:0}.hero-card{position:relative;min-height:190px;overflow:hidden;border-radius:var(--ah-radius);background:#213d5d;color:#fff;display:block}.hero-main{min-height:420px}.hero-card img{position:absolute;width:100%;height:100%;object-fit:cover;inset:0;transition:transform .3s ease}.hero-card:hover img{transform:scale(1.03)}.hero-card:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,0,0,.82),rgba(0,0,0,.09) 72%)}.hero-copy{position:absolute;inset-inline:12px;inset-block-end:15px;z-index:1}.hero-main .hero-copy{inset-inline:24px;inset-block-end:24px}.hero-card h2,.hero-card h3{margin:5px 0 0;color:#fff;line-height:1.45;font-size:16px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}.hero-main h2{font-size:28px}.cat-tag{display:inline-block;background:var(--ah-primary);color:white;font-size:11px;font-weight:700;padding:3px 7px;border-radius:3px}.post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.news-card{min-width:0}.news-card-img{display:block;overflow:hidden;border-radius:7px;background:var(--ah-surface);aspect-ratio:16/10}.news-card-img img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s ease}.news-card:hover img{transform:scale(1.025)}.news-card-title{font-size:16px;line-height:1.5;font-weight:800;margin:8px 0 0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}.news-date{color:var(--ah-muted);font-size:12px;margin-top:5px}.empty-thumb{background:linear-gradient(130deg,#e6edf5,#c9d7e6);width:100%;height:100%;display:block}.category-panels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px;margin-top:28px}.category-panel{min-width:0}.category-panel .news-card-title{font-size:16px}.mini-news{display:flex;align-items:center;gap:10px;border-block-end:1px solid var(--ah-border);padding:12px 0}.mini-news img,.mini-news .empty-thumb{width:76px;height:61px;object-fit:cover;border-radius:5px;flex:none}.mini-news a{font-size:13px;font-weight:700;line-height:1.5}.article-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:32px}.entry-title{font-size:34px;line-height:1.4;margin:12px 0}.entry-image{display:block;width:100%;height:auto;border-radius:8px}.entry-content{font-size:19px;line-height:2;overflow-wrap:anywhere}.entry-content img{height:auto}.entry-content iframe{max-width:100%}.entry-content a{text-decoration:underline;color:var(--ah-secondary)}.sidebar-box{background:var(--ah-surface);padding:16px;border-radius:8px}.sidebar-box h2{font-size:17px;margin:0 0 10px}.archive-grid{margin-top:15px}.pagination{margin-top:28px}.pagination .page-numbers{display:inline-block;border:1px solid var(--ah-border);padding:5px 11px;border-radius:4px}.pagination .current{background:var(--ah-primary);color:white}.site-foot{background:#122943;color:#fff;margin-top:35px;padding:36px 0}.foot-inner{display:flex;justify-content:space-between;gap:24px;align-items:flex-start}.foot-inner a{color:#fff}.foot-menu ul{display:flex;gap:18px;list-style:none;margin:0;padding:0}.foot-credit{font-size:13px;opacity:.86}.screen-reader-text{position:absolute!important;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap}.screen-reader-text:focus{clip-path:none;width:auto;height:auto;position:static!important}body.ah-dark{--ah-bg:#101923;--ah-surface:#1b2a3a;--ah-text:#edf3fa;--ah-muted:#b0bbc9;--ah-border:#2e4254;--ah-primary:#70a5e0;--ah-secondary:#a6cdf7}body.ah-dark .site-foot{background:#080e18}body.ah-dark .hero-card{color:white}body.ah-dark .cat-tag,body.ah-dark .search-form button{background:#24476d}body.ah-dark .brand{color:var(--ah-primary)}@media(max-width:900px){.head-inner{min-height:66px;gap:6px;justify-content:space-between}.mobile-menu-toggle{display:inline-block;order:1}.brand{order:2;margin-inline:auto;font-size:18px}.brand img{max-width:150px;max-height:45px}.head-actions{order:3}.site-nav{display:none;position:absolute;top:66px;right:0;left:0;z-index:20;background:var(--ah-bg);border-block:1px solid var(--ah-border);box-shadow:0 10px 18px #0002;margin:0;padding:16px 20px}.site-nav.is-open{display:block}.site-nav ul{display:block}.site-nav li{margin:0;padding:11px 0;border-block-end:1px solid var(--ah-border)}.site-head{position:relative}.hero-grid{grid-template-columns:1fr 1fr;min-height:0}.hero-main{grid-column:1/-1;grid-row:1;min-height:330px}.hero-side{display:contents}.hero-side .hero-card{min-height:170px}.post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.category-panels{grid-template-columns:repeat(2,minmax(0,1fr))}.article-layout{grid-template-columns:1fr}.article-aside{display:none}}@media(max-width:600px){.wrap{width:calc(100% - 26px)}.site-main{padding-block:16px 30px}.hero-grid{gap:8px}.hero-main{min-height:270px}.hero-main .hero-copy{inset-inline:15px;inset-block-end:18px}.hero-main h2{font-size:22px}.hero-side .hero-card{min-height:130px}.hero-card h3{font-size:12px;line-height:1.5}.hero-copy{inset-inline:8px;inset-block-end:8px}.hero-side .cat-tag{font-size:9px}.post-grid{grid-template-columns:1fr;gap:0}.post-grid .news-card{display:grid;grid-template-columns:112px minmax(0,1fr);gap:12px;align-items:start;padding:12px 0;border-bottom:1px solid var(--ah-border)}.post-grid .news-card-img{aspect-ratio:4/3}.post-grid .news-card-title{font-size:15px;margin:0;-webkit-line-clamp:3}.post-grid .news-date{font-size:11px}.category-panels{grid-template-columns:1fr}.entry-title{font-size:25px}.entry-content{font-size:18px}.foot-inner{flex-direction:column}.foot-menu ul{flex-wrap:wrap}.site-nav{top:66px}}

/* v0.1.1 — Compact latest-news cards on desktop/tablet only. */
@media (min-width: 601px) {
  .latest-news .post-grid { gap: 15px 14px; }
  .latest-news .news-card-img { aspect-ratio: 16 / 8.5; }
  .latest-news .news-card-title { font-size: 14px; line-height: 1.45; margin-top: 6px; -webkit-line-clamp: 2; }
  .latest-news .news-date { font-size: 11px; margin-top: 3px; }
}
/* v0.2.0: configurable category sections; preserve original three-column design */
.ahnl-dynamic-panels{margin-top:28px}.ahnl-home-section{min-width:0}.ahnl-dynamic-panels .category-panel{min-width:0}

/* v0.2.1 — Article mobile containment and responsive embedded content. */
.article-layout{grid-template-columns:minmax(0,1fr) 280px}
.article-layout>*,.article-layout article,.article-layout .entry-content,
.article-layout .entry-title,.article-layout .news-date{min-width:0;max-width:100%}
.article-layout .entry-title,.article-layout .news-date,
.article-layout .entry-content,.article-layout .entry-content p,
.article-layout .entry-content li{overflow-wrap:anywhere;word-break:normal}
.article-layout .entry-content{width:100%;}
.article-layout .entry-content img,.article-layout .entry-content video,
.article-layout .entry-content embed,.article-layout .entry-content object,
.article-layout .entry-content svg{max-width:100%;height:auto}
.article-layout .entry-content iframe{display:block;max-width:100%}
.article-layout .entry-content :is(pre,table){max-width:100%;overflow-x:auto}
.article-layout .entry-content pre{white-space:pre-wrap;overflow-wrap:anywhere}
.article-layout .entry-content table{display:block;width:max-content;max-width:100%;overflow-x:auto;border-collapse:collapse}
.article-layout .entry-content :is(.wp-block-image,.wp-block-video,.wp-block-embed,.wp-block-table,figure){max-width:100%;}
.article-layout .entry-content figure{margin-inline:0}
.article-layout .entry-content .wp-block-embed__wrapper{max-width:100%}
.article-layout .entry-content .wp-block-embed__wrapper iframe{max-width:100%}
.article-layout .entry-content .alignwide,.article-layout .entry-content .alignfull{width:auto;max-width:100%;margin-inline:0}
@media(max-width:900px){
  .article-layout{grid-template-columns:minmax(0,1fr);gap:0}
  .article-layout>div:first-child{min-width:0;max-width:100%}
}
@media(max-width:600px){
  .article-layout .entry-title{font-size:clamp(22px,6vw,27px);line-height:1.45}
  .article-layout .news-date{font-size:12px;line-height:1.8}
  .article-layout .entry-content{font-size:17px;line-height:1.9}
  .article-layout .entry-content p{margin-block:0 1.1em}
  .article-layout .entry-image{width:100%;height:auto;object-fit:contain}
  .article-layout .entry-content :is(h2,h3,h4){line-height:1.5}
}

/* v0.2.2 — Prevent residual horizontal viewport overflow on narrow screens.
   Keep wide tables/pre blocks scrollable within the article, not the page. */
@media (max-width: 900px) {
  html, body { max-width: 100%; overflow-x: clip; }
  .wrap, .site-main, .article-layout, .article-layout > *,
  .article-layout article, .entry-content { min-width: 0; max-width: 100%; }
  .entry-title, .news-date, .entry-content,
  .entry-content :is(p, h1, h2, h3, h4, h5, h6, li, a, blockquote) {
    overflow-wrap: anywhere;
  }
  .entry-content > *,
  .entry-content :is(div, section, figure, blockquote, p, ul, ol, .wp-block-group, .wp-block-columns, .wp-block-column) {
    max-width: 100% !important;
    min-width: 0;
  }
  .entry-content :is(img, video, iframe, embed, object, svg, canvas),
  .entry-image { max-width: 100% !important; }
  .entry-content :is(img, video, svg), .entry-image { height: auto; }
  .entry-content iframe { max-width: 100% !important; }
  .entry-content :is(pre, .wp-block-preformatted, .wp-block-code, .wp-block-table) {
    width: 100%; max-width: 100%; overflow-x: auto;
  }
  .entry-content :is(pre, .wp-block-preformatted, .wp-block-code) { white-space: pre-wrap; overflow-wrap: anywhere; }
  .entry-content :is(table, .wp-block-table table) { max-width: 100%; }
  .entry-content :is(.alignwide, .alignfull) { width: 100% !important; max-width: 100% !important; margin-inline: 0 !important; }
  .head-inner, .brand, .head-actions, .search-form { min-width: 0; }
  .brand a { overflow-wrap: anywhere; }
}

/* v0.3.0 — settings-driven brand, fonts, typography and responsive headers. */
body{font-family:var(--ah-body-font,system-ui,Arial,sans-serif)}
.entry-content{font-size:var(--ah-entry-font-size,16px)}
.entry-title{font-size:var(--ah-entry-title-size,34px)}
.brand-desktop,.brand-mobile{display:inline-flex;align-items:center;max-width:100%;min-width:0}
.brand-mobile{display:none}
.brand-desktop img{max-width:var(--ah-desktop-logo,210px)}
.foot-social{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px;font-size:13px}
.foot-note{font-size:13px;margin-top:6px}
@media(min-width:901px){.ahnl-hide-desktop{display:none!important}}
@media(max-width:900px){
  .brand-desktop{display:none}
  .brand-mobile{display:inline-flex;max-width:100%}
  .brand-mobile img{max-width:min(var(--ah-mobile-logo,150px),100%);max-height:45px;width:auto;height:auto}
  .ahnl-hide-mobile{display:none!important}
}
@media(max-width:600px){.entry-title{font-size:min(var(--ah-entry-title-size,34px),27px)}.entry-content{font-size:min(var(--ah-entry-font-size,16px),19px)}}

/* v0.4.0 ads: responsive and isolated from article/hero layout */
.ahnl-ad-slot{box-sizing:border-box;max-width:100%;min-width:0;margin:18px auto;clear:both;text-align:center;overflow:clip}
.ahnl-ad-slot *{box-sizing:border-box;max-width:100%}
.ahnl-ad-slot img{max-width:100%;height:auto;vertical-align:middle}
.ahnl-ad-slot ins.adsbygoogle{display:block;max-width:100%}
.ahnl-ad-slot iframe{max-width:100%}
.ahnl-ad-slot--sidebar{margin:0 0 18px}
.ahnl-ad-slot--article-third,.ahnl-ad-slot--article-middle{margin:22px 0}
@media(max-width:767px){.ahnl-ad-desktop{display:none!important}}
@media(min-width:768px){.ahnl-ad-mobile{display:none!important}}
.latest-news .post-grid>.ahnl-ad-slot{grid-column:1/-1;width:100%}

/* 0.5.0 — breaking news, reading controls, sharing, related stories. */
.ahnl-breaking{display:flex;align-items:center;gap:12px;margin-block:12px;padding:8px 12px;background:var(--ah-surface);border-radius:6px;min-width:0;max-width:100%}
.ahnl-breaking-label{flex:none;color:#fff;background:#a51834;border-radius:3px;padding:2px 9px;font-weight:700;font-size:13px}
.ahnl-breaking a{min-width:0;font-weight:700;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ahnl-reader-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border-block:1px solid var(--ah-border);padding:12px 0;margin:18px 0}
.ahnl-font-tools,.ahnl-share{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.ahnl-font-tools button,.ahnl-copy-link,.ahnl-share a{border:1px solid var(--ah-border);background:var(--ah-surface);color:var(--ah-text);border-radius:5px;padding:5px 10px;font-size:13px}
.ahnl-font-tools button:hover,.ahnl-share a:hover,.ahnl-copy-link:hover{border-color:var(--ah-secondary)}
.article-layout .entry-content{font-size:calc(var(--ah-entry-font-size,16px) + var(--ah-reader-adjust,0px))}
.ahnl-related{margin-top:30px;border-top:2px solid var(--ah-border);padding-top:15px;min-width:0}
.ahnl-related h2{font-size:20px;color:var(--ah-primary);margin:0 0 15px}
.ahnl-related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.ahnl-related-grid .news-card-title{font-size:14px;line-height:1.45}
.ahnl-related-grid .news-card-img{aspect-ratio:4/3}
@media(max-width:600px){.ahnl-breaking{width:calc(100% - 26px)}.ahnl-reader-tools{align-items:flex-start}.ahnl-related-grid{grid-template-columns:1fr;gap:0}.ahnl-related-grid .news-card{display:grid;grid-template-columns:100px minmax(0,1fr);gap:12px;align-items:start;border-bottom:1px solid var(--ah-border);padding:10px 0}.ahnl-related-grid .news-card-title{margin:0}.ahnl-related-grid .news-date{font-size:11px}.article-layout .entry-content{font-size:calc(min(var(--ah-entry-font-size,16px),19px) + var(--ah-reader-adjust,0px))}}

/* 0.5.1 — RTL accessible news ticker, isolated from the site viewport. */
.ahnl-breaking{box-sizing:border-box;min-width:0;overflow:hidden}
.ahnl-breaking-viewport{min-width:0;flex:1 1 0;overflow:hidden;max-width:100%;position:relative}
.ahnl-breaking-track{display:flex;align-items:center;width:max-content;max-width:none;min-height:26px}
.ahnl-breaking-group{display:flex;align-items:center;flex:none;gap:0;white-space:nowrap;min-width:0}
.ahnl-breaking-item{display:inline-flex;align-items:center;flex:none;max-width:none!important;padding:0 16px;white-space:nowrap;overflow:visible!important;text-overflow:clip!important;font-weight:700;font-size:14px;color:inherit;text-decoration:none}
.ahnl-breaking-item::before{content:'•';color:#a51834;margin-inline-end:10px}
.ahnl-breaking--animated .ahnl-breaking-track{animation:ahnlTickerRight var(--ahnl-ticker-duration,35s) linear infinite;transform:translateX(-50%)}
@keyframes ahnlTickerRight{from{transform:translateX(-50%)}to{transform:translateX(0)}}
.ahnl-breaking:hover .ahnl-breaking-track,.ahnl-breaking:focus-within .ahnl-breaking-track{animation-play-state:paused}
.ahnl-breaking:not(.ahnl-breaking--animated) .ahnl-breaking-viewport{overflow-x:auto;scrollbar-width:thin}
@media(prefers-reduced-motion:reduce){.ahnl-breaking--animated .ahnl-breaking-track{animation:none;transform:none}.ahnl-breaking--animated .ahnl-breaking-viewport{overflow-x:auto;scrollbar-width:thin}.ahnl-breaking--animated .ahnl-breaking-group[aria-hidden="true"]{display:none}}
@media(max-width:600px){.ahnl-breaking{width:auto;max-width:calc(100% - 26px)}.ahnl-breaking-label{padding:3px 7px}.ahnl-breaking-item{font-size:13px;padding:0 12px}}

/* v0.6.0 — compact native news widgets; keep the existing phone overflow fixes. */
.ahnl-widget-news{list-style:none;margin:0;padding:0;min-width:0}
.ahnl-widget-news li{display:flex;align-items:start;gap:10px;padding:10px 0;border-bottom:1px solid var(--ah-border, #e1e5ec);min-width:0}
.ahnl-widget-news li:last-child{border-bottom:0}
.ahnl-widget-news a{min-width:0;overflow-wrap:anywhere;font-weight:600;text-decoration:none}
.ahnl-widget-news img{width:75px;height:60px;object-fit:cover;border-radius:4px;flex:none}
.ahnl-widget-news .ahnl-widget-copy{min-width:0;flex:1}
.ahnl-widget-news time{display:block;font-size:11px;opacity:.75;margin-top:3px}

/* 0.6.1 — News-widget refresh. Desktop home card dimensions remain unchanged. */
.ahnl-news-widget{background:var(--ah-surface);border:1px solid var(--ah-border);border-radius:10px;padding:17px;min-width:0;overflow:hidden}
.ahnl-news-widget>h2,.ahnl-news-widget .widget-title{color:var(--ah-primary);font-size:17px;line-height:1.5;font-weight:800;border-inline-start:4px solid var(--ah-primary);padding-inline-start:10px;margin:0 0 13px}
.ahnl-news-widget .ahnl-widget-news{display:grid;gap:0;margin:0;padding:0}
.ahnl-news-widget .ahnl-widget-news li{display:grid;grid-template-columns:88px minmax(0,1fr);align-items:center;gap:11px;min-height:87px;margin:0;padding:10px 0;border-bottom:1px solid var(--ah-border)}
.ahnl-news-widget .ahnl-widget-news li:last-child{border-bottom:0}
.ahnl-news-widget .ahnl-widget-news .ahnl-widget-thumb{display:block;width:88px;height:66px;overflow:hidden;border-radius:7px;background:var(--ah-border)}
.ahnl-news-widget .ahnl-widget-news img,.ahnl-news-widget .ahnl-widget-news .empty-thumb{display:block;width:100%;height:100%;object-fit:cover;border-radius:0}
.ahnl-news-widget .ahnl-widget-copy{min-width:0;align-self:center}
.ahnl-news-widget .ahnl-widget-copy>a{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;line-height:1.6;font-weight:750;max-width:100%}
.ahnl-news-widget .ahnl-widget-copy time{font-size:11px;color:var(--ah-muted);opacity:1;margin-top:4px}
.ahnl-more-wrap{text-align:center;margin-block:22px 6px}
.ahnl-more-link{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:9px 24px;border:1px solid var(--ah-primary);border-radius:7px;color:var(--ah-primary);font-size:13px;font-weight:800;line-height:1.5;transition:background-color .2s,color .2s}
.ahnl-more-link:hover,.ahnl-more-link:focus-visible{background:var(--ah-primary);color:var(--ah-bg)}
.ahnl-news-widget .ahnl-more-wrap{margin-block:12px 0}
.ahnl-news-widget .ahnl-more-link{width:100%;background:var(--ah-bg)}
.ahnl-news-widget .ahnl-more-link:hover{background:var(--ah-primary)}
.ahnl-feed-page .post-grid{margin-top:16px}
@media(min-width:901px){.ahnl-widget-mobile-only{display:none!important}}
@media(max-width:900px){
 .article-aside{display:block;min-width:0;margin-top:28px}
 .article-aside>.ahnl-ad-slot,.article-aside>.widget:not(.ahnl-news-widget){display:none!important}
 .article-aside>.ahnl-widget-desktop-only{display:none!important}
 .article-aside>.ahnl-news-widget{display:block;margin-block:15px}
}
@media(max-width:600px){
 /* Only the mobile latest-news cards are normalized; desktop homepage untouched. */
 .latest-news .post-grid .news-card{grid-template-columns:104px minmax(0,1fr);min-height:98px;align-items:center;gap:12px;padding:10px 0}
 .latest-news .post-grid .news-card-img{width:104px;height:78px;aspect-ratio:4/3}
 .latest-news .post-grid .news-card-title{font-size:14px;line-height:1.55;-webkit-line-clamp:2}
 .latest-news .post-grid .news-card-copy{min-width:0}
 .ahnl-news-widget{padding:15px}
 .ahnl-news-widget .ahnl-widget-news li{grid-template-columns:104px minmax(0,1fr);min-height:98px;gap:12px}
 .ahnl-news-widget .ahnl-widget-news .ahnl-widget-thumb{width:104px;height:78px}
 .ahnl-news-widget .ahnl-widget-copy>a{font-size:14px;line-height:1.55}
 .ahnl-widget-mobile-only{display:block}
}

/* 0.6.2: incremental loading; desktop card dimensions are untouched. */
.ahnl-load-more-wrap{margin:24px auto 8px;text-align:center}
.ahnl-load-more{border:1px solid var(--ah-primary);background:transparent;color:var(--ah-primary);padding:9px 22px;border-radius:7px;font-weight:700;cursor:pointer;max-width:100%}
.ahnl-load-more:hover,.ahnl-load-more:focus-visible{background:var(--ah-primary);color:#fff}
.ahnl-load-more[disabled]{opacity:.65;cursor:progress}
.ahnl-load-status{display:block;color:var(--ah-muted);font-size:13px;margin-top:7px}
.ahnl-widget-news .ahnl-load-more{padding:6px 14px;font-size:13px}
@media(max-width:600px){.ahnl-widget-news li{min-width:0}.ahnl-widget-thumb{flex:0 0 92px;max-width:92px}.ahnl-widget-thumb img,.ahnl-widget-thumb .empty-thumb{width:92px;height:69px;object-fit:cover}.ahnl-widget-copy{min-width:0}.ahnl-widget-copy>a{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}.ahnl-load-more-wrap{margin:18px auto 8px}}

/* v0.7.1: true physical left/center/right mobile header, independent of RTL. */
@media (max-width:900px) {
  .site-head .head-inner {
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,auto) minmax(0,1fr);
    align-items:center;
    direction:ltr;
    gap:6px;
    min-height:66px;
  }
  .site-head .mobile-menu-toggle {
    grid-column:1; grid-row:1; order:initial;
    justify-self:start; margin:0;
  }
  .site-head .brand {
    grid-column:2; grid-row:1; order:initial;
    justify-self:center; margin:0;
    max-width:100%; min-width:0; text-align:center;
    direction:rtl; white-space:normal;
  }
  .site-head .brand-mobile {justify-content:center;text-align:center;max-width:100%}
  .site-head .brand-mobile img {max-width:min(var(--ah-mobile-logo,150px),100%);height:auto}
  .site-head .head-actions {
    grid-column:3;grid-row:1;order:initial;justify-self:end;
    display:flex;flex-wrap:nowrap;align-items:center;
    direction:rtl;gap:0;min-width:0;
  }
  .site-head .icon-btn {width:36px;height:40px;flex-shrink:0}
  .site-head .site-nav {direction:rtl}
}
@media (max-width:380px) {
  .site-head .head-inner {gap:3px}
  .site-head .icon-btn {width:32px;height:38px;font-size:21px}
  .site-head .brand {font-size:16px}
  .site-head .brand-mobile img {max-width:min(var(--ah-mobile-logo,150px),120px,100%)}
}

/* 0.7.2 — article UX, dynamic article background, accessible mobile menu */
@media(max-width:900px){
 .site-nav,.site-nav.is-open{background:var(--ah-primary);color:#fff;border-color:transparent}
 .site-nav a{color:#fff;display:block;padding:3px 0}
 .site-nav a:hover,.site-nav a:focus-visible{color:#fff;text-decoration:underline;text-underline-offset:4px}
 .site-nav li{border-bottom:1px solid #ffffff3d}
}
.article-layout article{min-width:0}
.article-layout .entry-content{background:var(--ah-article-surface,#fff);border-radius:10px;padding:clamp(14px,2.3vw,25px);margin-block:20px;max-width:100%;overflow-wrap:anywhere}
body.ah-dark .article-layout .entry-content{background:var(--ah-surface)}
.ahnl-article-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;padding:10px 0 17px;margin-bottom:12px;border-bottom:1px solid var(--ah-border);color:var(--ah-muted);font-size:13px;line-height:1.6}
.ahnl-meta-item{display:inline-flex;gap:7px;align-items:center;min-width:0;flex-wrap:wrap}
.ahnl-meta-item>span[aria-hidden]{color:var(--ah-primary);font-size:16px}
.ahnl-meta-item a{color:var(--ah-secondary);font-weight:700}
.ahnl-sharing-bottom{border-top:1px solid var(--ah-border);border-bottom:1px solid var(--ah-border);padding:20px 0;margin:25px 0;min-width:0}
.ahnl-sharing-bottom h2{font-size:17px;margin:0 0 14px;color:var(--ah-primary)}
.ahnl-sharing-bottom .ahnl-share{display:flex;flex-wrap:wrap;gap:10px}
.ahnl-sharing-bottom .ahnl-share-item{display:inline-flex;gap:7px;align-items:center;justify-content:center;border:1px solid var(--ah-border);border-radius:9px;padding:10px 14px;background:var(--ah-surface);color:var(--ah-text);font-weight:700;font-size:13px;min-height:44px;transition:background-color .15s,border-color .15s}
.ahnl-sharing-bottom .ahnl-share-item:hover,.ahnl-sharing-bottom .ahnl-share-item:focus-visible{border-color:var(--ah-primary);background:var(--ah-bg);color:var(--ah-primary)}
.ahnl-sharing-bottom .ahnl-share-item svg{flex:none}
.ahnl-back-to-top{position:fixed;bottom:24px;inset-inline-end:20px;z-index:50;display:grid;place-items:center;width:46px;height:46px;background:var(--ah-primary);border:1px solid #ffffff44;color:#fff;border-radius:12px;box-shadow:0 4px 15px #0003;opacity:0;visibility:hidden;transform:translateY(8px);pointer-events:none;transition:opacity .18s,transform .18s,visibility .18s}
.ahnl-back-to-top.is-visible{opacity:1;visibility:visible;transform:none;pointer-events:auto}
.ahnl-back-to-top:hover,.ahnl-back-to-top:focus-visible{filter:brightness(1.16);color:#fff}
.ahnl-comments{background:var(--ah-surface);border:1px solid var(--ah-border);border-radius:13px;padding:clamp(16px,3vw,28px);margin-top:28px;min-width:0}
.ahnl-comments-heading h2{font-size:21px;color:var(--ah-primary);margin:0;display:flex;gap:9px;align-items:center}
.ahnl-comment-count{font-size:12px;background:var(--ah-primary);color:#fff;padding:3px 10px;border-radius:20px}
.ahnl-comments-heading p{margin:6px 0 18px;color:var(--ah-muted);font-size:13px}
.ahnl-comment-list{list-style:none;padding:0;margin:0}
.ahnl-comment-list .comment{padding:15px;border:1px solid var(--ah-border);border-radius:11px;margin:12px 0;background:var(--ah-bg);overflow-wrap:anywhere}
.ahnl-comment-list .children{list-style:none;padding-inline-start:20px;margin:12px 0 0}
.ahnl-comment-list .comment-author{display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-size:14px}
.ahnl-comment-list .avatar{width:44px;height:44px;border-radius:50%;object-fit:cover}
.ahnl-comment-list .comment-metadata{font-size:12px;color:var(--ah-muted);margin-top:4px}
.ahnl-comment-list .comment-content{line-height:1.85;margin-top:10px}
.ahnl-comment-list .reply a{display:inline-flex;color:var(--ah-primary);font-weight:700;font-size:13px}
.ahnl-comment-form label{display:block;font-weight:650;margin:10px 0 6px}
.ahnl-comment-form textarea,.ahnl-comment-form input:not([type=checkbox]):not([type=submit]){display:block;max-width:100%;width:100%;padding:12px;border-radius:9px;border:1px solid var(--ah-border);background:var(--ah-bg);color:var(--ah-text);font:inherit}
.ahnl-comment-form .form-submit input{background:var(--ah-primary);color:white;border:0;border-radius:9px;padding:11px 26px;font:inherit;font-weight:750;cursor:pointer}
.ahnl-comments .comment-reply-title{font-size:18px;color:var(--ah-primary)}
@media(max-width:600px){.ahnl-article-meta{font-size:12px;gap:6px 12px}.ahnl-sharing-bottom .ahnl-share{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.ahnl-sharing-bottom .ahnl-share-item{padding:8px}.ahnl-back-to-top{bottom:17px;inset-inline-end:12px;width:42px;height:42px}.ahnl-comment-list .children{padding-inline-start:9px}}
@media(prefers-reduced-motion:reduce){.ahnl-back-to-top{transition:none}}

/* v0.7.3 — mobile drawer stays attached to the viewport; its own content scrolls. */
.ahnl-mobile-menu-close,.ahnl-menu-backdrop{display:none}
@media(max-width:900px){
 body.ahnl-menu-open{overflow:hidden;overscroll-behavior:none}
 .site-head .site-nav{
   display:block;position:fixed;top:0;bottom:0;left:0;right:auto;
   width:min(350px,90vw);height:100vh;height:100dvh;max-height:100dvh;
   z-index:1002;margin:0;padding:16px 18px 32px;
   overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
   background:var(--ah-primary);color:#fff;
   border:0;border-radius:0;box-shadow:2px 0 22px #0004;
   transform:translateX(-105%);transition:transform .2s ease;
   visibility:hidden;pointer-events:none;direction:rtl;
 }
 .site-head .site-nav.is-open{transform:translateX(0);visibility:visible;pointer-events:auto}
 .site-head .site-nav ul{display:block;margin:0;padding:0}
 .site-head .site-nav li{margin:0;padding:12px 0;border-bottom:1px solid #ffffff38}
 .site-head .site-nav a{color:#fff;display:block;overflow-wrap:anywhere}
 .ahnl-mobile-menu-close{display:flex;align-items:center;justify-content:center;
   margin:0 0 14px auto;width:44px;height:44px;border:1px solid #ffffff55;
   border-radius:9px;background:transparent;color:#fff;font-size:30px;cursor:pointer}
 .ahnl-menu-backdrop{position:fixed;inset:0;z-index:1001;background:#0009;display:block;
   opacity:0;visibility:hidden;pointer-events:none;transition:opacity .2s,visibility .2s}
 .ahnl-menu-backdrop.is-open{opacity:1;visibility:visible;pointer-events:auto}
}
@media(prefers-reduced-motion:reduce){
 .site-head .site-nav,.ahnl-menu-backdrop{transition:none}
}

/* v0.7.4: optional sticky header, keeping the whole header and logo accessible. */
.site-head.ahnl-sticky-head{position:sticky;top:0;z-index:1000}
body.admin-bar .site-head.ahnl-sticky-head{top:32px}
@media(max-width:782px){body.admin-bar .site-head.ahnl-sticky-head{top:46px}}
@media(max-width:600px){body.admin-bar .site-head.ahnl-sticky-head{top:0}}
.site-head.ahnl-sticky-head .head-inner{min-width:0}
.site-head.ahnl-sticky-head .brand{min-width:0}

/* v0.7.5 — Guest comment form, respectful reminder and responsive fields. */
.ahnl-comment-form .comment-form-author,.ahnl-comment-form .comment-form-email{min-width:0;margin-block:12px}
.ahnl-comment-form .required{color:#b42318}
.ahnl-comment-form .ahnl-comment-notice{display:flex;align-items:flex-start;gap:11px;padding:13px 15px;margin:18px 0 14px;border:1px solid var(--ah-border);border-inline-start:4px solid var(--ah-primary);border-radius:10px;background:var(--ah-bg);color:var(--ah-text);font-size:13px;line-height:1.85}
.ahnl-comment-notice-icon{display:inline-flex;justify-content:center;align-items:center;width:29px;height:29px;border-radius:50%;background:var(--ah-primary);color:#fff;flex:none}
.ahnl-comment-notice p{margin:0;min-width:0}
.ahnl-comment-notice strong{display:block;color:var(--ah-primary);margin-bottom:2px}
.ahnl-comment-notice span:not(.ahnl-comment-notice-icon){display:block}
@media(max-width:600px){.ahnl-comment-form .ahnl-comment-notice{padding:11px 12px;gap:8px}}

/* v0.7.7: local Tajawal font family supplied by site owner. */
@font-face{font-family:'AHNL Tajawal';src:url('assets/fonts/Tajawal-ExtraLight.woff2') format('woff2');font-style:normal;font-weight:200;font-display:swap}
@font-face{font-family:'AHNL Tajawal';src:url('assets/fonts/Tajawal-Light.woff2') format('woff2');font-style:normal;font-weight:300;font-display:swap}
@font-face{font-family:'AHNL Tajawal';src:url('assets/fonts/Tajawal-Regular.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:'AHNL Tajawal';src:url('assets/fonts/Tajawal-Medium.woff2') format('woff2');font-style:normal;font-weight:500;font-display:swap}
@font-face{font-family:'AHNL Tajawal';src:url('assets/fonts/Tajawal-Bold.woff2') format('woff2');font-style:normal;font-weight:700;font-display:swap}
@font-face{font-family:'AHNL Tajawal';src:url('assets/fonts/Tajawal-ExtraBold.woff2') format('woff2');font-style:normal;font-weight:800;font-display:swap}
@font-face{font-family:'AHNL Tajawal';src:url('assets/fonts/Tajawal-Black.woff2') format('woff2');font-style:normal;font-weight:900;font-display:swap}

/* v0.7.8: smart bottom-sticky desktop sidebar (no nested scrolling). */
@media(min-width:901px){
  .article-layout>.article-aside{min-width:0;align-self:stretch;position:relative}
  .article-aside .ahnl-sidebar-sticky{position:relative;top:auto;max-height:none;overflow:visible;min-width:0}
  .article-aside .ahnl-sidebar-sticky.ahnl-smart-sticky-ready{position:sticky;top:var(--ahnl-smart-sticky-top)}
  body.ahnl-sidebar-not-sticky .article-aside .ahnl-sidebar-sticky,
  body.ahnl-sidebar-not-sticky .article-aside .ahnl-sidebar-sticky.ahnl-smart-sticky-ready{position:static;top:auto}
}
@media(max-width:900px){
 .article-aside .ahnl-sidebar-sticky,.article-aside .ahnl-sidebar-sticky.ahnl-smart-sticky-ready{position:static;top:auto;max-height:none;overflow:visible}
}
/* Respect the selected article background in light and dark modes. */
body.ah-dark .article-layout .entry-content {background:var(--ah-article-surface-dark,var(--ah-surface));}

/* v0.7.9: four editable footer layouts. */
.site-foot{background:var(--ah-footer-bg,#122943);color:var(--ah-footer-color,#fff);padding:var(--ah-footer-pad,36px) 0;margin-top:35px}
body.ah-dark .site-foot{background:var(--ah-footer-bg,#122943);color:var(--ah-footer-color,#fff)}
.site-foot a,.site-foot .foot-credit a{color:inherit}
.ahnl-footer-content{display:grid;gap:clamp(18px,3vw,44px);grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);padding-bottom:24px}
.ahnl-footer-news .ahnl-footer-content{grid-template-columns:minmax(0,1.4fr) repeat(2,minmax(0,1fr))}
.ahnl-footer-widgets{grid-template-columns:repeat(var(--ah-footer-columns,3),minmax(0,1fr))}
.ahnl-footer-col,.ahnl-footer-brand{min-width:0;overflow-wrap:anywhere}
.ahnl-footer-col h3,.ahnl-foot-widget-title{font-size:16px;margin:0 0 14px;color:inherit}
.site-foot .ahnl-footer-col ul{display:flex;flex-direction:column;list-style:none;padding:0;margin:0;gap:10px}
.site-foot .foot-menu ul{display:flex;flex-direction:column;gap:10px}
.ahnl-footer-logo{display:block;width:auto;height:auto;max-height:65px;max-width:min(240px,100%);object-fit:contain;object-position:right center}
.ahnl-footer-bottom{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;border-top:1px solid #ffffff30;padding-top:18px;font-size:13px}
.ahnl-footer-simple .ahnl-footer-bottom{border:0;padding:0}
.ahnl-footer-brand .foot-social{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
@media(max-width:700px){.ahnl-footer-content,.ahnl-footer-news .ahnl-footer-content,.ahnl-footer-widgets{grid-template-columns:1fr;gap:20px}.ahnl-footer-bottom{gap:8px;flex-direction:column;align-items:flex-start}.site-foot{padding:clamp(16px,var(--ah-footer-pad,36px),40px) 0}}

/* v0.8.0 identity and footer settings; no home-card or sidebar changes. */
.brand-desktop .ahnl-logo-dark{display:none}
body.ah-dark .brand-desktop .ahnl-logo-dark{display:inline-flex;align-items:center}
body.ah-dark .brand-desktop:has(.ahnl-logo-dark)>a:not(.ahnl-logo-dark){display:none}
.site-foot .ahnl-footer-bottom,.site-foot .ahnl-footer-bottom small,.site-foot .ahnl-footer-bottom .foot-credit{font-size:var(--ah-footer-copyright-size,13px)}

.brand-mobile .ahnl-logo-dark{display:none}
@media(max-width:900px){body.ah-dark .brand-mobile:has(.ahnl-logo-dark)>a:not(.ahnl-logo-dark){display:none}body.ah-dark .brand-mobile .ahnl-logo-dark{display:inline-flex}}

/* v0.8.1: mobile-only card controls. Desktop card sizes are unchanged. */
@media (max-width:600px) {
  .post-grid .news-card { grid-template-columns:var(--ahnl-mobile-card-image,112px) minmax(0,1fr);gap:var(--ahnl-mobile-card-gap,12px); }
  .post-grid .news-card-title { font-size:var(--ahnl-mobile-card-title,15px); }
  .ahnl-widget-news .ahnl-widget-thumb { width:var(--ahnl-mobile-card-image,112px); flex:0 0 var(--ahnl-mobile-card-image,112px); }
  .ahnl-widget-news .ahnl-widget-copy > a { font-size:var(--ahnl-mobile-card-title,15px); }
  .ahnl-widget-news li { gap:var(--ahnl-mobile-card-gap,12px); }
}
/* Reading progress only appears when the reader enables the feature. */
.ahnl-reading-progress {position:fixed;top:0;inset-inline:0;height:3px;z-index:10020;pointer-events:none;background:transparent;}
.admin-bar .ahnl-reading-progress {top:32px;}
.ahnl-reading-progress-bar {height:100%;width:0;background:var(--ah-primary);transition:width 80ms linear;}
@media (max-width:782px) {.admin-bar .ahnl-reading-progress{top:46px;}}
@media (prefers-reduced-motion:reduce) {.ahnl-reading-progress-bar{transition:none;}}

@media(max-width:600px){
 .latest-news .post-grid .news-card{grid-template-columns:var(--ahnl-mobile-card-image,112px) minmax(0,1fr);gap:var(--ahnl-mobile-card-gap,12px)}
 .latest-news .post-grid .news-card-img{width:var(--ahnl-mobile-card-image,112px);height:auto;aspect-ratio:4/3}
 .latest-news .post-grid .news-card-title{font-size:var(--ahnl-mobile-card-title,15px)}
 .ahnl-news-widget .ahnl-widget-news li{grid-template-columns:var(--ahnl-mobile-card-image,112px) minmax(0,1fr);gap:var(--ahnl-mobile-card-gap,12px)}
 .ahnl-news-widget .ahnl-widget-news .ahnl-widget-thumb{width:var(--ahnl-mobile-card-image,112px);height:auto;aspect-ratio:4/3}
 .ahnl-news-widget .ahnl-widget-copy>a{font-size:var(--ahnl-mobile-card-title,15px)}
}

/* 0.9.0: constrain first-party ad containers without interfering with Google overlay ads. */
.ahnl-ad-slot{width:100%;min-width:0;max-width:100%;overflow:clip}
.ahnl-ad-slot img{display:inline-block;max-width:100%;height:auto}
@media(max-width:600px){.ahnl-ad-slot{max-width:100%;margin-inline:auto}}

/* v0.9.2: link the category-panel thumbnail without changing its layout. */
.mini-news .mini-news-thumb{display:block;flex:0 0 76px;width:76px;height:61px;overflow:hidden;border-radius:5px;}
.mini-news .mini-news-thumb img,.mini-news .mini-news-thumb .empty-thumb{display:block;width:100%;height:100%;object-fit:cover;border-radius:5px;}
.mini-news .mini-news-thumb:focus-visible{outline:2px solid var(--ah-primary);outline-offset:3px;}

/* v0.9.5: reserve the mobile hero caption's maximum three-line area.
   The caption's box is stable when Tajawal replaces the fallback font. */
@media (max-width:600px) {
  .hero-grid .hero-card .hero-copy {
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    block-size:96px;
    min-block-size:96px;
    max-block-size:96px;
    overflow:hidden;
  }
  .hero-grid .hero-main .hero-copy {
    block-size:140px;
    min-block-size:140px;
    max-block-size:140px;
  }
  .hero-grid .hero-card .cat-tag { align-self:flex-start; }
  /* No impact on card dimensions or desktop design. */
}
