/* ==========================================================================
   اليمن الغد — Yemen Al-Ghad | Main Stylesheet
   Editorial / magazine news design • RTL-first • Dark mode • Fast
   ========================================================================== */

/* ----------------------------- Design Tokens ----------------------------- */
:root{
  /* Brand */
  --ayg-red:        #c8102e;   /* primary news red */
  --ayg-red-dark:   #a00b24;
  --ayg-red-soft:   #fdecef;
  --ayg-gold:       #c8941b;   /* "الغد" sunrise accent */
  --ayg-ink:        #14161b;   /* headings */
  --ayg-body:       #2b2f36;   /* body text */
  --ayg-muted:      #6b7280;   /* meta */
  --ayg-line:       #e7e9ee;   /* borders */
  --ayg-bg:         #ffffff;
  --ayg-bg-alt:     #f4f5f7;   /* page bg */
  --ayg-bg-soft:    #fafbfc;
  --ayg-card:       #ffffff;
  --ayg-shadow:     0 2px 4px rgba(20,22,27,.04), 0 8px 24px rgba(20,22,27,.06);
  --ayg-shadow-lg:  0 12px 40px rgba(20,22,27,.12);

  /* Section colors (per category marker) */
  --cat-world:   #1d6fb8;
  --cat-arab:    #c8102e;
  --cat-econ:    #0e8a5f;
  --cat-sport:   #e0701a;
  --cat-tech:    #6a3fb5;
  --cat-health:  #d23a6e;
  --cat-var:     #b8860b;

  /* Typography */
  --font-head: "Cairo", "Segoe UI", Tahoma, sans-serif;
  --font-body: "Tajawal", "Segoe UI", Tahoma, sans-serif;
  --font-serif:"Amiri", Georgia, serif;

  /* Layout */
  --wrap: 1240px;
  --gap: 24px;
  --radius: 10px;
  --radius-sm: 6px;
  --header-h: 64px;
}

/* Dark mode */
html[data-theme="dark"]{
  --ayg-ink:#f3f4f6; --ayg-body:#d4d7dd; --ayg-muted:#9aa1ad;
  --ayg-line:#2a2e36; --ayg-bg:#15171c; --ayg-bg-alt:#0f1115;
  --ayg-bg-soft:#1a1d23; --ayg-card:#1a1d23; --ayg-red-soft:#3a151b;
  --ayg-shadow:0 2px 4px rgba(0,0,0,.3),0 8px 24px rgba(0,0,0,.4);
  --ayg-shadow-lg:0 12px 40px rgba(0,0,0,.5);
}

/* ------------------------------- Reset ----------------------------------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;background:var(--ayg-bg-alt);color:var(--ayg-body);
  font-family:var(--font-body);font-size:1rem;line-height:1.75;
  font-weight:400;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
}
img,svg,video{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none;transition:color .15s ease}
a:hover{color:var(--ayg-red)}
ul,ol{margin:0;padding:0;list-style:none}
h1,h2,h3,h4,h5{font-family:var(--font-head);color:var(--ayg-ink);margin:0;line-height:1.35;font-weight:700}
button{font-family:inherit;cursor:pointer}
:focus-visible{outline:2px solid var(--ayg-red);outline-offset:2px}
::selection{background:var(--ayg-red);color:#fff}

/* skip link (a11y) */
.skip-link{position:absolute;right:-9999px;top:0;background:var(--ayg-red);color:#fff;padding:10px 16px;z-index:9999;border-radius:0 0 6px 0}
.skip-link:focus{right:0}

/* --------------------------- Layout helpers ------------------------------ */
.ayg-wrap{max-width:var(--wrap);margin-inline:auto;padding-inline:18px}
.ayg-grid{display:grid;gap:var(--gap)}
.ayg-main-layout{display:grid;grid-template-columns:1fr 320px;gap:36px;align-items:start}
.ayg-section{margin:38px 0}
.screen-reader-text{position:absolute!important;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden}

/* =========================================================================
   TOP BAR
   ========================================================================= */
.ayg-topbar{background:var(--ayg-ink);color:#cfd2d8;font-size:0.8125rem}
html[data-theme="dark"] .ayg-topbar{background:#0a0c10}
.ayg-topbar .ayg-wrap{display:flex;align-items:center;justify-content:space-between;height:38px}
.ayg-topbar a{color:#cfd2d8}
.ayg-topbar a:hover{color:#fff}
.ayg-date{display:flex;align-items:center;gap:7px;font-weight:400}
.ayg-date svg{width:15px;height:15px;opacity:.8}
.ayg-top-links{display:flex;align-items:center;gap:18px}
.ayg-social{display:flex;align-items:center;gap:10px}
.ayg-social a{display:inline-flex;width:26px;height:26px;align-items:center;justify-content:center;border-radius:50%;background:rgba(255,255,255,.08)}
.ayg-social a:hover{background:var(--ayg-red);color:#fff}
.ayg-social svg{width:14px;height:14px}
.ayg-theme-toggle{background:none;border:0;color:#cfd2d8;display:inline-flex;align-items:center;padding:4px}
.ayg-theme-toggle:hover{color:#fff}
.ayg-theme-toggle svg{width:18px;height:18px}
.ayg-theme-toggle .icon-sun{display:none}
html[data-theme="dark"] .ayg-theme-toggle .icon-sun{display:block}
html[data-theme="dark"] .ayg-theme-toggle .icon-moon{display:none}

/* =========================================================================
   BREAKING NEWS TICKER
   ========================================================================= */
.ayg-breaking{background:var(--ayg-bg);border-bottom:1px solid var(--ayg-line);overflow:hidden}
.ayg-breaking .ayg-wrap{display:flex;align-items:center;height:46px;gap:0}
.ayg-breaking-label{display:flex;align-items:center;gap:8px;background:var(--ayg-red);color:#fff;
  font-family:var(--font-head);font-weight:800;font-size:0.875rem;padding:0 16px;height:46px;flex-shrink:0;
  clip-path:polygon(0 0,100% 0,calc(100% - 14px) 100%,0 100%)}
.ayg-breaking-label .dot{width:8px;height:8px;border-radius:50%;background:#fff;animation:ayg-pulse 1.2s infinite}
@keyframes ayg-pulse{0%,100%{opacity:1}50%{opacity:.35}}
.ayg-ticker{flex:1;overflow:hidden;position:relative;height:46px}
.ayg-ticker ul{display:flex;align-items:center;height:46px;gap:42px;white-space:nowrap;
  animation:ayg-ticker 38s linear infinite;padding-inline-start:24px}
.ayg-ticker:hover ul{animation-play-state:paused}
.ayg-ticker li{display:flex;align-items:center;gap:10px;font-weight:400;color:var(--ayg-body)}
.ayg-ticker li::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--ayg-gold)}
@keyframes ayg-ticker{0%{transform:translateX(0)}100%{transform:translateX(100%)}}

/* =========================================================================
   HEADER
   ========================================================================= */
.ayg-header{background:var(--ayg-bg);border-bottom:1px solid var(--ayg-line)}
.ayg-header-main{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:84px;padding-block:10px}
.ayg-logo{display:flex;align-items:center;gap:12px;flex-shrink:0}
.ayg-logo img{max-height:54px;width:auto}
.ayg-logo-text{font-family:var(--font-head);font-weight:800;font-size:1.875rem;color:var(--ayg-ink);line-height:1;letter-spacing:-.5px}
.ayg-logo-text .ghad{color:var(--ayg-red)}
.ayg-logo-tag{display:block;font-family:var(--font-body);font-weight:400;font-size:0.7188rem;color:var(--ayg-muted);margin-top:4px;letter-spacing:.5px}

.ayg-header-ad{flex:1;max-width:728px;text-align:center;min-height:90px;display:flex;align-items:center;justify-content:center}
.ayg-header-ad img{margin-inline:auto}
.ayg-ad-placeholder{background:repeating-linear-gradient(45deg,var(--ayg-bg-alt),var(--ayg-bg-alt) 10px,var(--ayg-bg-soft) 10px,var(--ayg-bg-soft) 20px);
  border:1px dashed var(--ayg-line);border-radius:var(--radius-sm);color:var(--ayg-muted);font-size:0.75rem;
  display:flex;align-items:center;justify-content:center;height:90px;width:100%;max-width:728px}

.ayg-header-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}
.ayg-search-btn,.ayg-menu-btn{background:var(--ayg-bg-alt);border:1px solid var(--ayg-line);border-radius:50%;
  width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;color:var(--ayg-ink)}
.ayg-search-btn:hover,.ayg-menu-btn:hover{background:var(--ayg-red);color:#fff;border-color:var(--ayg-red)}
.ayg-search-btn svg,.ayg-menu-btn svg{width:19px;height:19px}
.ayg-menu-btn{display:none}

/* =========================================================================
   NAVIGATION
   ========================================================================= */
.ayg-nav{background:var(--ayg-ink);position:relative;z-index:500;box-shadow:0 2px 12px rgba(0,0,0,.18)}

/* Compact sticky header bar */
.ayg-sticky-bar{position:fixed;top:0;inset-inline:0;z-index:700;background:var(--ayg-card);
  border-bottom:1px solid var(--ayg-line);box-shadow:0 4px 20px rgba(0,0,0,.10);
  transform:translateY(-100%);transition:transform .28s ease;will-change:transform}
.ayg-sticky-bar.show{transform:translateY(0)}
body.admin-bar .ayg-sticky-bar{top:32px}
@media(max-width:782px){ body.admin-bar .ayg-sticky-bar{top:46px} }
.ayg-sticky-bar .ayg-wrap{display:flex;align-items:center;gap:16px;height:58px}
.ayg-sb-logo{display:flex;align-items:center;flex-shrink:0}
.ayg-sb-logo img,.ayg-sb-logo .custom-logo{height:34px;width:auto}
.ayg-sb-logo-text{font-family:var(--font-head);font-weight:800;font-size:1.25rem;color:var(--ayg-ink)}
.ayg-sb-logo-text b{color:var(--ayg-red)}
.ayg-sb-nav{flex:1;overflow:hidden}
.ayg-sb-menu{display:flex;gap:4px;margin:0;padding:0;list-style:none;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
.ayg-sb-menu::-webkit-scrollbar{display:none}
.ayg-sb-menu a{display:block;padding:8px 12px;font-family:var(--font-head);font-weight:700;font-size:0.875rem;
  color:var(--ayg-ink);white-space:nowrap;border-radius:8px;transition:background .15s,color .15s}
.ayg-sb-menu a:hover{background:var(--ayg-red);color:#fff}
.ayg-sb-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.ayg-sb-menu-btn{display:none}
.ayg-theme-toggle--main.ayg-theme-toggle--main{width:38px;height:38px}
@media(max-width:900px){
  .ayg-sb-nav{display:none}
  .ayg-sb-menu-btn{display:inline-flex}
  .ayg-sticky-bar .ayg-wrap{height:52px}
}
html[data-theme="dark"] .ayg-nav{background:#0a0c10}
.ayg-nav .ayg-wrap{display:flex;align-items:center}
.ayg-nav-home{background:var(--ayg-red);color:#fff;width:54px;height:54px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.ayg-nav-home svg{width:22px;height:22px}
.ayg-menu{display:flex;align-items:stretch}
.ayg-menu > li{position:relative}
.ayg-menu > li > a{display:flex;align-items:center;gap:6px;color:#e8eaee;font-family:var(--font-head);font-weight:700;
  font-size:0.9688rem;padding:0 17px;height:54px;border-bottom:3px solid transparent;transition:.15s}
.ayg-menu > li > a:hover,.ayg-menu > li.current-menu-item > a{color:#fff;border-bottom-color:var(--ayg-red);background:rgba(255,255,255,.05)}
.ayg-menu > li.menu-item-has-children > a::after{content:"";width:7px;height:7px;border-inline-end:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin-top:-3px;opacity:.7}
/* submenu */
.ayg-menu .sub-menu{position:absolute;top:100%;inset-inline-start:0;min-width:210px;background:var(--ayg-bg);
  box-shadow:var(--ayg-shadow-lg);border-radius:0 0 8px 8px;padding:8px 0;opacity:0;visibility:hidden;transform:translateY(8px);
  transition:.18s;z-index:600;border-top:3px solid var(--ayg-red)}
.ayg-menu li:hover > .sub-menu{opacity:1;visibility:visible;transform:translateY(0)}
.ayg-menu .sub-menu a{display:block;padding:9px 18px;color:var(--ayg-body);font-weight:400;font-size:0.9062rem;font-family:var(--font-body)}
.ayg-menu .sub-menu a:hover{background:var(--ayg-red-soft);color:var(--ayg-red);padding-inline-start:24px}
.ayg-nav-extra{margin-inline-start:auto;display:flex;align-items:center;gap:14px;padding-inline-end:6px}
.ayg-live-link{display:flex;align-items:center;gap:7px;color:#fff;font-family:var(--font-head);font-weight:700;font-size:0.875rem}
.ayg-live-link .live-dot{width:9px;height:9px;border-radius:50%;background:#ff3b3b;box-shadow:0 0 0 0 rgba(255,59,59,.6);animation:ayg-live 1.5s infinite}
@keyframes ayg-live{0%{box-shadow:0 0 0 0 rgba(255,59,59,.6)}70%{box-shadow:0 0 0 8px rgba(255,59,59,0)}100%{box-shadow:0 0 0 0 rgba(255,59,59,0)}}

/* =========================================================================
   SECTION HEADERS (colored marker like big news sites)
   ========================================================================= */
.ayg-sec-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;
  border-bottom:2px solid var(--ayg-line);padding-bottom:12px}
.ayg-sec-title{display:flex;align-items:center;gap:0;font-family:var(--font-head);font-weight:800;font-size:1.3125rem;color:var(--ayg-ink);position:relative}
.ayg-sec-title::before{content:"";width:6px;height:24px;background:var(--ayg-red);border-radius:3px;margin-inline-end:11px}
.ayg-sec-more{font-family:var(--font-head);font-weight:700;font-size:0.875rem;color:var(--ayg-red);display:flex;align-items:center;gap:5px}
.ayg-sec-more svg{width:14px;height:14px}
.ayg-sec-more:hover{gap:9px}

/* =========================================================================
   HERO (homepage featured)
   ========================================================================= */
.ayg-hero{display:grid;grid-template-columns:2fr 1fr;gap:18px;margin-top:26px}
.ayg-hero-main{position:relative;border-radius:var(--radius);overflow:hidden;min-height:430px;background:var(--ayg-ink)}
.ayg-hero-main img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0;transition:transform .6s ease}
.ayg-hero-main:hover img{transform:scale(1.04)}
.ayg-hero-overlay{position:absolute;inset:0;background:linear-gradient(0deg,rgba(8,9,12,.92) 0%,rgba(8,9,12,.45) 45%,transparent 80%)}
.ayg-hero-body{position:absolute;inset-inline:0;bottom:0;padding:28px 30px;z-index:2}
.ayg-hero-body .ayg-cat-badge{margin-bottom:12px}
.ayg-hero-body h2{color:#fff;font-size:1.875rem;font-weight:800;line-height:1.4}
.ayg-hero-body h2 a{color:#fff}
.ayg-hero-body h2 a:hover{color:#ffd9de}
.ayg-hero-body .ayg-meta{color:#dfe2e7;margin-top:12px}
.ayg-hero-side{display:grid;grid-template-rows:1fr 1fr;gap:18px}
.ayg-hero-sub{position:relative;border-radius:var(--radius);overflow:hidden;min-height:206px;background:var(--ayg-ink)}
.ayg-hero-sub img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0;transition:transform .6s}
.ayg-hero-sub:hover img{transform:scale(1.05)}
.ayg-hero-sub .ayg-hero-overlay{background:linear-gradient(0deg,rgba(8,9,12,.9),transparent 70%)}
.ayg-hero-sub .ayg-hero-body{padding:18px}
.ayg-hero-sub h3{color:#fff;font-size:1.0625rem;font-weight:700;line-height:1.45}
.ayg-hero-sub h3 a{color:#fff}

/* Category badge */
.ayg-cat-badge{display:inline-flex;align-items:center;background:var(--ayg-red);color:#fff;font-family:var(--font-head);
  font-weight:700;font-size:0.75rem;padding:4px 11px;border-radius:4px;letter-spacing:.2px}
.ayg-cat-badge.world{background:var(--cat-world)}
.ayg-cat-badge.econ{background:var(--cat-econ)}
.ayg-cat-badge.sport{background:var(--cat-sport)}
.ayg-cat-badge.tech{background:var(--cat-tech)}
.ayg-cat-badge.health{background:var(--cat-health)}
.ayg-cat-badge.var{background:var(--cat-var)}

/* =========================================================================
   ARTICLE CARDS
   ========================================================================= */
.ayg-cards.cols-4{grid-template-columns:repeat(4,1fr)}
.ayg-cards.cols-2{grid-template-columns:repeat(2,1fr)}

.ayg-card{background:var(--ayg-card);border:1px solid var(--ayg-line);border-radius:var(--radius);overflow:hidden;
  display:flex;flex-direction:column;transition:transform .22s ease,box-shadow .22s ease}
.ayg-card:hover{transform:translateY(-4px);box-shadow:var(--ayg-shadow-lg)}
.ayg-card-thumb{position:relative;aspect-ratio:16/10;overflow:hidden;background:var(--ayg-bg-alt)}
.ayg-card-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.ayg-card:hover .ayg-card-thumb img{transform:scale(1.06)}
.ayg-card-thumb .ayg-cat-badge{position:absolute;inset-block-start:12px;inset-inline-start:12px;z-index:2}
.ayg-card-thumb .ayg-media-icon{position:absolute;inset-block-end:12px;inset-inline-end:12px;background:rgba(0,0,0,.65);
  color:#fff;width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;z-index:2}
.ayg-card-thumb .ayg-media-icon svg{width:16px;height:16px}
.ayg-card-body{padding:16px 17px 18px;display:flex;flex-direction:column;flex:1}
.ayg-card-title{font-family:var(--font-head);font-weight:700;font-size:1.0938rem;line-height:1.5;color:var(--ayg-ink);
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.ayg-card:hover .ayg-card-title{color:var(--ayg-red)}
.ayg-card-excerpt{color:var(--ayg-muted);font-size:0.9062rem;margin-top:9px;line-height:1.7;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ayg-card-meta{margin-top:auto;padding-top:13px;display:flex;align-items:center;gap:14px;color:var(--ayg-muted);font-size:0.7812rem}
.ayg-card-meta .m{display:flex;align-items:center;gap:5px}
.ayg-card-meta svg{width:13px;height:13px;opacity:.85}

/* Title icons (signals beside headline) */
.ayg-title-icons{display:inline-flex;gap:6px;vertical-align:middle;margin-inline-start:7px}
.ayg-title-icon{display:inline-flex;align-items:center;justify-content:center;width:21px;height:21px;border-radius:5px;
  background:var(--ayg-red-soft);color:var(--ayg-red)}
.ayg-title-icon svg{width:13px;height:13px}
.ayg-title-icon.video{background:#fde8e8;color:#d12c2c}
.ayg-title-icon.photo{background:#e8f1fb;color:var(--cat-world)}
.ayg-title-icon.exclusive{background:#fdf3e0;color:var(--ayg-gold)}
.ayg-title-icon.urgent{background:var(--ayg-red);color:#fff}

/* List-style card (sidebar / latest) */
.ayg-list-item{display:flex;gap:13px;padding:14px 0;border-bottom:1px solid var(--ayg-line)}
.ayg-list-item:last-child{border-bottom:0}
.ayg-list-thumb{width:96px;height:68px;flex-shrink:0;border-radius:var(--radius-sm);overflow:hidden;background:var(--ayg-bg-alt)}
.ayg-list-thumb img{width:100%;height:100%;object-fit:cover}
.ayg-list-body{flex:1;min-width:0}
.ayg-list-title{font-family:var(--font-head);font-weight:700;font-size:0.9375rem;line-height:1.5;color:var(--ayg-ink);
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.ayg-list-item:hover .ayg-list-title{color:var(--ayg-red)}
.ayg-list-meta{font-size:0.75rem;color:var(--ayg-muted);margin-top:6px}

/* Numbered (most read) */
.ayg-numbered .ayg-list-item{align-items:center;position:relative;padding-inline-start:46px}
.ayg-numbered .num{position:absolute;inset-inline-start:0;top:50%;transform:translateY(-50%);
  font-family:var(--font-head);font-weight:800;font-size:1.625rem;color:var(--ayg-line);width:34px;text-align:center}
.ayg-numbered .ayg-list-item:nth-child(1) .num{color:var(--ayg-red)}
.ayg-numbered .ayg-list-item:nth-child(2) .num{color:var(--ayg-gold)}
.ayg-numbered .ayg-list-item:nth-child(3) .num{color:var(--cat-world)}

/* Overlay card (image with text on top) */
.ayg-ocard{position:relative;border-radius:var(--radius);overflow:hidden;min-height:230px;background:var(--ayg-ink);display:block}
.ayg-ocard img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .5s}
.ayg-ocard:hover img{transform:scale(1.06)}
.ayg-ocard .ov{position:absolute;inset:0;background:linear-gradient(0deg,rgba(8,9,12,.9),transparent 65%)}
.ayg-ocard .bd{position:absolute;inset-inline:0;bottom:0;padding:18px;z-index:2}
.ayg-ocard h3{color:#fff;font-size:1.0625rem;font-weight:700;line-height:1.45}
.ayg-ocard h3 a{color:#fff}

/* =========================================================================
   SPECIAL HOME BLOCKS (Beyond the event / Interview / Profile / Podcast)
   ========================================================================= */
.ayg-feature-row{display:grid;grid-template-columns:repeat(2,1fr);gap:24px;margin-top:26px}
.ayg-feature-box{background:var(--ayg-card);border:1px solid var(--ayg-line);border-radius:var(--radius);padding:22px;position:relative;overflow:hidden}
.ayg-feature-box::before{content:"";position:absolute;inset-block-start:0;inset-inline-start:0;width:100%;height:4px;background:var(--ayg-red)}
.ayg-feature-box.gold::before{background:var(--ayg-gold)}
.ayg-feature-box.blue::before{background:var(--cat-world)}
.ayg-feature-label{font-family:var(--font-head);font-weight:800;font-size:0.8125rem;color:var(--ayg-red);letter-spacing:.5px;text-transform:uppercase}
.ayg-feature-box.gold .ayg-feature-label{color:var(--ayg-gold)}
.ayg-feature-box.blue .ayg-feature-label{color:var(--cat-world)}

/* =========================================================================
   SIDEBAR / WIDGETS
   ========================================================================= */
.ayg-sidebar{position:sticky;top:74px}
.ayg-widget{background:var(--ayg-card);border:1px solid var(--ayg-line);border-radius:var(--radius);padding:18px;margin-bottom:26px}
.ayg-widget-title{font-family:var(--font-head);font-weight:800;font-size:1.0625rem;color:var(--ayg-ink);
  border-bottom:2px solid var(--ayg-line);padding-bottom:11px;margin-bottom:14px;display:flex;align-items:center;gap:9px}
.ayg-widget-title::before{content:"";width:5px;height:19px;background:var(--ayg-red);border-radius:3px}
.ayg-widget ul li{padding:9px 0;border-bottom:1px solid var(--ayg-line)}
.ayg-widget ul li:last-child{border-bottom:0;padding-bottom:0}
.ayg-widget a{font-weight:400}
.ayg-widget a:hover{color:var(--ayg-red)}
.ayg-tabs{display:flex;gap:0;margin-bottom:14px;border-bottom:2px solid var(--ayg-line)}
.ayg-tab{flex:1;background:none;border:0;font-family:var(--font-head);font-weight:700;font-size:0.9062rem;color:var(--ayg-muted);
  padding:10px 4px;border-bottom:3px solid transparent;margin-bottom:-2px}
.ayg-tab.active{color:var(--ayg-red);border-bottom-color:var(--ayg-red)}
.ayg-tabpane{display:none}
.ayg-tabpane.active{display:block;animation:ayg-fade .3s}
@keyframes ayg-fade{from{opacity:0}to{opacity:1}}

/* Newsletter widget */
.ayg-newsletter{background:linear-gradient(135deg,var(--ayg-red),var(--ayg-red-dark));color:#fff;border:0}
.ayg-newsletter .ayg-widget-title{color:#fff;border-color:rgba(255,255,255,.25)}
.ayg-newsletter .ayg-widget-title::before{background:#fff}
.ayg-newsletter p{font-size:0.875rem;opacity:.95;margin:0 0 14px}
.ayg-newsletter input{width:100%;padding:11px 14px;border:0;border-radius:var(--radius-sm);margin-bottom:10px;font-family:inherit}
.ayg-newsletter button{width:100%;background:var(--ayg-ink);color:#fff;border:0;padding:11px;border-radius:var(--radius-sm);font-family:var(--font-head);font-weight:700}
.ayg-newsletter button:hover{background:#000}

/* Tag cloud */
.ayg-tagcloud{display:flex;flex-wrap:wrap;gap:8px}
.ayg-tagcloud a{background:var(--ayg-bg-alt);border:1px solid var(--ayg-line);padding:6px 12px;border-radius:20px;font-size:0.8125rem;font-weight:400}
.ayg-tagcloud a:hover{background:var(--ayg-red);color:#fff;border-color:var(--ayg-red)}

/* =========================================================================
   BREADCRUMBS
   ========================================================================= */
.ayg-breadcrumbs{font-size:0.8438rem;color:var(--ayg-muted);padding:14px 0;display:flex;flex-wrap:wrap;align-items:center;gap:7px}
.ayg-breadcrumbs a{color:var(--ayg-muted);font-weight:400}
.ayg-breadcrumbs a:hover{color:var(--ayg-red)}
.ayg-breadcrumbs .sep{opacity:.5}
.ayg-breadcrumbs [aria-current]{color:var(--ayg-ink);font-weight:700}

/* =========================================================================
   SINGLE ARTICLE
   ========================================================================= */
.ayg-article{background:var(--ayg-card);border:1px solid var(--ayg-line);border-radius:var(--radius);padding:30px 34px;overflow:hidden}
.ayg-article-cat{margin-bottom:16px}
.ayg-article-title{font-size:2.0625rem;font-weight:800;line-height:1.45;color:var(--ayg-ink);margin-bottom:18px}
.ayg-article-meta{display:flex;flex-wrap:wrap;align-items:center;gap:20px;padding:14px 0;border-block:1px solid var(--ayg-line);
  color:var(--ayg-muted);font-size:0.8438rem;margin-bottom:22px}
.ayg-article-meta .m{display:flex;align-items:center;gap:6px}
.ayg-article-meta svg{width:15px;height:15px;opacity:.85}
.ayg-article-meta .author{font-weight:700;color:var(--ayg-ink)}
.ayg-share-inline{margin-inline-start:auto;display:flex;gap:8px}
.ayg-share-inline a{width:32px;height:32px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;
  background:var(--ayg-bg-alt);border:1px solid var(--ayg-line)}
.ayg-share-inline a:hover{background:var(--ayg-red);color:#fff;border-color:var(--ayg-red)}
.ayg-share-inline svg{width:15px;height:15px}
.ayg-article-feature{margin:0 -34px 24px;position:relative}
.ayg-feat-media{aspect-ratio:16/9;overflow:hidden;border-radius:14px;background:var(--ayg-bg-alt)}
.ayg-feat-media img{width:100%;height:100%;object-fit:cover}
.ayg-article-feature figcaption{display:flex;justify-content:space-between;align-items:baseline;gap:14px;font-size:0.8125rem;color:var(--ayg-muted);padding:9px 4px 0;margin-top:6px}
.ayg-feat-cap-text{flex:1}
.ayg-feat-credit{flex-shrink:0;font-size:0.75rem;opacity:.85}
.ayg-feat-credit::before{content:"\1F4F7  "}

.ayg-article-content{font-size:1.125rem;line-height:2;color:var(--ayg-body)}
.ayg-article-content > p:first-of-type{font-family:var(--font-body);font-size:1.25rem;line-height:1.95;color:var(--ayg-ink);font-weight:700}
.ayg-article-content p{margin:0 0 22px}
.ayg-article-content h2{font-size:1.5625rem;margin:34px 0 16px;font-weight:800}
.ayg-article-content h3{font-size:1.3125rem;margin:28px 0 14px;font-weight:700}
.ayg-article-content a{color:var(--ayg-red);font-weight:700;text-decoration:underline;text-underline-offset:3px}
.ayg-article-content img{border-radius:var(--radius);margin:24px 0}
.ayg-article-content blockquote{border-inline-start:4px solid var(--ayg-red);background:var(--ayg-red-soft);
  margin:26px 0;padding:18px 24px;border-radius:0 var(--radius-sm) var(--radius-sm) 0;font-family:var(--font-body);font-weight:700;font-size:1.1875rem;color:var(--ayg-ink)}
.ayg-article-content ul,.ayg-article-content ol{margin:0 0 22px;padding-inline-start:26px}
.ayg-article-content ul li{list-style:none;margin-bottom:8px}
.ayg-article-content ol li{list-style:none;margin-bottom:8px}
.ayg-article-content figure{margin:24px 0}

/* Tags + author bio + share footer */
.ayg-article-tags{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:30px;padding-top:22px;border-top:1px solid var(--ayg-line)}
.ayg-article-tags .lbl{font-family:var(--font-head);font-weight:700;color:var(--ayg-ink)}
.ayg-author-box{display:flex;gap:18px;background:var(--ayg-bg-alt);border-radius:var(--radius);padding:20px;margin-top:26px}
.ayg-author-box img{width:74px;height:74px;border-radius:50%;object-fit:cover;flex-shrink:0}
.ayg-author-box h4{font-size:1.0625rem;margin-bottom:6px}
.ayg-author-box p{font-size:0.875rem;color:var(--ayg-muted);margin:0}

/* Related */
.ayg-related{margin-top:38px}

/* =========================================================================
   ARCHIVE / CATEGORY HEADER
   ========================================================================= */
.ayg-arch-head{background:var(--ayg-ink);color:#fff;border-radius:var(--radius);padding:30px 34px;margin-top:22px;position:relative;overflow:hidden}
.ayg-arch-head::after{content:"";position:absolute;inset-block:0;inset-inline-end:0;width:6px;background:var(--ayg-red)}
.ayg-arch-head h1{color:#fff;font-size:1.875rem;font-weight:800}
.ayg-arch-head p{color:#cfd2d8;margin:10px 0 0;max-width:680px}
.ayg-arch-head .count{display:inline-block;margin-top:14px;background:var(--ayg-red);color:#fff;font-size:0.8125rem;font-weight:700;padding:4px 13px;border-radius:20px;font-family:var(--font-head)}

/* =========================================================================
   PAGINATION + LOAD MORE
   ========================================================================= */
.ayg-pagination{display:flex;justify-content:center;gap:8px;margin:40px 0;flex-wrap:wrap}
.ayg-pagination a,.ayg-pagination span{min-width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;
  background:var(--ayg-card);border:1px solid var(--ayg-line);border-radius:var(--radius-sm);font-family:var(--font-head);font-weight:700;padding:0 12px}
.ayg-pagination a:hover{background:var(--ayg-red);color:#fff;border-color:var(--ayg-red)}
.ayg-pagination .current{background:var(--ayg-red);color:#fff;border-color:var(--ayg-red)}
.ayg-loadmore{display:flex;justify-content:center;margin:36px 0}
.ayg-loadmore button{background:var(--ayg-red);color:#fff;border:0;padding:13px 40px;border-radius:30px;
  font-family:var(--font-head);font-weight:700;font-size:1rem;display:flex;align-items:center;gap:9px;transition:.2s}
.ayg-loadmore button:hover{background:var(--ayg-red-dark);transform:translateY(-2px);box-shadow:var(--ayg-shadow-lg)}
.ayg-loadmore button[disabled]{opacity:.6;cursor:default;transform:none}
.ayg-loadmore .spin{width:18px;height:18px;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:ayg-spin .7s linear infinite;display:none}
.ayg-loadmore.loading .spin{display:inline-block}

/* =========================================================================
   FOOTER
   ========================================================================= */
.ayg-footer{background:var(--ayg-ink);color:#aeb3bc;margin-top:50px}
html[data-theme="dark"] .ayg-footer{background:#0a0c10}
.ayg-footer-top{padding:50px 0 36px;display:grid;grid-template-columns:1.4fr 1fr 1fr 1.3fr;gap:40px}
.ayg-footer h4,.ayg-footer h2{color:#fff;font-size:1rem;font-weight:700;margin-bottom:18px;position:relative;padding-bottom:11px}
.ayg-footer h4::after,.ayg-footer h2::after{content:"";position:absolute;inset-block-end:0;inset-inline-start:0;width:38px;height:3px;background:var(--ayg-red);border-radius:2px}
.ayg-footer-about .ayg-logo-text{color:#fff;font-size:1.625rem;margin-bottom:14px}
.ayg-footer-about p{font-size:0.875rem;line-height:1.85;margin:0 0 18px}
.ayg-footer ul li{padding:7px 0}
.ayg-footer ul li a{color:#aeb3bc;font-size:0.9062rem;display:flex;align-items:center;gap:8px}
.ayg-footer ul li a::before{content:"";width:5px;height:5px;border-radius:50%;background:var(--ayg-red);flex-shrink:0}
.ayg-footer ul li a:hover{color:#fff;padding-inline-start:5px}
.ayg-footer-social{display:flex;gap:10px;margin-top:6px}
.ayg-footer-social a{width:38px;height:38px;border-radius:8px;background:rgba(255,255,255,.07);display:inline-flex;align-items:center;justify-content:center;color:#fff}
.ayg-footer-social a:hover{background:var(--ayg-red);transform:translateY(-3px)}
.ayg-footer-social svg{width:17px;height:17px}
.ayg-footer-bottom{border-top:1px solid rgba(255,255,255,.09);padding:20px 0;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;font-size:0.8438rem}
.ayg-footer-bottom a:hover{color:#fff}

/* =========================================================================
   SEARCH OVERLAY + MOBILE MENU
   ========================================================================= */
.ayg-search-overlay{position:fixed;inset:0;background:rgba(10,12,16,.96);z-index:9000;display:flex;align-items:flex-start;
  justify-content:center;padding-top:14vh;opacity:0;visibility:hidden;transition:.25s}
.ayg-search-overlay.open{opacity:1;visibility:visible}
.ayg-search-overlay form{width:min(680px,90%);position:relative}
.ayg-search-overlay input{width:100%;background:transparent;border:0;border-bottom:3px solid var(--ayg-red);color:#fff;
  font-size:1.875rem;font-family:var(--font-head);font-weight:700;padding:14px 0 14px 50px;outline:none}
.ayg-search-overlay input::placeholder{color:rgba(255,255,255,.4)}
.ayg-search-overlay button[type=submit]{position:absolute;inset-inline-start:0;top:18px;background:none;border:0;color:#fff}
.ayg-search-overlay button[type=submit] svg{width:30px;height:30px}
.ayg-search-close{position:absolute;top:30px;inset-inline-end:30px;background:none;border:0;color:#fff}
.ayg-search-close svg{width:34px;height:34px}
.ayg-search-hint{color:rgba(255,255,255,.5);font-size:0.875rem;margin-top:18px}

.ayg-mobile-menu{position:fixed;inset-block:0;right:0;width:320px;max-width:85vw;background:var(--ayg-bg);z-index:9500;
  box-shadow:-8px 0 40px rgba(0,0,0,.3);transition:transform .3s cubic-bezier(.4,0,.2,1),visibility .3s;overflow-y:auto;padding-bottom:40px;
  transform:translateX(100%);visibility:hidden;will-change:transform}
html[dir="ltr"] .ayg-mobile-menu{right:auto;left:0;transform:translateX(-100%)}
.ayg-mobile-menu.open{transform:translateX(0);visibility:visible}
/* Never show the mobile drawer on desktop widths */
@media(min-width:901px){.ayg-mobile-menu,.ayg-overlay-bg{display:none !important}}
.ayg-mm-head{display:flex;align-items:center;justify-content:space-between;padding:18px;border-bottom:1px solid var(--ayg-line)}
.ayg-mm-close{background:var(--ayg-bg-alt);border:0;width:38px;height:38px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center}
.ayg-mm-close svg{width:18px;height:18px}
.ayg-mobile-menu ul li a{display:block;padding:14px 20px;border-bottom:1px solid var(--ayg-line);font-family:var(--font-head);font-weight:700;font-size:1rem}
.ayg-mobile-menu ul li a:hover{background:var(--ayg-red-soft);color:var(--ayg-red)}
.ayg-mobile-menu .sub-menu a{padding-inline-start:38px;font-weight:400;font-size:0.9062rem;background:var(--ayg-bg-soft)}
.ayg-overlay-bg{position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:9400;opacity:0;visibility:hidden;transition:.3s}
.ayg-overlay-bg.open{opacity:1;visibility:visible}

@keyframes ayg-spin{to{transform:rotate(360deg)}}

/* back to top */
.ayg-totop{position:fixed;inset-block-end:26px;inset-inline-start:26px;width:46px;height:46px;border-radius:50%;background:var(--ayg-red);
  color:#fff;border:0;display:inline-flex;align-items:center;justify-content:center;z-index:800;opacity:0;visibility:hidden;
  transform:translateY(16px);transition:.25s;box-shadow:var(--ayg-shadow-lg)}
.ayg-totop.show{opacity:1;visibility:visible;transform:translateY(0)}
.ayg-totop:hover{background:var(--ayg-red-dark)}
.ayg-totop svg{width:20px;height:20px}

/* reading progress bar */
.ayg-progress{position:fixed;inset-block-start:0;inset-inline:0;height:3px;background:var(--ayg-red);width:0;z-index:9999;transition:width .1s}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width:1100px){
  .ayg-main-layout{grid-template-columns:1fr 290px;gap:28px}
  .ayg-cards.cols-4{grid-template-columns:repeat(3,1fr)}
}
@media (max-width:900px){
  .ayg-main-layout{grid-template-columns:1fr}
  .ayg-sidebar{position:static}
  .ayg-hero{grid-template-columns:1fr}
  .ayg-hero-side{grid-template-rows:auto;grid-template-columns:1fr 1fr}
  .ayg-header-ad{display:none}
  .ayg-menu{display:none}
  .ayg-menu-btn{display:inline-flex}
  .ayg-nav-extra{margin-inline-start:auto}
  .ayg-feature-row{grid-template-columns:1fr}
  .ayg-footer-top{grid-template-columns:1fr 1fr;gap:32px}
}
@media (max-width:680px){
  body{font-size:0.9688rem}
  .ayg-cards,.ayg-cards.cols-3,.ayg-cards.cols-4{grid-template-columns:1fr 1fr;gap:16px}
  .ayg-card-title{font-size:0.9375rem;-webkit-line-clamp:3}
  .ayg-card-excerpt{display:none}
  .ayg-hero-body h2{font-size:1.375rem}
  .ayg-hero-side{grid-template-columns:1fr}
  .ayg-article{padding:20px 18px}
  .ayg-article-title{font-size:1.5625rem}
  .ayg-article-feature{margin-inline:-18px}
  .ayg-article-content{font-size:1.0625rem}
  .ayg-article-content > p:first-of-type{font-size:1.1875rem}
  .ayg-sec-title{font-size:1.125rem}
  .ayg-topbar .ayg-top-links{display:none}
  .ayg-footer-top{grid-template-columns:1fr}
  .ayg-logo-text{font-size:1.5rem}
}
@media (max-width:420px){
  .ayg-cards,.ayg-cards.cols-3,.ayg-cards.cols-4{grid-template-columns:1fr}
}

/* print */
@media print{
  .ayg-topbar,.ayg-breaking,.ayg-nav,.ayg-header-actions,.ayg-sidebar,.ayg-footer,.ayg-totop,.ayg-share-inline,.ayg-related{display:none!important}
  .ayg-main-layout{grid-template-columns:1fr}
  .ayg-article{border:0;padding:0}
}

/* reduce motion */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}
  .ayg-ticker ul{animation:none}
}

/* ==========================================================================
   Supplementary template styles (header extras, buttons, 404, comments…)
   ========================================================================== */

/* a11y skip link + sr-only (alias) */
.ayg-skip-link{position:absolute;right:-9999px;top:0;background:var(--ayg-red);color:#fff;padding:10px 16px;z-index:9999;border-radius:0 0 6px 0}
.ayg-skip-link:focus{right:0}
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* topbar extras */
.ayg-topbar .ayg-top-right{display:flex;align-items:center;gap:14px}
.ayg-today{font-weight:400}
.ayg-top-menu{display:flex;gap:16px}
.ayg-top-menu a{font-weight:400}

/* generic button */
.ayg-btn{display:inline-flex;align-items:center;gap:8px;background:var(--ayg-red);color:#fff;
  font-family:var(--font-head);font-weight:700;font-size:0.9375rem;padding:11px 22px;border-radius:var(--radius-sm);
  border:0;transition:background .15s ease,transform .15s ease}
.ayg-btn:hover{background:var(--ayg-red-dark);color:#fff;transform:translateY(-2px)}
.ayg-btn svg{width:18px;height:18px}

/* article inline share placement */
.ayg-article-share{margin-inline-start:auto}
.ayg-article-meta .ayg-share-inline{display:flex;gap:8px}
.ayg-share-inline a,.ayg-share-inline .ayg-print{display:inline-flex;align-items:center;justify-content:center;
  width:32px;height:32px;border-radius:50%;background:var(--ayg-bg-alt);border:1px solid var(--ayg-line);color:var(--ayg-muted)}
.ayg-share-inline a:hover,.ayg-share-inline .ayg-print:hover{background:var(--ayg-red);color:#fff;border-color:var(--ayg-red)}
.ayg-share-inline svg{width:15px;height:15px}

/* article tag pills (reuse tagcloud look) */
.ayg-tagcloud-item{background:var(--ayg-bg-alt);border:1px solid var(--ayg-line);padding:6px 12px;border-radius:20px;font-size:0.8125rem;font-weight:400;display:inline-block}
.ayg-tagcloud-item:hover{background:var(--ayg-red);color:#fff;border-color:var(--ayg-red)}

/* video section cards taller */
.ayg-video-section .ayg-ocard{min-height:230px}

/* page content reuses article content typography */
.ayg-page .ayg-article-content > p:first-of-type{font-family:var(--font-body);font-size:1.125rem;color:var(--ayg-body);font-weight:400}

/* search form (inline) */
.ayg-searchform{display:flex;max-width:520px;margin:18px auto;border:1px solid var(--ayg-line);border-radius:var(--radius-sm);overflow:hidden;background:var(--ayg-card)}
.ayg-searchform input{flex:1;border:0;background:transparent;padding:12px 16px;font-family:inherit;color:var(--ayg-ink)}
.ayg-searchform input:focus{outline:none}
.ayg-searchform button{background:var(--ayg-red);color:#fff;border:0;padding:0 18px;display:flex;align-items:center}
.ayg-searchform button:hover{background:var(--ayg-red-dark)}

/* no results / empty state */
.ayg-noresults{text-align:center;background:var(--ayg-card);border:1px solid var(--ayg-line);border-radius:var(--radius);padding:54px 24px;margin-top:24px}
.ayg-noresults-icon{color:var(--ayg-muted);opacity:.5;display:flex;justify-content:center;margin-bottom:14px}
.ayg-noresults h2{font-size:1.5rem;margin-bottom:8px}
.ayg-noresults p{color:var(--ayg-muted);margin:0 0 18px}

/* 404 */
.ayg-404{text-align:center;padding:60px 20px 30px}
.ayg-404-code{font-family:var(--font-head);font-weight:800;font-size:7.5rem;line-height:1;color:var(--ayg-red);letter-spacing:-4px}
.ayg-404 h1{font-size:1.875rem;margin:6px 0 12px}
.ayg-404 p{color:var(--ayg-muted);max-width:520px;margin:0 auto 22px}
.ayg-404 .ayg-btn{margin-top:6px}
.ayg-404-latest{margin-top:50px;text-align:start}

/* comments */
.ayg-comments{background:var(--ayg-card);border:1px solid var(--ayg-line);border-radius:var(--radius);padding:26px 30px}
.ayg-comment-list{margin:0 0 24px}
.ayg-comment-list ol.children{padding-inline-start:28px;margin-top:14px}
.ayg-comment-list li.comment{margin-bottom:18px}
.ayg-comment-list .comment-body{background:var(--ayg-bg-alt);border:1px solid var(--ayg-line);border-radius:var(--radius);padding:16px 18px;position:relative}
.ayg-comment-list .comment-author{display:flex;align-items:center;gap:10px;font-family:var(--font-head);font-weight:700;color:var(--ayg-ink)}
.ayg-comment-list .comment-author img{border-radius:50%}
.ayg-comment-list .comment-author .says{display:none}
.ayg-comment-list .comment-meta{font-size:0.7812rem;color:var(--ayg-muted);margin:4px 0 10px}
.ayg-comment-list .comment-meta a{color:var(--ayg-muted)}
.ayg-comment-list .reply{margin-top:8px;font-size:0.8125rem;font-weight:700}
.ayg-comment-list .reply a{color:var(--ayg-red)}
.ayg-comments-closed{color:var(--ayg-muted);font-size:0.875rem}
.comment-respond{margin-top:10px}
.comment-respond .comment-reply-title{font-family:var(--font-head);font-size:1.25rem;font-weight:800;margin-bottom:14px}
.comment-form label{display:block;font-weight:700;font-size:0.875rem;margin-bottom:6px;color:var(--ayg-ink)}
.comment-form input[type=text],.comment-form input[type=email],.comment-form input[type=url],.comment-form textarea{
  width:100%;padding:11px 14px;border:1px solid var(--ayg-line);border-radius:var(--radius-sm);
  background:var(--ayg-bg);color:var(--ayg-ink);font-family:inherit;margin-bottom:14px}
.comment-form textarea:focus,.comment-form input:focus{outline:none;border-color:var(--ayg-red)}
.comment-form .form-submit{margin:0}

/* footer bottom bar */
.ayg-footer-bottom{border-top:1px solid rgba(255,255,255,.08);padding:18px 0}
.ayg-footer-bottom .ayg-wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.ayg-footer-bottom p{margin:0;font-size:0.8438rem;color:#9aa1ad}
.ayg-footer-menu{display:flex;gap:18px;flex-wrap:wrap}
.ayg-footer-menu a{font-size:0.8438rem;color:#9aa1ad}
.ayg-footer-menu a:hover{color:#fff}

/* mobile menu list */
.ayg-mm-menu{padding:10px 0}
.ayg-mm-menu li a{display:block;padding:13px 22px;border-bottom:1px solid var(--ayg-line);font-family:var(--font-head);font-weight:700;color:var(--ayg-ink)}
.ayg-mm-menu li a:hover{background:var(--ayg-red-soft);color:var(--ayg-red)}
.ayg-mm-menu .sub-menu a{padding-inline-start:38px;font-weight:400;font-size:0.875rem}

/* site content spacing */
.ayg-site-content{padding-bottom:10px}

/* ==========================================================================
   v2 — World-class article components, in-content blocks, header layouts,
   floating breaking bar, control-panel-driven features.
   ========================================================================== */

/* Standfirst / lead paragraph */
.ayg-standfirst{font-family:var(--font-body);font-size:1.25rem;line-height:1.7;color:var(--ayg-body);
  font-weight:400;margin:0 0 18px;padding-inline-start:16px;border-inline-start:4px solid var(--ayg-red)}

/* Article meta: author avatar inline */
.ayg-article-meta{display:flex;align-items:center;flex-wrap:wrap;gap:16px;margin:6px 0 22px;
  padding-bottom:16px;border-bottom:1px solid var(--ayg-line);color:var(--ayg-muted);font-size:0.875rem}
.ayg-article-meta .m{display:inline-flex;align-items:center;gap:6px}
.ayg-article-meta .m svg{color:var(--ayg-red)}
.ayg-article-meta .author img{border-radius:50%;width:34px;height:34px}
.ayg-article-meta .author a{font-family:var(--font-head);font-weight:700;color:var(--ayg-ink)}
.ayg-article-meta .updated{color:var(--ayg-red);font-weight:700}

/* Key takeaways box */
.ayg-takeaways{background:linear-gradient(180deg,var(--ayg-red-soft),transparent);
  border:1px solid var(--ayg-line);border-inline-start:4px solid var(--ayg-gold);
  border-radius:var(--radius);padding:18px 22px;margin:0 0 26px}
.ayg-takeaways h2{font-size:1.125rem;margin:0 0 10px;display:flex;align-items:center;gap:8px}
.ayg-takeaways h2 svg{color:var(--ayg-gold)}
.ayg-takeaways ul{margin:0;padding-inline-start:20px}
.ayg-takeaways li{margin:7px 0;line-height:1.6;font-weight:400}

/* Table of contents */
.ayg-toc{background:var(--ayg-bg-alt);border:1px solid var(--ayg-line);border-radius:var(--radius);
  margin:0 0 26px;overflow:hidden}
.ayg-toc-head{width:100%;display:flex;align-items:center;justify-content:space-between;
  background:transparent;border:0;padding:13px 18px;font-family:var(--font-head);font-weight:700;
  font-size:0.9375rem;color:var(--ayg-ink);cursor:pointer}
.ayg-toc-head span{display:flex;align-items:center;gap:8px}
.ayg-toc-toggle{transition:transform .2s}
.ayg-toc.collapsed .ayg-toc-toggle{transform:rotate(-90deg)}
.ayg-toc-list{margin:0;padding:0 22px 16px;list-style:none;counter-reset:toc}
.ayg-toc.collapsed .ayg-toc-list{display:none}
.ayg-toc-list li{counter-increment:toc;margin:6px 0;line-height:1.5}
.ayg-toc-list li.lvl-h3{padding-inline-start:18px;font-size:0.8438rem}
.ayg-toc-list li:before{content:counter(toc) ". ";color:var(--ayg-red);font-weight:700}
.ayg-toc-list li.lvl-h3:before{content:""}
.ayg-toc-list a{color:var(--ayg-body)}
.ayg-toc-list a:hover,.ayg-toc-list a.active{color:var(--ayg-red);font-weight:700}

/* Sticky social share rail */
.ayg-share-rail{position:sticky;top:120px;float:inline-start;display:flex;flex-direction:column;gap:8px;
  margin-inline-start:-72px;width:48px}
.ayg-share-rail a,.ayg-share-rail button{width:44px;height:44px;border-radius:50%;display:flex;
  align-items:center;justify-content:center;border:1px solid var(--ayg-line);background:var(--ayg-card);
  color:var(--ayg-muted);cursor:pointer;transition:.15s}
.ayg-share-rail a:hover,.ayg-share-rail button:hover{transform:translateY(-2px);color:#fff}
.ayg-share-rail .s-fb:hover{background:#1877f2;border-color:#1877f2}
.ayg-share-rail .s-tw:hover{background:#000;border-color:#000}
.ayg-share-rail .s-wa:hover{background:#25d366;border-color:#25d366}
.ayg-share-rail .s-tg:hover{background:#229ed9;border-color:#229ed9}
.ayg-share-rail .s-copy:hover{background:var(--ayg-red);border-color:var(--ayg-red)}
.ayg-share-rail .s-copy.copied{background:#0e8a5f;border-color:#0e8a5f;color:#fff}
@media(max-width:1100px){
  .ayg-share-rail{position:static;float:none;flex-direction:row;width:auto;margin:0 0 20px}
}

/* In-content "read also" */
.ayg-inline-related{background:var(--ayg-bg-alt);border:1px solid var(--ayg-line);
  border-inline-start:4px solid var(--ayg-red);border-radius:12px;padding:12px 16px;margin:22px 0}
.ayg-ir-label{display:inline-flex;font-family:var(--font-head);font-weight:800;color:var(--ayg-red);
  font-size:0.8125rem;letter-spacing:.5px;margin-bottom:10px;text-transform:uppercase}
.ayg-ir-items{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.ayg-ir-item{display:flex;gap:10px;align-items:center}
.ayg-ir-thumb img{width:64px;height:48px;object-fit:cover;border-radius:6px;flex-shrink:0}
.ayg-ir-title{font-family:var(--font-head);font-weight:700;font-size:0.9062rem;line-height:1.4;color:var(--ayg-ink)}
.ayg-ir-item:hover .ayg-ir-title{color:var(--ayg-red)}
@media(max-width:560px){.ayg-ir-items{grid-template-columns:1fr}}

/* FAQ */
.ayg-faq{margin:30px 0}
.ayg-faq>h2{font-size:1.375rem;margin-bottom:14px;padding-inline-start:14px;border-inline-start:4px solid var(--ayg-red)}
.ayg-faq-item{border:1px solid var(--ayg-line);border-radius:8px;margin-bottom:10px;background:var(--ayg-card);overflow:hidden}
.ayg-faq-item summary{cursor:pointer;padding:14px 18px;font-family:var(--font-head);font-weight:700;
  font-size:1rem;color:var(--ayg-ink);list-style:none;display:flex;justify-content:space-between;align-items:center}
.ayg-faq-item summary::-webkit-details-marker{display:none}
.ayg-faq-item summary:after{content:"+";font-size:1.375rem;color:var(--ayg-red);font-weight:400}
.ayg-faq-item[open] summary:after{content:"\2212"}
.ayg-faq-a{padding:0 18px 16px;color:var(--ayg-body);line-height:1.8}

/* Article share row + author box + post nav */
.ayg-article-share-row{display:flex;align-items:center;gap:12px;margin:24px 0;padding:14px 0;
  border-block:1px solid var(--ayg-line);font-family:var(--font-head);font-weight:700}
.ayg-author-box{display:flex;gap:16px;background:var(--ayg-bg-alt);border:1px solid var(--ayg-line);
  border-radius:var(--radius);padding:20px;margin:24px 0}
.ayg-author-box img{border-radius:50%;width:76px;height:76px;flex-shrink:0}
.ayg-author-box .ayg-ab-by{font-size:0.75rem;color:var(--ayg-muted)}
.ayg-author-box h3{margin:2px 0 6px;font-size:1.1875rem}
.ayg-author-box p{margin:0;color:var(--ayg-body);line-height:1.7;font-size:0.9062rem}
.ayg-postnav{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:26px 0}
.ayg-pn{display:flex;flex-direction:column;gap:4px;background:var(--ayg-card);border:1px solid var(--ayg-line);
  border-radius:var(--radius);padding:14px 18px}
.ayg-pn .d{font-size:0.75rem;color:var(--ayg-red);font-weight:700}
.ayg-pn .t{font-family:var(--font-head);font-weight:700;color:var(--ayg-ink);line-height:1.4}
.ayg-pn.next{text-align:start}.ayg-pn.prev{text-align:end}
.ayg-pn:hover{border-color:var(--ayg-red)}
@media(max-width:560px){.ayg-postnav{grid-template-columns:1fr}}

/* Ad slot label */
.ayg-ad-slot{margin:22px 0;text-align:center;position:relative}
.ayg-ad-label{display:block;font-size:0.625rem;letter-spacing:1px;color:var(--ayg-muted);text-transform:uppercase;margin-bottom:4px}

/* Floating breaking bar */
.ayg-float-breaking{position:fixed;inset-inline:0;bottom:0;z-index:900;display:flex;align-items:center;
  background:var(--ayg-red);color:#fff;box-shadow:0 -4px 20px rgba(0,0,0,.25);min-height:54px}
.ayg-fb-label{display:flex;align-items:center;gap:8px;font-family:var(--font-head);font-weight:800;
  font-size:0.9375rem;padding-inline-start:18px;flex-shrink:0}
.ayg-fb-label .dot{width:9px;height:9px;border-radius:50%;background:#fff;animation:ayg-blink 1.2s infinite}
@keyframes ayg-blink{50%{opacity:.25}}
.ayg-fb-arrow{flex-shrink:0;opacity:.85;font-size:0.6875rem;padding-inline:6px}
.ayg-fb-rotator{flex:1;position:relative;min-width:0;height:24px;overflow:hidden}
.ayg-fb-item{position:absolute;inset-inline-start:0;top:0;width:100%;color:#fff;font-family:var(--font-head);
  font-weight:700;font-size:0.9688rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  opacity:0;transition:opacity .35s;pointer-events:none}
.ayg-fb-item.active{opacity:1;pointer-events:auto}
.ayg-fb-item:hover{text-decoration:underline}
.ayg-fb-close{background:rgba(255,255,255,.15);border:0;color:#fff;font-size:1.25rem;line-height:1;width:34px;height:34px;
  border-radius:50%;margin-inline:12px;cursor:pointer;flex-shrink:0;transition:background .15s}
.ayg-fb-close:hover{background:rgba(255,255,255,.3)}
@media(max-width:600px){.ayg-fb-label{font-size:0.8125rem;padding-inline-start:12px}.ayg-fb-item{font-size:0.8438rem}}

/* Header layout variants */
.ayg-header.layout-centered .ayg-header-main{grid-template-columns:1fr;text-align:center;justify-items:center}
.ayg-header.layout-centered .ayg-header-ad{display:none}
.ayg-header.layout-centered .ayg-header-actions{position:absolute;inset-inline-start:20px;top:24px}
.ayg-header.layout-compact{padding:0}
.ayg-header.layout-compact .ayg-header-main{padding-block:10px}
.ayg-header.layout-compact .ayg-logo-tag{display:none}
.ayg-header.layout-compact .ayg-header-ad{display:none}
.ayg-header.layout-split .ayg-header-main{grid-template-columns:auto 1fr auto}
.ayg-nav.no-sticky{position:static}

/* Keep content/back-to-top clear of the fixed floating breaking bar */
body:has(.ayg-float-breaking) .ayg-footer-bottom{padding-bottom:58px}
body:has(.ayg-float-breaking) .ayg-totop{bottom:66px}

/* ==========================================================================
   v3 — Typography options, announcement, cookie, card styles, polish
   ========================================================================== */

/* Drop cap (optional) */
body.ayg-dropcap .ayg-article-content > p:first-of-type::first-letter{
  font-family:var(--font-head);font-weight:800;font-size:3.4em;line-height:.8;
  float:inline-start;margin-inline-end:10px;margin-top:6px;color:var(--ayg-red)}

/* Announcement bar */
.ayg-announce{background:var(--ayg-gold);color:#1a1205;text-align:center;font-weight:700;
  font-family:var(--font-head);font-size:0.875rem;padding:8px 16px}
.ayg-announce a{color:#1a1205;text-decoration:underline}

/* Cookie notice */
.ayg-cookie{position:fixed;inset-inline:16px;bottom:16px;z-index:950;max-width:520px;margin-inline:auto;
  background:var(--ayg-ink);color:#fff;border-radius:12px;padding:16px 20px;display:flex;gap:14px;
  align-items:center;box-shadow:0 8px 30px rgba(0,0,0,.3)}
.ayg-cookie p{margin:0;font-size:0.875rem;flex:1;line-height:1.6}
.ayg-cookie-ok{background:var(--ayg-red);color:#fff;border:0;border-radius:8px;padding:9px 20px;
  font-family:var(--font-head);font-weight:700;cursor:pointer;flex-shrink:0}
.ayg-cookie-ok:hover{background:var(--ayg-red-dark)}

/* Inline related — single elegant variant */
/* v51 — Polished in-content "read also" card */
.ayg-inline-related{background:linear-gradient(135deg,var(--ayg-red-soft),transparent 70%);
  border:1px solid var(--ayg-line);border-inline-start:4px solid var(--ayg-red);
  border-radius:14px;padding:14px 18px;margin:26px 0;box-shadow:0 2px 10px rgba(0,0,0,.04)}
.ayg-inline-related .ayg-ir-label{display:flex;align-items:center;gap:6px;font-family:var(--font-head);
  font-weight:800;color:var(--ayg-red);font-size:.78rem;letter-spacing:.3px;margin:0 0 10px;
  text-transform:uppercase}
.ayg-inline-related .ayg-ir-label::before{content:"";width:18px;height:2px;background:var(--ayg-red);border-radius:2px;flex-shrink:0}
.ayg-inline-related .ayg-ir-item.single{display:flex;gap:14px;align-items:center;margin:0;transition:transform .15s}
.ayg-inline-related .ayg-ir-item.single:hover{transform:translateX(-4px)}
.ayg-inline-related .ayg-ir-item.single .ayg-ir-thumb{flex:0 0 96px;width:96px;height:64px;overflow:hidden;border-radius:10px}
.ayg-inline-related .ayg-ir-item.single .ayg-ir-thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s}
.ayg-inline-related .ayg-ir-item.single:hover .ayg-ir-thumb img{transform:scale(1.07)}
.ayg-inline-related .ayg-ir-item.single .ayg-ir-title{flex:1;min-width:0;font-size:1rem;font-weight:800;line-height:1.5;color:var(--ayg-ink);margin:0;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ayg-inline-related .ayg-ir-item.single:hover .ayg-ir-title{color:var(--ayg-red)}
html[data-theme="dark"] .ayg-inline-related{background:linear-gradient(135deg,rgba(200,16,46,.12),transparent 70%);border-color:var(--ayg-line)}
@media(max-width:560px){
  .ayg-inline-related .ayg-ir-item.single .ayg-ir-thumb{flex:0 0 80px;width:80px;height:56px}
  .ayg-inline-related .ayg-ir-item.single .ayg-ir-title{font-size:.92rem}
}

/* Card styles (body-class driven) */
body.ayg-cards-minimal .ayg-card{border:0;box-shadow:none;background:transparent}
body.ayg-cards-minimal .ayg-card .ayg-card-body{padding-inline:0}
body.ayg-cards-bordered .ayg-card{border:1px solid var(--ayg-line);box-shadow:none}

/* Nav polish toward an eremnews-style bar */
.ayg-nav .ayg-menu > li > a{position:relative}
.ayg-nav .ayg-menu > li > a::after{content:"";position:absolute;inset-inline:12px;bottom:0;height:3px;
  background:var(--ayg-red);transform:scaleX(0);transition:transform .18s}
.ayg-nav .ayg-menu > li:hover > a::after,.ayg-nav .ayg-menu > li.current-menu-item > a::after{transform:scaleX(1)}

/* Standfirst tweaks in dark mode */
html[data-theme="dark"] .ayg-takeaways{background:linear-gradient(180deg,rgba(200,16,46,.12),transparent)}

/* ==========================================================================
   v4 — Bugfixes (hidden), professional article typography, Eram-style header
   ========================================================================== */

/* FIX: [hidden] must win over display:flex/grid (cookie + toc close) */
.ayg-cookie[hidden],.ayg-toc[hidden],[hidden]{display:none !important}

/* ---------- Professional article content typography ---------- */
.ayg-article-content{font-family:var(--font-body);font-size:1.1562rem;line-height:2;color:var(--ayg-body)}
.ayg-article-content > p{margin:0 0 22px}
.ayg-article-content h2,.ayg-article-content h3,.ayg-article-content h4{
  font-family:var(--font-head);color:var(--ayg-ink);line-height:1.4;scroll-margin-top:120px;font-weight:800}
.ayg-article-content h2{font-size:1.625rem;margin:38px 0 14px;padding-inline-start:14px;border-inline-start:5px solid var(--ayg-red)}
.ayg-article-content h3{font-size:1.3125rem;margin:30px 0 12px}
.ayg-article-content h4{font-size:1.125rem;margin:24px 0 10px}
.ayg-article-content a{color:var(--ayg-red);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.ayg-article-content a:hover{color:var(--ayg-red-dark)}
.ayg-article-content ul,.ayg-article-content ol{margin:0 0 22px;padding-inline-start:26px}
.ayg-article-content li{margin:9px 0;line-height:1.85}
.ayg-article-content ul li::marker{color:var(--ayg-red)}
.ayg-article-content ol li::marker{color:var(--ayg-red);font-weight:700}
.ayg-article-content blockquote{margin:26px 0;padding:18px 22px;background:var(--ayg-bg-alt);
  border-inline-start:4px solid var(--ayg-gold);border-radius:0 10px 10px 0;font-family:var(--font-body);font-weight:700;
  font-size:1.25rem;line-height:1.8;color:var(--ayg-ink);position:relative}
.ayg-article-content blockquote p:last-child{margin-bottom:0}
.ayg-article-content img{max-width:100%;height:auto;border-radius:10px}
.ayg-article-content figure{margin:26px 0}
.ayg-article-content figure img{width:100%}
.ayg-article-content figcaption{text-align:center;font-size:0.8438rem;color:var(--ayg-muted);margin-top:8px;font-family:var(--font-head)}
.ayg-article-content .wp-block-image{margin:26px 0}
.ayg-article-content hr{border:0;height:1px;background:var(--ayg-line);margin:34px 0}
.ayg-article-content table{width:100%;border-collapse:collapse;margin:24px 0;font-size:0.9688rem;overflow:hidden;border-radius:10px}
.ayg-article-content th,.ayg-article-content td{border:1px solid var(--ayg-line);padding:11px 14px;text-align:start}
.ayg-article-content thead th{background:var(--ayg-red);color:#fff;font-family:var(--font-head)}
.ayg-article-content tbody tr:nth-child(even){background:var(--ayg-bg-alt)}
.ayg-article-content code{background:var(--ayg-bg-alt);padding:2px 7px;border-radius:5px;font-size:.9em;direction:ltr;display:inline-block}
.ayg-article-content pre{background:var(--ayg-ink);color:#f3f4f6;padding:18px;border-radius:10px;overflow:auto;direction:ltr;margin:24px 0}
.ayg-article-content pre code{background:transparent;color:inherit;padding:0}
.ayg-article-content .wp-block-pullquote,.ayg-article-content .wp-block-quote{margin:26px 0}
.ayg-article-content iframe{max-width:100%;border-radius:10px;margin:24px 0}
.ayg-article-content .wp-caption{max-width:100%}
.ayg-article-content > *:first-child{margin-top:0}

/* ---------- Eram-style inline header (logo beside sections) ---------- */
.ayg-header.layout-inline .ayg-header-main{display:flex;align-items:center;gap:24px;flex-wrap:nowrap}
.ayg-header.layout-inline .ayg-logo{flex-shrink:0}
.ayg-header.layout-inline .ayg-header-ad{display:none}
.ayg-header.layout-inline .ayg-inline-nav{flex:1;display:flex;align-items:center;overflow:hidden}
.ayg-header.layout-inline .ayg-inline-nav .ayg-menu{display:flex;gap:4px;align-items:center;margin:0;list-style:none;flex-wrap:nowrap}
.ayg-header.layout-inline .ayg-inline-nav .ayg-menu > li > a{display:block;padding:10px 14px;font-family:var(--font-head);
  font-weight:700;font-size:1rem;color:var(--ayg-ink);white-space:nowrap}
.ayg-header.layout-inline .ayg-inline-nav .ayg-menu > li > a:hover,
.ayg-header.layout-inline .ayg-inline-nav .ayg-menu > li.current-menu-item > a{color:var(--ayg-red)}
.ayg-header.layout-inline .ayg-inline-nav .ayg-menu .sub-menu{position:absolute;background:var(--ayg-card);
  min-width:200px;box-shadow:0 12px 30px rgba(0,0,0,.12);border-radius:0 0 10px 10px;padding:6px 0;z-index:60;
  display:none;border-top:3px solid var(--ayg-red)}
.ayg-header.layout-inline .ayg-inline-nav .ayg-menu li{position:relative}
.ayg-header.layout-inline .ayg-inline-nav .ayg-menu li:hover > .sub-menu{display:block}
.ayg-header.layout-inline .ayg-inline-nav .ayg-menu .sub-menu a{display:block;padding:10px 18px;color:var(--ayg-body);font-weight:700;font-size:0.9062rem}
.ayg-header.layout-inline .ayg-inline-nav .ayg-menu .sub-menu a:hover{background:var(--ayg-red-soft);color:var(--ayg-red)}
.ayg-header.layout-inline .ayg-header-actions{flex-shrink:0;margin-inline-start:auto}
/* On inline layout the separate sticky nav bar is hidden on desktop */
@media(min-width:901px){ body .ayg-header.layout-inline + .ayg-nav{display:none} }
@media(max-width:900px){ .ayg-header.layout-inline .ayg-inline-nav{display:none} }

/* ==========================================================================
   v5 — Article tools bar, custom title badge, TTS highlight, a11y contrast
   ========================================================================== */

/* Article tools bar (listen / font size / print) */
.ayg-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 22px;padding:10px 14px;
  background:var(--ayg-bg-alt);border:1px solid var(--ayg-line);border-radius:12px}
.ayg-tool{display:inline-flex;align-items:center;gap:7px;background:var(--ayg-card);border:1px solid var(--ayg-line);
  color:var(--ayg-ink);font-family:var(--font-head);font-weight:700;font-size:0.875rem;padding:8px 14px;
  border-radius:8px;cursor:pointer;transition:.15s;min-height:38px}
.ayg-tool:hover{border-color:var(--ayg-red);color:var(--ayg-red)}
.ayg-tool svg{width:16px;height:16px}
.ayg-tool-group{display:flex;gap:6px}
.ayg-tool-listen.active{background:var(--ayg-red);color:#fff;border-color:var(--ayg-red)}
.ayg-tool-listen.active svg{fill:#fff}
/* TTS currently-reading paragraph highlight */
.ayg-article-content .ayg-reading{background:linear-gradient(transparent 60%,var(--ayg-gold-soft,#fbe6c4) 0);
  border-radius:4px;transition:background .2s}
html[data-theme="dark"] .ayg-article-content .ayg-reading{background:rgba(200,148,27,.22)}

/* Custom title badge (clean, never breaks the title) */
.ayg-cbadge{display:inline-block;vertical-align:middle;background:var(--ayg-red);color:#fff;
  font-family:var(--font-head);font-weight:800;font-size:.62em;line-height:1;padding:.32em .6em;
  border-radius:5px;margin-inline-end:.4em;white-space:nowrap;letter-spacing:.3px;
  transform:translateY(-1px)}
.ayg-card-title .ayg-cbadge,.ayg-list-title .ayg-cbadge{font-size:0.6875rem}
.ayg-article-title .ayg-cbadge{font-size:0.9375rem;padding:.35em .7em}

/* A11y: stronger contrast for category badges + footer/links */
.ayg-cat-badge,.ayg-category-badge{color:#fff !important;text-shadow:0 1px 1px rgba(0,0,0,.25)}
.ayg-footer a:hover,.ayg-footer li a:hover{color:#fff}
:root{--ayg-muted:#5c636e} /* darker muted for WCAG AA on white */

/* Print: hide chrome, clean article */
@media print{
  .ayg-tools,.ayg-share-rail,.ayg-toc,.ayg-related,.ayg-comments,.ayg-postnav,.ayg-float-breaking,
  .ayg-cookie,.ayg-totop,.ayg-progress,.ayg-sidebar,.ayg-nav,.ayg-topbar,.ayg-breaking,.ayg-header-actions{display:none !important}
  .ayg-main-layout{grid-template-columns:1fr}
  .ayg-article-content{font-size:13pt;color:#000}
}

/* ==========================================================================
   v6 — Bold lede, refined tables/lists, dark-mode article safety
   ========================================================================== */

/* Bold first paragraph (lede / standfirst look) */
body.ayg-lede .ayg-article-content > p:first-of-type{
  font-weight:700;font-size:1.25rem;line-height:1.9;color:var(--ayg-ink)}
body.ayg-lede.ayg-dropcap .ayg-article-content > p:first-of-type{font-weight:700}

/* Responsive, refined tables */
.ayg-article-content .ayg-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:24px 0;
  border:1px solid var(--ayg-line);border-radius:12px}
.ayg-article-content .ayg-table-wrap table{margin:0;border:0;border-radius:0;min-width:520px}
.ayg-article-content table{border-collapse:separate;border-spacing:0}
.ayg-article-content thead th{position:sticky;top:0}
.ayg-article-content tbody td{border-top:0}

/* Refined bullet / numbered lists (news style) */
.ayg-article-content ul{list-style:none;padding-inline-start:6px}
.ayg-article-content ul > li{position:relative;padding-inline-start:26px}
.ayg-article-content ul > li::before{content:"";position:absolute;inset-inline-start:4px;top:.7em;
  width:9px;height:9px;border-radius:50%;background:var(--ayg-red)}
.ayg-article-content ol{counter-reset:ayglist;list-style:none;padding-inline-start:6px}
.ayg-article-content ol > li{position:relative;padding-inline-start:38px;counter-increment:ayglist;margin:12px 0}
.ayg-article-content ol > li::before{content:counter(ayglist);position:absolute;inset-inline-start:0;top:.1em;
  width:26px;height:26px;border-radius:50%;background:var(--ayg-red);color:#fff;
  font-family:var(--font-head);font-weight:800;font-size:0.8125rem;display:flex;align-items:center;justify-content:center}

/* Dark-mode article safety (ensure light text regardless of panel overrides) */
html[data-theme="dark"] .ayg-article-content,
html[data-theme="dark"] .ayg-article-title,
html[data-theme="dark"] .ayg-card-title a,
html[data-theme="dark"] .ayg-list-title a{color:var(--ayg-ink)}
html[data-theme="dark"] .ayg-article-content{color:var(--ayg-body)}
html[data-theme="dark"] .ayg-card,html[data-theme="dark"] .ayg-list-item{background:var(--ayg-card)}

/* ==========================================================================
   v7 — Live blog (مباشر) badge + live updates panel
   ========================================================================== */
.ayg-cbadge-live{background:#e0142d !important;display:inline-flex;align-items:center;gap:5px}
.ayg-cbadge-live .d{width:7px;height:7px;border-radius:50%;background:#fff;animation:ayg-blink 1s infinite}

.ayg-live{border:1px solid var(--ayg-line);border-radius:14px;overflow:hidden;margin:0 0 26px;background:var(--ayg-card)}
.ayg-live-head{display:flex;align-items:center;gap:9px;background:#e0142d;color:#fff;
  font-family:var(--font-head);font-weight:800;padding:11px 18px}
.ayg-live-head time{margin-inline-start:auto;font-weight:700;font-size:0.8125rem;opacity:.9}
.ayg-live-dot{width:10px;height:10px;border-radius:50%;background:#fff;animation:ayg-blink 1s infinite}
.ayg-live-list{margin:0;padding:6px 0;list-style:none;max-height:420px;overflow:auto}
.ayg-live-list li{display:flex;gap:12px;padding:13px 18px;border-bottom:1px solid var(--ayg-line)}
.ayg-live-list li:last-child{border-bottom:0}
.ayg-live-list .t{flex-shrink:0;font-family:var(--font-head);font-weight:800;color:#e0142d;
  background:var(--ayg-bg-alt);border-radius:6px;padding:3px 9px;height:fit-content;font-size:0.8125rem}
.ayg-live-list .x{line-height:1.7;color:var(--ayg-body)}

/* ==========================================================================
   v8 — Reader star rating widget
   ========================================================================== */
.ayg-rate{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:22px 0;padding:16px 20px;
  background:var(--ayg-bg-alt);border:1px solid var(--ayg-line);border-radius:14px}
.ayg-rate-q{font-family:var(--font-head);font-weight:800;color:var(--ayg-ink)}
.ayg-stars{display:inline-flex;gap:3px}
.ayg-star{background:none;border:0;padding:2px;cursor:pointer;line-height:0;color:#cfd3d8;transition:.12s}
.ayg-star svg{fill:currentColor}
.ayg-star:hover,.ayg-star.on{color:var(--ayg-gold);transform:scale(1.08)}
.ayg-rate.ayg-rated .ayg-star{cursor:default}
.ayg-rate-meta{margin-inline-start:auto;font-family:var(--font-head);color:var(--ayg-ink)}
.ayg-rate-avg{font-size:1.25rem;color:var(--ayg-gold)}
.ayg-rate-count{color:var(--ayg-muted);font-size:0.8125rem;font-weight:700}

/* ==========================================================================
   v9 — Reading modes, sticky sidebar, homepage & layout polish
   ========================================================================== */

/* Image lightbox */
.ayg-lightbox{position:fixed;inset:0;z-index:1000;background:rgba(10,12,16,.92);
  display:none;align-items:center;justify-content:center;padding:30px;cursor:zoom-out}
.ayg-lightbox.open{display:flex;animation:aygfade .15s}
.ayg-lightbox img{max-width:95vw;max-height:90vh;border-radius:8px;box-shadow:0 20px 60px rgba(0,0,0,.5)}
.ayg-lb-close{position:absolute;top:18px;inset-inline-end:22px;background:none;border:0;color:#fff;font-size:2.375rem;line-height:1;cursor:pointer}
@keyframes aygfade{from{opacity:0}to{opacity:1}}

/* Focus mode */
body.ayg-focus .ayg-sidebar,body.ayg-focus .ayg-breaking,body.ayg-focus .ayg-header-ad,
body.ayg-focus .ayg-related,body.ayg-focus .ayg-float-breaking,body.ayg-focus .ayg-ad-slot,
body.ayg-focus .ayg-postnav{display:none !important}
body.ayg-focus .ayg-main-layout{grid-template-columns:1fr;max-width:780px;margin-inline:auto}
body.ayg-focus .ayg-article-content{font-size:1.25rem;line-height:2.1}
.ayg-tool-focus.active{background:var(--ayg-ink);color:#fff;border-color:var(--ayg-ink)}

/* Sticky sidebar (keeps widgets in view → longer dwell time) */
@media(min-width:981px){
  .ayg-main-layout{align-items:start}
  .ayg-sidebar{position:sticky;top:86px;align-self:start;max-height:calc(100vh - 100px);overflow-y:auto;
    scrollbar-width:thin;padding-bottom:20px}
  .ayg-sidebar::-webkit-scrollbar{width:6px}
  .ayg-sidebar::-webkit-scrollbar-thumb{background:var(--ayg-line);border-radius:6px}
}

/* ---- Homepage: cleaner distribution & consistent imagery ---- */
.ayg-hero{gap:16px}
.ayg-hero-main{min-height:420px}
.ayg-hero-main img,.ayg-hero-sub img{width:100%;height:100%;object-fit:cover}
.ayg-hero-main .ayg-hero-body h2{font-size:1.875rem;line-height:1.35;text-shadow:0 2px 12px rgba(0,0,0,.6)}
.ayg-hero-sub{min-height:200px}
.ayg-section{margin:30px 0}
.ayg-cards.cols-4{grid-template-columns:repeat(4,1fr)}
.ayg-card{display:flex;flex-direction:column;border:1px solid var(--ayg-line);border-radius:14px;overflow:hidden;
  background:var(--ayg-card);transition:transform .18s,box-shadow .18s}
.ayg-card:hover{transform:translateY(-4px);box-shadow:var(--ayg-shadow-lg,0 12px 32px rgba(0,0,0,.12))}
.ayg-card-thumb{position:relative;display:block;overflow:hidden;aspect-ratio:16/10}
.ayg-card-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.ayg-card:hover .ayg-card-thumb img{transform:scale(1.05)}
.ayg-card-body{padding:14px 16px 18px;display:flex;flex-direction:column;gap:8px;flex:1}
.ayg-card-title{font-size:1.0625rem;line-height:1.5;margin:0}
.ayg-card-title a{color:var(--ayg-ink)}
.ayg-card:hover .ayg-card-title a{color:var(--ayg-red)}
.ayg-card-meta{margin-top:auto;font-size:0.7812rem;color:var(--ayg-muted)}
@media(max-width:980px){
  .ayg-hero{grid-template-columns:1fr}
  .ayg-hero-main{min-height:300px}
  .ayg-cards,.ayg-cards.cols-4{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:560px){
  .ayg-cards,.ayg-cards.cols-4{grid-template-columns:1fr}
  .ayg-hero-main .ayg-hero-body h2{font-size:1.4375rem}
}

/* Section header polish */
.ayg-section-header,.ayg-sec-head{display:flex;align-items:center;justify-content:space-between;
  margin-bottom:18px;border-bottom:2px solid var(--ayg-line);padding-bottom:10px}
.ayg-section-header h2,.ayg-sec-title{position:relative;font-size:1.375rem;font-weight:800;padding-bottom:10px;margin:0}
.ayg-section-header h2::after,.ayg-sec-title::after{content:"";position:absolute;inset-inline-start:0;bottom:-12px;
  width:60px;height:3px;background:var(--ayg-red)}

/* Article column readability width */
.ayg-article{max-width:none}
.ayg-article-content{max-width:760px}
.ayg-article-feature{margin:0 0 22px;border-radius:14px;overflow:hidden}

.ayg-card-excerpt{flex:1;margin:0;color:var(--ayg-muted);font-size:0.875rem;line-height:1.6}

/* Posts widget (thumbnails) */
.ayg-wposts{display:flex;flex-direction:column;gap:14px}
.ayg-wpost{display:flex;gap:12px;align-items:flex-start;min-width:0}
.ayg-wpost-thumb{flex-shrink:0;width:84px;aspect-ratio:4/3;border-radius:8px;overflow:hidden;display:block}
.ayg-wpost-thumb img{width:100%;height:100%;object-fit:cover}
.ayg-wpost-body h4{margin:0 0 4px;font-size:0.9062rem;line-height:1.5;font-family:var(--font-head)}
.ayg-wpost-body h4 a{color:var(--ayg-ink)}
.ayg-wpost-body h4 a:hover{color:var(--ayg-red)}
.ayg-wpost-date{font-size:0.75rem;color:var(--ayg-muted)}

/* ==========================================================================
   v10 — Homepage section layouts (list / lead)
   ========================================================================== */
.ayg-lead-row{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:24px}
.ayg-lead-main .ayg-card-thumb{display:block;aspect-ratio:16/9;border-radius:14px;overflow:hidden;margin-bottom:12px}
.ayg-lead-main .ayg-card-thumb img{width:100%;height:100%;object-fit:cover}
.ayg-lead-main .ayg-card-title{font-size:1.375rem;line-height:1.4}
.ayg-lead-list{display:flex;flex-direction:column;gap:14px;min-width:0}
@media(max-width:980px){.ayg-clist,.ayg-lead-row{grid-template-columns:1fr}}

/* ==========================================================================
   v11 — Nav chips, professional archive header, mega menu
   ========================================================================== */

/* Manual nav chips beside the logo */
.ayg-chips{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.ayg-chip{display:inline-flex;align-items:center;gap:6px;font-family:var(--font-head);font-weight:800;
  font-size:0.8125rem;line-height:1;padding:8px 14px;border-radius:999px;white-space:nowrap;
  box-shadow:0 2px 8px rgba(0,0,0,.08);transition:transform .15s}
.ayg-chip:hover{transform:translateY(-2px)}
@media(max-width:680px){
  .ayg-chips{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%;
    padding-bottom:4px;scrollbar-width:none}
  .ayg-chips::-webkit-scrollbar{display:none}
}

/* Professional archive / category header */
.ayg-arch-head{background:linear-gradient(135deg,var(--ayg-ink),#23262d);color:#fff;
  padding:34px 0;margin-bottom:26px;position:relative;overflow:hidden}
.ayg-arch-head::before{content:"";position:absolute;inset-inline-start:0;top:0;bottom:0;width:6px;background:var(--ayg-red)}
.ayg-arch-head > *{max-width:1240px;margin-inline:auto;padding-inline:16px}
.ayg-arch-head h1{font-family:var(--font-head);font-weight:800;font-size:2rem;margin:0 0 8px;color:#fff}
.ayg-arch-head p{margin:0;color:#c9cdd5;max-width:760px;line-height:1.8}
.ayg-arch-head .count{display:inline-block;margin-top:12px;background:var(--ayg-red);color:#fff;
  font-family:var(--font-head);font-weight:700;font-size:0.8125rem;padding:5px 14px;border-radius:999px}
html[data-theme="dark"] .ayg-arch-head{background:linear-gradient(135deg,#0a0c10,#15171c)}

/* Mega menu — wide multi-column dropdown for sections with many links */
@media(min-width:901px){
  body.ayg-mega-on .ayg-nav .ayg-menu > li.menu-item-has-children:hover > .sub-menu{
    display:grid;grid-template-columns:repeat(2,minmax(190px,1fr));gap:2px;min-width:420px;padding:10px}
  body.ayg-mega-on .ayg-header.layout-inline .ayg-inline-nav .ayg-menu > li.menu-item-has-children:hover > .sub-menu{
    display:grid;grid-template-columns:repeat(2,minmax(190px,1fr));gap:2px;min-width:420px;padding:10px}
}

/* ==========================================================================
   v12 — Featured caption/credit, mobile overflow guard & responsiveness
   ========================================================================== */

/* Featured image caption (start) + source credit (end) */
.ayg-article-feature{position:relative}
.ayg-feat-cap{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;
  font-size:0.8125rem;color:var(--ayg-muted);padding:8px 4px 0;font-family:var(--font-head)}
.ayg-feat-cap-text{font-weight:700;color:var(--ayg-body)}
.ayg-feat-credit{margin-inline-start:auto;background:var(--ayg-bg-alt);border:1px solid var(--ayg-line);
  padding:3px 10px;border-radius:6px;font-size:0.75rem;white-space:nowrap}
.ayg-feat-credit::before{content:"📷 ";opacity:.7}

/* ---- Overflow guard that does NOT break position:sticky ----
   (overflow-x on html/body breaks sticky header & sidebar, so we clip the
   page wrapper instead and just cap media widths.) */
img,svg,video,iframe,table,pre{max-width:100%}
.ayg-wrap{width:100%;box-sizing:border-box}
.ayg-article-content,.ayg-card-title,.ayg-list-title,.ayg-article-title{overflow-wrap:break-word;word-wrap:break-word}

/* Chips sit at the END (left in RTL) of the nav bar, independent of the logo */
.ayg-nav .ayg-wrap .ayg-chips{margin-inline-start:auto}
.ayg-nav .ayg-chips .ayg-chip{box-shadow:none}

/* ---- Mobile header: keep the same masthead (logo + actions) ---- */
@media (max-width:900px){
  .ayg-header-main{flex-wrap:wrap;gap:12px;min-height:0;padding-block:12px}
  .ayg-logo{flex:1 1 auto}
  .ayg-logo-text{font-size:1.625rem}
  .ayg-header-actions{flex:0 0 auto;gap:8px}
  /* Hide the secondary dark nav bar on mobile — use the hamburger menu */
  .ayg-nav{display:none}
}
@media (max-width:680px){
  .ayg-article-feature{margin-inline:0;border-radius:12px}
  .ayg-tools{gap:8px;padding:8px 10px}
  .ayg-tool{padding:7px 11px;font-size:0.8125rem}
  .ayg-live-list li{padding:11px 14px}
  .ayg-table-wrap{margin-inline:0}
}

/* ==========================================================================
   v13 — CRITICAL responsiveness: tables/images never break the layout
   ========================================================================== */

/* ROOT FIX: grid/flex children must be allowed to shrink (min-width:0),
   otherwise a wide table/image expands the column and shifts the page. */
.ayg-main-layout > *,
.ayg-main,
.ayg-article,
.ayg-article-content{min-width:0}
.ayg-article{overflow:hidden}

/* Tables: scroll inside their own box, never push the article sideways */
.ayg-article-content table{display:block;width:100%;max-width:100%;overflow-x:auto;
  -webkit-overflow-scrolling:touch;border-collapse:collapse;white-space:normal}
.ayg-article-content .ayg-table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.ayg-article-content .ayg-table-wrap table{display:table;min-width:540px}

/* Images / figures / embeds: never exceed the column */
.ayg-article-content img,
.ayg-article-content figure,
.ayg-article-content .wp-caption,
.ayg-article-content .wp-block-image,
.ayg-article-content iframe,
.ayg-article-content video,
.ayg-article-content embed,
.ayg-article-content object{max-width:100% !important;height:auto;box-sizing:border-box}
.ayg-article-content figure{margin-inline:auto}
.ayg-article-content iframe{width:100%}

/* Long words / URLs break instead of overflowing */
.ayg-article-content,.ayg-article-content p,.ayg-article-content li,.ayg-article-content a{
  overflow-wrap:break-word;word-wrap:break-word}

/* Lede: SAME size as body, only bold (per request) */
.ayg-article-content > p:first-of-type,
body.ayg-lede .ayg-article-content > p:first-of-type{
  font-family:var(--font-body);font-size:inherit;line-height:inherit;font-weight:700;color:var(--ayg-ink)}

/* ---- Mobile typography tuned like major Arabic news sites ---- */
@media (max-width:680px){
  body{font-size:0.9375rem}
  .ayg-article-content{font-size:1.0312rem;line-height:1.95}
  .ayg-article-title{font-size:1.375rem;line-height:1.45}
  .ayg-article-content h2{font-size:1.25rem}
  .ayg-article-content h3{font-size:1.125rem}
  .ayg-card-title{font-size:0.9688rem}
  .ayg-list-title{font-size:0.9375rem}
  .ayg-section-header h2,.ayg-sec-title{font-size:1.1875rem}
  .ayg-lead-main .ayg-card-title{font-size:1.1875rem}
  .ayg-hero-main .ayg-hero-body h2{font-size:1.3125rem}
}

/* ==========================================================================
   v14 — Pro dark-mode toggle in masthead + chip visibility per device
   ========================================================================== */
.ayg-theme-toggle--main{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;
  border:1px solid var(--ayg-line);background:var(--ayg-bg-alt);border-radius:12px;cursor:pointer;color:var(--ayg-ink);
  transition:background .15s,border-color .15s,transform .15s}
.ayg-theme-toggle--main:hover{background:var(--ayg-red);color:#fff;border-color:var(--ayg-red);transform:translateY(-1px)}
.ayg-theme-toggle--main svg{fill:currentColor}
.ayg-theme-toggle--main .icon-sun{display:none}
html[data-theme="dark"] .ayg-theme-toggle--main{background:#22262e;border-color:#2f343d;color:#ffd479}
html[data-theme="dark"] .ayg-theme-toggle--main .icon-sun{display:block}
html[data-theme="dark"] .ayg-theme-toggle--main .icon-moon{display:none}

/* Chips: nav copy on desktop, masthead copy on mobile */
.ayg-chips-mobile{display:none}
@media (max-width:900px){
  .ayg-chips-mobile{display:flex;flex:1 1 100%;order:5;overflow-x:auto;scrollbar-width:none}
  .ayg-chips-mobile::-webkit-scrollbar{display:none}
}

/* ==========================================================================
   v15 — "Follow us" box (Google News / sources / social)
   ========================================================================== */
.ayg-follow{margin:26px 0;padding:18px 20px;border:1px solid var(--ayg-line);border-radius:14px;
  background:var(--ayg-bg-alt);display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.ayg-follow-text{font-family:var(--font-head);font-weight:800;color:var(--ayg-ink)}
.ayg-follow-links{display:flex;flex-wrap:wrap;gap:8px}
.ayg-follow-btn{display:inline-flex;align-items:center;gap:6px;font-family:var(--font-head);font-weight:700;
  font-size:0.8438rem;padding:8px 16px;border-radius:999px;color:#fff;transition:transform .15s,filter .15s}
.ayg-follow-btn:hover{transform:translateY(-2px);filter:brightness(1.06);color:#fff}
.ayg-follow-btn.is-gnews{background:#4285f4}
.ayg-follow-btn.is-sources{background:#1a73e8}
.ayg-follow-btn.is-wa{background:#25d366;color:#06351a}
.ayg-follow-btn.is-tg{background:#229ed9}
.ayg-follow-btn.is-x{background:#111}
.ayg-follow-btn.is-fb{background:#1877f2}
.ayg-follow-btn::before{content:"";width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.85)}

/* ==========================================================================
   v16 — Trust line, fresh badge, mobile share bar, responsive embeds
   ========================================================================== */
.ayg-trust{margin:22px 0 0;padding:12px 16px;background:var(--ayg-bg-alt);border-radius:10px;
  font-size:0.8438rem;color:var(--ayg-muted);display:flex;align-items:center;gap:8px}
.ayg-trust-i{display:inline-flex;width:22px;height:22px;align-items:center;justify-content:center;
  background:#1a8d4b;color:#fff;border-radius:50%;font-size:0.75rem;flex-shrink:0}
.ayg-fresh{display:inline-flex;align-items:center;gap:7px;margin:0 0 18px;background:rgba(200,148,27,.12);
  color:#8a6310;border:1px solid rgba(200,148,27,.3);border-radius:999px;padding:6px 14px;font-weight:700;font-size:0.8125rem}
html[data-theme="dark"] .ayg-fresh{color:#e9c46a;background:rgba(200,148,27,.16)}

/* Responsive embeds (16:9) */
.ayg-embed{position:relative;width:100%;aspect-ratio:16/9;margin:24px 0;border-radius:12px;overflow:hidden;background:#000}
.ayg-embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0}

/* Floating mobile share bar */
.ayg-mshare{display:none}
@media (max-width:768px){
  .ayg-mshare{display:flex;position:fixed;inset-inline:0;bottom:0;z-index:600;background:var(--ayg-card);
    border-top:1px solid var(--ayg-line);box-shadow:0 -4px 16px rgba(0,0,0,.1);padding:8px;gap:6px}
  .ayg-mshare a,.ayg-mshare button{flex:1;text-align:center;font-family:var(--font-head);font-weight:700;
    font-size:0.75rem;padding:10px 4px;border-radius:8px;color:#fff;border:0;cursor:pointer}
  .ayg-mshare .wa{background:#25d366}.ayg-mshare .x{background:#111}.ayg-mshare .fb{background:#1877f2}
  .ayg-mshare .tg{background:#229ed9}.ayg-mshare .cp{background:var(--ayg-red)}
  body{padding-bottom:60px}
}

/* ==========================================================================
   v17 — Live timeline, uniform archive cards, mobile-menu chips
   ========================================================================== */

/* Live coverage — professional timeline */
.ayg-live{border:1px solid var(--ayg-line);border-radius:14px;overflow:hidden;margin:24px 0;background:var(--ayg-card)}
.ayg-live-bar{display:flex;align-items:center;gap:8px;background:#c8102e;color:#fff;padding:11px 16px;
  font-family:var(--font-head);font-weight:800}
.ayg-live-bar time{margin-inline-start:auto;font-weight:700;opacity:.9}
.ayg-live-dot{width:10px;height:10px;border-radius:50%;background:#fff;animation:aygPulse 1.4s infinite}
@keyframes aygPulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.4;transform:scale(.7)}}
.ayg-live-list{margin:0;padding:0;list-style:none}
.ayg-live-item{display:grid;grid-template-columns:72px 1fr;gap:12px;padding:16px;border-bottom:1px solid var(--ayg-line);position:relative}
.ayg-live-item:last-child{border-bottom:0}
.ayg-live-meta .t{font-family:var(--font-head);font-weight:800;color:var(--ayg-red);font-size:0.875rem;
  background:rgba(200,16,46,.08);padding:4px 8px;border-radius:6px;display:inline-block}
.ayg-live-body{border-inline-start:2px solid var(--ayg-line);padding-inline-start:14px}
.ayg-live-title{margin:0 0 4px;font-size:1.0312rem;font-weight:800;color:var(--ayg-ink)}
.ayg-live-body p{margin:0;color:var(--ayg-body);line-height:1.85}
@media(max-width:560px){.ayg-live-item{grid-template-columns:1fr;gap:6px}.ayg-live-body{border:0;padding-inline-start:0}}

/* Uniform, professional cards across archive / search / category */
.ayg-cards.cols-4{grid-template-columns:repeat(4,1fr)}
.ayg-cards .ayg-card{height:100%;display:flex;flex-direction:column}
.ayg-card .ayg-card-thumb{aspect-ratio:16/10;display:block;overflow:hidden;border-radius:12px}
.ayg-card .ayg-card-title{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.ayg-card .ayg-card-excerpt{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
@media(max-width:1100px){.ayg-cards.cols-4{grid-template-columns:repeat(3,1fr)}}
@media(max-width:820px){.ayg-cards.cols-4{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.ayg-cards,.ayg-cards.cols-4{grid-template-columns:repeat(2,1fr);gap:14px}}
@media(max-width:380px){.ayg-cards,.ayg-cards.cols-4{grid-template-columns:1fr}}

/* Chips inside the mobile slide-in menu */
.ayg-mm-chips{display:flex;flex-wrap:wrap;gap:8px;padding:14px 18px;border-bottom:1px solid var(--ayg-line)}
.ayg-mm-chips .ayg-chip{box-shadow:none}

/* ==========================================================================
   v18 — Pro focus mode, reactions, inline newsletter, read-next, polish
   ========================================================================== */

/* Focus mode: hide everything but the article (header + footer too) */
body.ayg-focus .ayg-header,body.ayg-focus .ayg-nav,body.ayg-focus .ayg-sticky-bar,
body.ayg-focus .ayg-topbar,body.ayg-focus .site-footer,body.ayg-focus .ayg-footer,
body.ayg-focus footer,body.ayg-focus .ayg-mshare,
body.ayg-focus .ayg-breadcrumbs,body.ayg-focus .ayg-totop{display:none !important}
body.ayg-focus{background:var(--ayg-card)}
body.ayg-focus .ayg-main-layout{padding-top:30px}
body.ayg-focus .ayg-article{box-shadow:none;border:0}
body.ayg-focus .ayg-article-title{max-width:780px;margin-inline:auto}
/* Floating exit hint */
body.ayg-focus::after{content:"";position:fixed;inset:0;pointer-events:none}
body.ayg-focus .ayg-tool-focus{position:fixed;top:14px;inset-inline-end:14px;z-index:900;
  background:var(--ayg-red);color:#fff;box-shadow:0 6px 20px rgba(0,0,0,.25);pointer-events:auto}

/* External-link icon */
body.ayg-extlink-icon .ayg-article-content a[target="_blank"]::after{content:" ↗";font-size:.85em;opacity:.6}
/* Smooth scroll */
body.ayg-smooth{scroll-behavior:smooth}
/* Brand text selection */
::selection{background:var(--ayg-red);color:#fff}

/* ==========================================================================
   v19 — Footer breaking box + CLS-safe header reservations
   ========================================================================== */

/* Reserve header element heights so late loads don't shift content (CLS) */
.ayg-header-main{min-height:84px}
.ayg-logo{min-height:48px;display:flex;align-items:center}
.ayg-breaking{min-height:44px}
@media(max-width:900px){.ayg-header-main{min-height:0}}

/* ==========================================================================
   v20 — Polished related cards + content-visibility speed (2027 technique)
   ========================================================================== */

/* Related-articles cards consolidated below (v36 layer, single source). */
/* content-visibility: skip rendering work for off-screen blocks (faster paint).
   intrinsic sizes kept small so short sections don't reserve empty space (CLS). */
.ayg-comments,.ayg-footer{content-visibility:auto}
.ayg-comments{contain-intrinsic-size:auto 300px}
.ayg-footer{contain-intrinsic-size:auto 400px}

/* ==========================================================================
   v21 — Split hero (lead + ranked headline list) — global news style
   ========================================================================== */
.ayg-hero-split{display:grid;grid-template-columns:1.7fr 1fr;gap:24px;align-items:stretch}
.ayg-hero-split .ayg-hero-main{position:relative;border-radius:16px;overflow:hidden;min-height:420px}
.ayg-hero-split .ayg-hero-main img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
.ayg-hero-split .ayg-hero-overlay{position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.82) 0%,rgba(0,0,0,.25) 55%,transparent 100%)}
.ayg-hero-split .ayg-hero-main .ayg-hero-body{position:absolute;inset-inline:0;bottom:0;padding:24px;color:#fff;z-index:2}
.ayg-hero-split .ayg-hero-main h2{font-size:1.75rem;line-height:1.4;margin:8px 0}
.ayg-hero-split .ayg-hero-main h2 a{color:#fff}
.ayg-hero-split .ayg-hero-excerpt{color:rgba(255,255,255,.9);font-size:0.9375rem;line-height:1.7;margin:0 0 8px;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ayg-hero-split .ayg-meta{color:rgba(255,255,255,.8);font-size:0.8125rem}

.ayg-hero-rank{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;counter-reset:rank;
  border:1px solid var(--ayg-line);border-radius:16px;overflow:hidden;background:var(--ayg-card)}
.ayg-hero-rank li{display:flex;gap:12px;padding:14px 16px;border-bottom:1px solid var(--ayg-line);counter-increment:rank;position:relative}
.ayg-hero-rank li:last-child{border-bottom:0}
.ayg-hero-rank li::before{content:counter(rank);font-family:var(--font-head);font-weight:700;font-size:1.125rem;
  color:var(--ayg-red);min-width:22px;line-height:1.6}
.ayg-rank-thumb{flex-shrink:0;width:84px;height:62px;border-radius:9px;overflow:hidden}
.ayg-rank-thumb img{width:100%;height:100%;object-fit:cover}
.ayg-rank-body{flex:1;min-width:0}
.ayg-rank-body h3{font-size:0.9375rem;line-height:1.5;margin:3px 0 4px;font-weight:700;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ayg-rank-body h3 a{color:var(--ayg-ink)}
.ayg-rank-body h3 a:hover{color:var(--ayg-red)}
.ayg-rank-time{font-size:0.7188rem;color:var(--ayg-muted)}
@media(max-width:900px){
  .ayg-hero-split{grid-template-columns:1fr;gap:16px}
  .ayg-hero-split .ayg-hero-main{min-height:300px}
  .ayg-hero-split .ayg-hero-main h2{font-size:1.3125rem}
}

/* ==========================================================================
   v22 — Professional "Follow us" cards (Google News / Sources / social)
   ========================================================================== */
.ayg-follow{margin:28px 0;padding:0;border:0;background:none;display:block}
.ayg-follow-text{display:block;font-family:var(--font-head);font-weight:700;color:var(--ayg-ink);margin-bottom:12px;font-size:1rem}
.ayg-fcards{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.ayg-fcard{display:flex;align-items:center;gap:12px;padding:14px 16px;border:1px solid var(--ayg-line);
  border-radius:14px;background:var(--ayg-card);transition:box-shadow .18s,transform .18s,border-color .18s}
.ayg-fcard:hover{transform:translateY(-2px);box-shadow:0 10px 26px rgba(0,0,0,.08);border-color:transparent}
.ayg-fcard-ic{flex-shrink:0;width:44px;height:44px;border-radius:11px;display:flex;align-items:center;
  justify-content:center;font-size:1.375rem;font-weight:800;color:#fff;font-family:Arial,sans-serif}
.ayg-fcard-txt{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.4}
.ayg-fcard-txt strong{font-family:var(--font-head);font-size:0.9062rem;color:var(--ayg-ink)}
.ayg-fcard-txt small{font-size:0.75rem;color:var(--ayg-muted)}
.ayg-fcard-btn{flex-shrink:0;font-family:var(--font-head);font-weight:700;font-size:0.8125rem;color:#fff;
  padding:8px 16px;border-radius:999px;background:var(--ayg-red)}
.ayg-fcard.is-gnews .ayg-fcard-ic{background:#4285f4}
.ayg-fcard.is-gnews .ayg-fcard-btn{background:#4285f4}
.ayg-fcard.is-sources .ayg-fcard-ic{background:linear-gradient(135deg,#4285f4,#ea4335 60%,#fbbc05)}
.ayg-fcard.is-sources .ayg-fcard-btn{background:#1a73e8}
.ayg-fcard.is-wa .ayg-fcard-ic{background:#25d366}.ayg-fcard.is-wa .ayg-fcard-btn{background:#25d366;color:#053}
.ayg-fcard.is-tg .ayg-fcard-ic{background:#229ed9}.ayg-fcard.is-tg .ayg-fcard-btn{background:#229ed9}
.ayg-fcard.is-x .ayg-fcard-ic{background:#111}.ayg-fcard.is-x .ayg-fcard-btn{background:#111}
.ayg-fcard.is-fb .ayg-fcard-ic{background:#1877f2}.ayg-fcard.is-fb .ayg-fcard-btn{background:#1877f2}
@media(max-width:680px){.ayg-fcards{grid-template-columns:1fr}}

/* ==========================================================================
   v23 — Accessibility fixes (contrast, link names, touch targets)
   ========================================================================== */
.ayg-footer-bottom,.ayg-footer-bottom p{color:#eef0f3}        /* WCAG AA on dark footer */
.ayg-footer-bottom a{color:#e3e6ea}
.ayg-fb-close{min-width:34px;min-height:34px}

/* ==========================================================================
   v24 — Revolution 2027: YouTube facade, trending strip, web-share
   ========================================================================== */

/* YouTube facade (light poster, loads on click) */
.ayg-ytf{position:relative;aspect-ratio:16/9;width:100%;margin:24px 0;border-radius:14px;overflow:hidden;
  cursor:pointer;background:#000}
.ayg-ytf img{width:100%;height:100%;object-fit:cover;opacity:.9;transition:opacity .2s}
.ayg-ytf:hover img{opacity:1}
.ayg-ytf-play{position:absolute;inset:0;margin:auto;width:68px;height:68px;display:flex;align-items:center;
  justify-content:center;background:var(--ayg-red);color:#fff;border-radius:50%;font-size:1.5rem;padding-inline-start:4px;
  box-shadow:0 6px 20px rgba(0,0,0,.4)}
.ayg-ytf.loaded{cursor:default}

/* Trending strip */
.ayg-trending{display:flex;align-items:center;gap:14px;background:var(--ayg-card);border:1px solid var(--ayg-line);
  border-radius:14px;padding:12px 16px;margin:0 0 22px;overflow:hidden}
.ayg-trending-h{flex-shrink:0;font-family:var(--font-head);font-weight:800;color:var(--ayg-red);font-size:0.875rem}
.ayg-trending-row{display:flex;gap:22px;overflow-x:auto;scrollbar-width:none;white-space:nowrap}
.ayg-trending-row::-webkit-scrollbar{display:none}
.ayg-trending-item{font-family:var(--font-head);font-weight:600;font-size:0.875rem;color:var(--ayg-ink)}
.ayg-trending-item b{color:var(--ayg-red)}
.ayg-trending-item:hover{color:var(--ayg-red)}

/* Native web-share button */
.ayg-webshare{display:inline-flex;align-items:center;gap:8px;margin:18px 0;padding:11px 22px;border:0;cursor:pointer;
  background:var(--ayg-ink);color:#fff;font-family:var(--font-head);font-weight:700;font-size:0.875rem;border-radius:999px;transition:background .15s}
.ayg-webshare:hover{background:var(--ayg-red)}
.ayg-webshare span{font-size:1rem}

/* ==========================================================================
   v25 — Dark mode hardening for all components
   ========================================================================== */
html[data-theme="dark"] .ayg-webshare{background:#2a2e36;color:#fff}
html[data-theme="dark"] .ayg-webshare:hover{background:var(--ayg-red)}
html[data-theme="dark"] .ayg-fcard,
html[data-theme="dark"] .ayg-trending,
html[data-theme="dark"] .ayg-hero-rank,
html[data-theme="dark"] .ayg-related-cards .ayg-card,
html[data-theme="dark"] .ayg-follow{background:var(--ayg-card);border-color:var(--ayg-line)}
html[data-theme="dark"] .ayg-trending-item,
html[data-theme="dark"] .ayg-fcard-txt strong,
html[data-theme="dark"] .ayg-rank-body h3 a,
html[data-theme="dark"] .ayg-related-cards .ayg-card-title a{color:var(--ayg-ink)}
/* In-content "read also" / injected boxes, TOC, tables, blockquotes */
html[data-theme="dark"] .ayg-inread,
html[data-theme="dark"] .ayg-toc,
html[data-theme="dark"] .ayg-keypoints,
html[data-theme="dark"] .ayg-standfirst,
html[data-theme="dark"] .ayg-author-box,
html[data-theme="dark"] .ayg-newsletter,
html[data-theme="dark"] .ayg-live,
html[data-theme="dark"] .ayg-card,
html[data-theme="dark"] .ayg-wpost,
html[data-theme="dark"] .ayg-widget{background:var(--ayg-card);border-color:var(--ayg-line);color:var(--ayg-body)}
html[data-theme="dark"] .ayg-article-content table th{background:var(--ayg-bg-alt)}
html[data-theme="dark"] .ayg-article-content table td,
html[data-theme="dark"] .ayg-article-content table th{border-color:var(--ayg-line)}
html[data-theme="dark"] .ayg-article-content blockquote{background:var(--ayg-bg-alt)}
html[data-theme="dark"] .ayg-search-overlay{background:rgba(8,10,14,.97)}
html[data-theme="dark"] .ayg-mobile-menu{background:var(--ayg-bg)}
html[data-theme="dark"] .ayg-sticky-bar{background:#15171c;border-color:#2a2e36}
html[data-theme="dark"] .ayg-ytf{background:#000}

/* ==========================================================================
   v26 — FINAL: unified pro card grid + image treatment (sections/archive/tag/search)
   ========================================================================== */
.ayg-cards{display:grid;grid-template-columns:repeat(2,1fr);gap:22px;grid-auto-rows:max-content;justify-items:stretch}
.ayg-cards .ayg-card{background:var(--ayg-card);border:1px solid var(--ayg-line);border-radius:16px;
  overflow:hidden;display:flex;flex-direction:column;transition:transform .2s,box-shadow .2s,border-color .2s}
.ayg-cards .ayg-card:hover{transform:translateY(-5px);box-shadow:0 16px 36px rgba(0,0,0,.10);border-color:transparent}
/* Professional image treatment: fixed ratio, no distortion, soft zoom on hover */
.ayg-cards .ayg-card-thumb{display:block;margin:0;aspect-ratio:16/10;overflow:hidden;position:relative;background:var(--ayg-bg-alt)}
.ayg-cards .ayg-card-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.ayg-cards .ayg-card:hover .ayg-card-thumb img{transform:scale(1.06)}
.ayg-cards .ayg-card-body{padding:15px 17px 18px;display:flex;flex-direction:column;gap:8px;flex:1}
.ayg-cards .ayg-card-title{font-size:1.0312rem;line-height:1.6;font-weight:700;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.ayg-cards .ayg-card-title a{color:var(--ayg-ink)}
.ayg-cards .ayg-card-title a:hover{color:var(--ayg-red)}
.ayg-cards .ayg-card-excerpt{font-size:0.8438rem;color:var(--ayg-muted);line-height:1.75;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ayg-cards .ayg-card-meta{margin-top:auto;font-size:0.75rem;color:var(--ayg-muted);display:flex;gap:14px;align-items:center;padding-top:4px}
.ayg-cards .ayg-card-meta .m{display:inline-flex;align-items:center;gap:4px}

/* Unified, professional listing header */
.ayg-arch-head{margin:6px 0 24px;padding-bottom:16px;border-bottom:2px solid var(--ayg-line);position:relative}
.ayg-arch-head::after{content:"";position:absolute;bottom:-2px;inset-inline-start:0;width:70px;height:2px;background:var(--ayg-red)}
.ayg-arch-head h1,.ayg-arch-title{font-family:var(--font-head);font-weight:800;font-size:1.625rem;color:var(--ayg-ink);margin:0}
.ayg-arch-head p,.ayg-arch-desc{margin:8px 0 0;color:var(--ayg-muted);font-size:0.9062rem;line-height:1.7}
.ayg-arch-head .count,.ayg-arch-count{display:inline-block;margin-top:10px;font-size:0.8125rem;color:var(--ayg-muted);font-weight:700}

@media(max-width:600px){
  .ayg-cards{grid-template-columns:1fr 1fr;gap:13px}
  .ayg-cards .ayg-card-body{padding:11px 12px 13px;gap:6px}
  .ayg-cards .ayg-card-title{font-size:0.875rem;-webkit-line-clamp:3}
  .ayg-cards .ayg-card-excerpt{display:none}
  .ayg-arch-title{font-size:1.3125rem}
}

/* ==========================================================================
   v27 — Header breaking (Al Jazeera style: static headline, soft swap)
   ========================================================================== */
.ayg-breaking .ayg-wrap{display:flex;align-items:center;gap:14px;min-height:44px}
.ayg-breaking-rotator{position:relative;flex:1;min-width:0;height:24px;overflow:hidden}
.ayg-breaking-item{position:absolute;inset-inline-start:0;top:0;width:100%;color:var(--ayg-ink);
  font-family:var(--font-head);font-weight:700;font-size:0.9375rem;line-height:24px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:0;transition:opacity .35s;pointer-events:none}
.ayg-breaking-item.active{opacity:1;pointer-events:auto}
.ayg-breaking-item:hover{color:var(--ayg-red)}
html[data-theme="dark"] .ayg-breaking-item{color:var(--ayg-ink)}

/* ==========================================================================
   v28 — Author card upgrade + ad slot polish
   ========================================================================== */
.ayg-author-box{display:flex;gap:16px;align-items:flex-start;background:var(--ayg-card);
  border:1px solid var(--ayg-line);border-inline-start:4px solid var(--ayg-red);
  border-radius:14px;padding:18px;margin:26px 0}
.ayg-author-box img{border-radius:50%;flex-shrink:0;border:2px dashed var(--ayg-line);padding:3px}
.ayg-ab-main{flex:1;min-width:0}
.ayg-ab-by{display:inline-block;font-size:0.7188rem;font-weight:700;color:var(--ayg-red);
  background:var(--ayg-red-soft);padding:3px 10px;border-radius:999px;margin-bottom:6px}
.ayg-author-box h3{margin:2px 0 6px;font-size:1.125rem}
.ayg-author-box h3 a{color:var(--ayg-ink)}
.ayg-author-box h3 a:hover{color:var(--ayg-red)}
.ayg-author-box p{margin:0 0 10px;font-size:0.8438rem;line-height:1.8;color:var(--ayg-muted)}
.ayg-ab-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.ayg-ab-more{font-family:var(--font-head);font-weight:700;font-size:0.8125rem;color:#fff;
  background:var(--ayg-ink);padding:8px 16px;border-radius:999px;transition:background .15s}
.ayg-ab-more:hover{background:var(--ayg-red);color:#fff}
.ayg-ab-count{font-size:0.7812rem;color:var(--ayg-muted);font-weight:700}
html[data-theme="dark"] .ayg-ab-more{background:#2a2e36}
html[data-theme="dark"] .ayg-ab-more:hover{background:var(--ayg-red)}

.ayg-ad-label{display:block;font-size:0.625rem;letter-spacing:1px;color:var(--ayg-muted);margin-bottom:4px;text-transform:uppercase}
.ayg-ad-slot{min-height:90px;background:var(--ayg-bg-alt);border:1px dashed var(--ayg-line);border-radius:10px;padding:10px}
.ayg-ad-slot:empty{display:none}

/* ==========================================================================
   v29 — Category lead story + mosaic hero + tightened card internals
   ========================================================================== */

/* Category lead story (first post, fills the page top beautifully) */
.ayg-cat-lead{display:grid;grid-template-columns:1.25fr 1fr;gap:0;border:1px solid var(--ayg-line);
  border-radius:16px;overflow:hidden;background:var(--ayg-card);margin-bottom:24px}
.ayg-cat-lead-thumb{display:block;aspect-ratio:16/10;overflow:hidden;background:var(--ayg-bg-alt)}
.ayg-cat-lead-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.ayg-cat-lead:hover .ayg-cat-lead-thumb img{transform:scale(1.05)}
.ayg-cat-lead-body{padding:22px 24px;display:flex;flex-direction:column;gap:10px;justify-content:center}
.ayg-cat-lead-title{font-size:1.4375rem;line-height:1.5;margin:0;font-weight:800}
.ayg-cat-lead-title a{color:var(--ayg-ink)}
.ayg-cat-lead-title a:hover{color:var(--ayg-red)}
.ayg-cat-lead-excerpt{margin:0;color:var(--ayg-muted);font-size:0.9062rem;line-height:1.85;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
@media(max-width:760px){.ayg-cat-lead{grid-template-columns:1fr}.ayg-cat-lead-title{font-size:1.1562rem}
  .ayg-cat-lead-body{padding:14px 16px}}

/* Card internals: kill dead space (badge inside thumb, tight body) */
.ayg-cards .ayg-card{height:auto}
.ayg-cards .ayg-card-thumb .ayg-cbadge{position:absolute;top:10px;inset-inline-start:10px;z-index:2}
.ayg-cards .ayg-card-body{gap:6px}
.ayg-cards .ayg-card-meta{padding-top:6px;border-top:1px dashed var(--ayg-line)}

/* Mosaic hero: 1 lead + 4 tiles (BBC style) */
.ayg-hero-mosaic{display:grid;grid-template-columns:2fr 1fr 1fr;grid-template-rows:repeat(2,210px);gap:14px}
.ayg-hero-mosaic .ayg-ocard{position:relative;border-radius:14px;overflow:hidden}
.ayg-hero-mosaic .ayg-ocard:first-child{grid-row:1/3}
.ayg-hero-mosaic .ayg-ocard img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .5s}
.ayg-hero-mosaic .ayg-ocard:hover img{transform:scale(1.05)}
.ayg-hero-mosaic .ayg-ocard .ov{position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.85),rgba(0,0,0,.1) 60%)}
.ayg-hero-mosaic .ayg-ocard .bd{position:absolute;inset-inline:0;bottom:0;padding:14px 16px;z-index:2}
.ayg-hero-mosaic .ayg-ocard h3{color:#fff;font-size:0.9375rem;line-height:1.5;margin:6px 0 0;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ayg-hero-mosaic .ayg-ocard:first-child h3{font-size:1.375rem;-webkit-line-clamp:3}
.ayg-hero-mosaic .ayg-ocard h3 a{color:#fff}
@media(max-width:900px){.ayg-hero-mosaic{grid-template-columns:1fr 1fr;grid-template-rows:240px 160px 160px}
  .ayg-hero-mosaic .ayg-ocard:first-child{grid-column:1/3;grid-row:1}}

/* ==========================================================================
   v30 — Single-column pro listing + inread styles + fresh badge
   ========================================================================== */

/* Single-column horizontal list (sections/archive/tags/search/author) */
.ayg-list-flow{display:flex;flex-direction:column;gap:16px}
.ayg-list-flow .ayg-list-item{display:grid;grid-template-columns:300px 1fr;gap:18px;align-items:stretch;
  background:var(--ayg-card);border:1px solid var(--ayg-line);border-radius:14px;overflow:hidden;
  transition:transform .18s,box-shadow .18s}
.ayg-list-flow .ayg-list-item:hover{transform:translateY(-3px);box-shadow:0 12px 28px rgba(0,0,0,.09)}
.ayg-list-flow .ayg-list-thumb{display:block;aspect-ratio:16/10;overflow:hidden;background:var(--ayg-bg-alt)}
.ayg-list-flow .ayg-list-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.ayg-list-flow .ayg-list-item:hover .ayg-list-thumb img{transform:scale(1.05)}
.ayg-list-flow .ayg-list-body{padding:16px 18px;display:flex;flex-direction:column;gap:8px;justify-content:center}
.ayg-list-flow .ayg-list-title{font-size:1.1562rem;line-height:1.55;font-weight:800;margin:0;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ayg-list-flow .ayg-list-title a{color:var(--ayg-ink)}
.ayg-list-flow .ayg-list-title a:hover{color:var(--ayg-red)}
.ayg-list-flow .ayg-list-meta{font-size:0.7812rem;color:var(--ayg-muted)}
@media(max-width:680px){
  .ayg-list-flow .ayg-list-item{grid-template-columns:128px 1fr;gap:0}
  .ayg-list-flow .ayg-list-thumb{aspect-ratio:1/1;height:100%}
  .ayg-list-flow .ayg-list-body{padding:10px 12px}
  .ayg-list-flow .ayg-list-title{font-size:0.9062rem;-webkit-line-clamp:3}
}

/* "اقرأ أيضًا" styles — all compact, never deform the article flow */
.ayg-inline-related.is-classic{/* default refined look above */}
.ayg-inline-related.is-boxed{border-inline-start:1px solid var(--ayg-line);box-shadow:0 6px 18px rgba(0,0,0,.06)}
.ayg-inline-related.is-boxed .ayg-ir-items{grid-template-columns:1fr}
.ayg-inline-related.is-minimal{background:transparent;border:0;border-inline-start:4px solid var(--ayg-red);border-radius:0;padding:4px 14px}
.ayg-inline-related.is-minimal .ayg-ir-thumb{display:none}
.ayg-inline-related.is-minimal .ayg-ir-items{grid-template-columns:1fr;gap:8px}
@media(max-width:600px){.ayg-ir-items{grid-template-columns:1fr}}

/* Fresh badge */
.ayg-cbadge-fresh{background:#0a8f4d;color:#fff}

/* TOC scroll-spy active state */
.ayg-toc a.active{color:var(--ayg-red);font-weight:800}

/* v30.1 — audit gap fills */
.ayg-footer-col{min-width:0}
.ayg-listen-label{font-size:0.8125rem}

/* ==========================================================================
   v31 — Trust links + rich author hero
   ========================================================================== */
.ayg-trust-wrap{padding:14px 0 0}
.ayg-trust-links{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;padding:12px 0;border-top:1px solid rgba(255,255,255,.1)}
.ayg-trust-links a{font-size:0.7812rem;color:#c7ccd4;border:1px solid rgba(255,255,255,.16);padding:5px 14px;border-radius:999px;transition:all .15s}
.ayg-trust-links a:hover{color:#fff;border-color:#fff}

.ayg-author-hero{display:flex;gap:20px;align-items:center;background:var(--ayg-card);border:1px solid var(--ayg-line);
  border-inline-start:4px solid var(--ayg-red);border-radius:16px;padding:24px;margin:20px 0}
.ayg-author-hero img{border-radius:50%;flex-shrink:0;border:3px solid var(--ayg-red-soft)}
.ayg-author-hero h1{font-size:1.625rem;margin:4px 0 8px;color:var(--ayg-ink)}
.ayg-author-hero-bio{margin:0 0 10px;color:var(--ayg-muted);line-height:1.85;font-size:0.9062rem;max-width:640px}
.ayg-author-hero-meta{display:flex;gap:16px;align-items:center;font-size:0.8125rem;color:var(--ayg-muted);font-weight:700}
.ayg-author-hero-meta a{color:var(--ayg-red)}
@media(max-width:600px){.ayg-author-hero{flex-direction:column;text-align:center;padding:18px}
  .ayg-author-hero-meta{justify-content:center}}

/* ==========================================================================
   v32 — Jazeera hero + entity hubs + fact-check + mobile hardening
   ========================================================================== */

/* Jazeera-style hero: title under image + headline column */
.ayg-hero-jazeera{display:grid;grid-template-columns:1.8fr 1fr;gap:26px;align-items:start}
.ayg-jz-media{display:block;aspect-ratio:16/9;overflow:hidden;border-radius:14px;background:var(--ayg-bg-alt)}
.ayg-jz-media img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.ayg-jz-main:hover .ayg-jz-media img{transform:scale(1.04)}
.ayg-jz-body{padding:14px 4px 0}
.ayg-jz-body h2{font-size:1.6875rem;line-height:1.45;margin:8px 0 10px;font-weight:800}
.ayg-jz-body h2 a{color:var(--ayg-ink)}
.ayg-jz-body h2 a:hover{color:var(--ayg-red)}
.ayg-jz-body p{margin:0;color:var(--ayg-muted);font-size:0.9375rem;line-height:1.85;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ayg-jz-side{display:flex;flex-direction:column}
.ayg-jz-item{display:flex;gap:12px;align-items:flex-start;padding:14px 0;border-bottom:1px solid var(--ayg-line)}
.ayg-jz-item:first-child{padding-top:4px}
.ayg-jz-item:last-child{border-bottom:0}
.ayg-jz-item-thumb{flex:0 0 88px;width:88px;aspect-ratio:16/10;border-radius:8px;overflow:hidden;background:var(--ayg-bg-alt)}
.ayg-jz-item-thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s}
.ayg-jz-item:hover .ayg-jz-item-thumb img{transform:scale(1.06)}
.ayg-jz-item-body{flex:1;min-width:0}
.ayg-jz-item h3{font-size:0.95rem;line-height:1.5;margin:0 0 4px;font-weight:700}
.ayg-jz-item h3 a{color:var(--ayg-ink)}
.ayg-jz-item h3 a:hover{color:var(--ayg-red)}
.ayg-jz-time{font-size:0.75rem;color:var(--ayg-muted)}
@media(max-width:900px){.ayg-hero-jazeera{grid-template-columns:1fr;gap:8px}
  .ayg-jz-body h2{font-size:1.25rem}}

/* Entity hub hero */
.ayg-entity-hero{background:var(--ayg-card);border:1px solid var(--ayg-line);border-radius:16px;
  padding:26px;margin:20px 0;border-top:4px solid var(--ayg-red)}
.ayg-entity-type{display:inline-block;font-size:0.75rem;font-weight:800;color:var(--ayg-red);
  background:var(--ayg-red-soft);padding:4px 14px;border-radius:999px;font-family:var(--font-head)}
.ayg-entity-hero h1{font-size:1.875rem;margin:10px 0 8px;color:var(--ayg-ink)}
.ayg-entity-desc{color:var(--ayg-muted);line-height:1.9;font-size:0.9375rem;max-width:760px}
.ayg-entity-count{display:inline-block;margin-top:10px;font-size:0.8125rem;font-weight:700;color:var(--ayg-muted)}

/* Fact-check verdict box */
.ayg-factcheck{border-radius:14px;padding:16px 18px;margin:0 0 22px;border:1px solid var(--ayg-line);border-inline-start-width:5px}
.ayg-factcheck.is-false{border-inline-start-color:#c8102e;background:rgba(200,16,46,.05)}
.ayg-factcheck.is-mixed{border-inline-start-color:#d97706;background:rgba(217,119,6,.06)}
.ayg-factcheck.is-true{border-inline-start-color:#0a8f4d;background:rgba(10,143,77,.06)}
.ayg-fc-tag{font-family:var(--font-head);font-weight:800;font-size:0.75rem;letter-spacing:.5px;color:var(--ayg-muted)}
.ayg-fc-claim{margin:6px 0 10px;font-family:var(--font-head);font-weight:700;font-size:1.0312rem;color:var(--ayg-ink)}
.ayg-fc-verdict{display:inline-block;font-family:var(--font-head);font-weight:800;font-size:0.875rem;padding:6px 16px;border-radius:999px;color:#fff}
.is-false .ayg-fc-verdict{background:#c8102e}.is-mixed .ayg-fc-verdict{background:#d97706}.is-true .ayg-fc-verdict{background:#0a8f4d}

/* Mobile hardening: hero never overlaps the trending strip / next sections */
.ayg-hero{position:relative;z-index:1;margin-bottom:22px;contain:layout}
.ayg-trending{position:relative;z-index:0;clear:both}
@media(max-width:600px){
  .ayg-hero-split .ayg-hero-main{min-height:0;aspect-ratio:16/10}
  .ayg-hero-mosaic{grid-template-rows:auto auto auto}
  .ayg-hero-mosaic .ayg-ocard{aspect-ratio:16/10}
  .ayg-hero-mosaic .ayg-ocard:first-child{grid-row:auto;grid-column:1/3}
}

/* v33 — Sources box */
.ayg-sources{margin:26px 0 6px;padding:14px 18px;background:var(--ayg-bg-alt);border:1px solid var(--ayg-line);
  border-inline-start:4px solid var(--ayg-ink);border-radius:12px}
.ayg-sources-h{display:block;font-family:var(--font-head);font-weight:800;font-size:0.8125rem;color:var(--ayg-ink);margin-bottom:8px}
.ayg-sources ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:6px}
.ayg-sources li{font-size:0.8438rem;color:var(--ayg-muted)}
.ayg-sources a{color:var(--ayg-red);font-weight:700}
html[data-theme="dark"] .ayg-sources{border-inline-start-color:var(--ayg-red)}

/* v34 — Homepage rhythm + jazeera polish */
.ayg-main > section,.ayg-main > .ayg-section{margin-bottom:34px}
.ayg-hero{margin-bottom:30px}
.ayg-hero-jazeera{gap:30px}
.ayg-jz-item h3{font-weight:800}
@media(max-width:900px){.ayg-jz-side{border-top:2px solid var(--ayg-line);padding-top:6px;margin-top:8px}}

/* ==========================================================================
   v35 — Wakala preset grid + breaking bar styles/sizes
   ========================================================================== */
.ayg-wakala-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:28px;margin:6px 0 30px}
.ayg-wk-col{min-width:0}
.ayg-wk-lead{margin-bottom:6px}
.ayg-wk-thumb{display:block;aspect-ratio:16/9;overflow:hidden;border-radius:12px;background:var(--ayg-bg-alt)}
.ayg-wk-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.ayg-wk-lead:hover .ayg-wk-thumb img{transform:scale(1.05)}
.ayg-wk-lead h3{font-size:1.05rem;line-height:1.55;margin:10px 0 8px;font-weight:800}
.ayg-wk-lead h3 a{color:var(--ayg-ink)}.ayg-wk-lead h3 a:hover{color:var(--ayg-red)}
.ayg-wk-item{padding:10px 0;border-top:1px solid var(--ayg-line)}
.ayg-wk-item h4{font-size:.9rem;line-height:1.55;margin:0 0 3px;font-weight:700}
.ayg-wk-item h4 a{color:var(--ayg-ink)}.ayg-wk-item h4 a:hover{color:var(--ayg-red)}
.ayg-wk-item span{font-size:.72rem;color:var(--ayg-muted)}
@media(max-width:760px){.ayg-wakala-grid{grid-template-columns:1fr;gap:20px}}

/* Breaking bar styles: slim (badge) / filled, sizes sm/md/lg */
.ayg-breaking.is-slim{background:var(--ayg-card);border-bottom:1px solid var(--ayg-line)}
.ayg-breaking.is-slim .ayg-breaking-label{background:var(--ayg-red);color:#fff;border-radius:8px;padding:4px 14px;font-size:.8rem}
.ayg-breaking.is-slim .ayg-breaking-item{color:var(--ayg-ink)}
.ayg-breaking.is-filled{background:var(--ayg-red)}
.ayg-breaking.is-filled .ayg-breaking-label{color:#fff}
.ayg-breaking.is-filled .ayg-breaking-item{color:#fff}
.ayg-breaking.is-filled .ayg-breaking-item:hover{color:#ffe1e6}
.ayg-breaking.size-sm .ayg-wrap{min-height:38px}.ayg-breaking.size-sm .ayg-breaking-item{font-size:.84rem}
.ayg-breaking.size-md .ayg-wrap{min-height:46px}
.ayg-breaking.size-lg .ayg-wrap{min-height:56px}.ayg-breaking.size-lg .ayg-breaking-item{font-size:1.05rem;font-weight:800}
html[data-theme="dark"] .ayg-breaking.is-slim{background:var(--ayg-card)}

/* v36 — widget mobile-hide + related redesign (clean, equal, pro) */
@media(max-width:782px){.ayg-hide-mobile{display:none !important}}

.ayg-related{border-top:3px solid var(--ayg-red);padding-top:18px}
.ayg-related .ayg-sec-title{font-size:1.15rem}
.ayg-related-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:16px;align-items:start}
.ayg-related-cards .ayg-card{border:1px solid var(--ayg-line);border-radius:14px;overflow:hidden;background:var(--ayg-card);
  display:flex;flex-direction:column;transition:transform .18s,box-shadow .18s}
.ayg-related-cards .ayg-card:hover{transform:translateY(-4px);box-shadow:0 12px 26px rgba(0,0,0,.10)}
.ayg-related-cards .ayg-card-thumb{position:relative;display:block;width:100%;height:0;padding-bottom:48%;
  flex:0 0 auto;overflow:hidden;background:var(--ayg-bg-alt);margin:0;order:-1}
.ayg-related-cards .ayg-card-thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .45s}
.ayg-related-cards .ayg-card:hover .ayg-card-thumb img{transform:scale(1.06)}
.ayg-related-cards .ayg-card-body{padding:12px 14px 14px;display:flex;flex-direction:column;gap:6px;flex:1 1 auto}
.ayg-related-cards .ayg-card-title{font-size:.92rem;line-height:1.6;font-weight:700;margin:0;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.95rem}
.ayg-related-cards .ayg-card-excerpt{display:none}
.ayg-related-cards .ayg-card-meta{margin-top:auto;padding-top:8px;border-top:1px dashed var(--ayg-line);font-size:.72rem;color:var(--ayg-muted)}
@media(max-width:600px){.ayg-related-cards{grid-template-columns:repeat(2,1fr);gap:11px}
  .ayg-related-cards .ayg-card-title{font-size:.82rem;-webkit-line-clamp:3;min-height:0}}

/* v37 — related badge fix + resilient wakala grid */
.ayg-related-cards .ayg-card-thumb .ayg-cbadge,
.ayg-related-cards .ayg-card-thumb .ayg-card-cat{position:absolute;top:10px;inset-inline-start:10px;z-index:2;
  width:auto;display:inline-block;padding:4px 12px;border-radius:8px;font-size:.7rem}
.ayg-related-cards .ayg-card-thumb img{position:absolute;z-index:1}
.ayg-wakala-grid{grid-template-columns:repeat(auto-fit,minmax(320px,1fr))}

/* ==========================================================================
   v38 — Timeline + Big Event + story pages
   ========================================================================== */
.ayg-timeline{position:relative;margin:14px 0 26px}
.ayg-tl-month{font-size:.85rem;font-weight:800;color:var(--ayg-red);margin:18px 0 8px;font-family:var(--font-head)}
.ayg-tl-list{list-style:none;margin:0;padding:0 18px 0 0;border-inline-start:2px solid var(--ayg-line)}
.ayg-tl-list li{position:relative;padding:7px 16px 7px 0;}
.ayg-tl-list li::before{content:"";position:absolute;inset-inline-start:-23px;top:14px;width:10px;height:10px;border-radius:50%;
  background:var(--ayg-card);border:2px solid var(--ayg-red)}
.ayg-tl-date{display:block;font-size:.7rem;color:var(--ayg-muted);font-weight:700}
.ayg-tl-list a{color:var(--ayg-ink);font-weight:700;font-size:.92rem;line-height:1.6}
.ayg-tl-list a:hover{color:var(--ayg-red)}
.ayg-tl-wrap{margin:0 0 20px;border:1px solid var(--ayg-line);border-radius:12px;padding:10px 16px;background:var(--ayg-card)}
.ayg-tl-wrap summary{cursor:pointer;font-family:var(--font-head);font-weight:800;color:var(--ayg-ink)}

.ayg-bigevent{margin:20px 0}
.ayg-be-head{text-align:center;padding:26px 16px;background:linear-gradient(135deg,#1a1d23,#2b0c12);border-radius:18px;margin-bottom:22px}
.ayg-be-live{display:inline-flex;align-items:center;gap:8px;background:var(--ayg-red);color:#fff;font-family:var(--font-head);
  font-weight:800;font-size:.8rem;padding:6px 18px;border-radius:999px}
.ayg-be-live .dot{width:8px;height:8px;border-radius:50%;background:#fff;animation:ayg-blink 1.2s infinite}
.ayg-be-head h1{color:#fff;font-size:2rem;margin:12px 0 6px}
.ayg-be-desc{color:rgba(255,255,255,.85);max-width:720px;margin:0 auto;line-height:1.8}
.ayg-be-hero{margin-bottom:26px}
.ayg-be-media{display:block;aspect-ratio:21/9;overflow:hidden;border-radius:16px;background:var(--ayg-bg-alt)}
.ayg-be-media img{width:100%;height:100%;object-fit:cover}
.ayg-be-hero h2{font-size:1.6rem;line-height:1.5;margin:14px 0 8px}
.ayg-be-hero h2 a{color:var(--ayg-ink)}.ayg-be-hero h2 a:hover{color:var(--ayg-red)}
.ayg-be-hero p{color:var(--ayg-muted);line-height:1.85;margin:0}
.ayg-be-cols{display:grid;grid-template-columns:1.6fr 1fr;gap:30px}
.ayg-be-all{display:inline-block;margin-top:14px;font-family:var(--font-head);font-weight:800;color:#fff;
  background:var(--ayg-red);padding:10px 22px;border-radius:999px}
@media(max-width:860px){.ayg-be-cols{grid-template-columns:1fr}.ayg-be-head h1{font-size:1.4rem}}

/* v39 — SEO2027: freshness badge + 404 suggestions */
.ayg-freshness{display:inline-block;background:var(--ayg-red-soft);color:var(--ayg-red);font-family:var(--font-head);
  font-weight:700;font-size:.78rem;padding:5px 14px;border-radius:999px;margin:0 0 14px}
.ayg-404-suggest{margin:26px 0;padding:18px 20px;background:var(--ayg-bg-alt);border-radius:14px;border:1px solid var(--ayg-line)}
.ayg-404-suggest h3{margin:0 0 10px;font-size:1rem;color:var(--ayg-ink)}
.ayg-404-suggest ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px}
.ayg-404-suggest a{color:var(--ayg-red);font-weight:700}

/* v40 — fresh badge above H1 (keeps H1 clean for crawlers) */
.ayg-article-title{margin-top:6px}
.ayg-article-header > .ayg-cbadge-fresh,.ayg-article-header > .ayg-cbadge{margin-bottom:8px}

/* v40 — CLS hardening: only a neutral background fallback; ratios are set
   per-context above so this rule must NOT override them. */
.ayg-jz-media,.ayg-be-media{
  aspect-ratio:16/9;overflow:hidden;background:var(--ayg-bg-alt)}
.ayg-jz-media img,.ayg-be-media img,.ayg-feat-media img{
  width:100%;height:100%;object-fit:cover;display:block}
/* Mobile: jazeera + mosaic hero polish (user reported distortion) */
@media(max-width:768px){
  .ayg-hero-jazeera{grid-template-columns:1fr;gap:14px}
  .ayg-hero-jazeera .ayg-jz-body h2{font-size:1.25rem;line-height:1.5}
  .ayg-jz-side{margin-top:4px}
  .ayg-hero-mosaic{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .ayg-hero-mosaic .ayg-ocard:first-child{grid-column:1 / -1}
  .ayg-hero-mosaic .ayg-ocard:first-child{aspect-ratio:16/9}
  .ayg-hero-mosaic .ayg-ocard{aspect-ratio:1/1}
  .ayg-hero-mosaic .ayg-ocard h3{font-size:.92rem;line-height:1.45}
}

/* v41 — Kicker + Most-Read tabbed block (Al Arabiya-style) */
.ayg-kicker{display:inline-block;font-size:.72rem;font-weight:700;color:var(--ayg-red);
  margin-bottom:.35rem;letter-spacing:.01em;text-decoration:none;position:relative;padding-inline-start:.6rem}
.ayg-kicker::before{content:"";position:absolute;inset-inline-start:0;top:50%;transform:translateY(-50%);
  width:3px;height:.85em;background:var(--ayg-red);border-radius:2px}
.ayg-kicker:hover{text-decoration:underline}
.ayg-ocard .ayg-kicker{color:#fff}
.ayg-ocard .ayg-kicker::before{background:#fff}

.ayg-mostread{background:var(--ayg-bg);border:1px solid var(--ayg-line);border-radius:14px;padding:18px;margin:18px 0}
.ayg-mr-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-bottom:14px}
.ayg-mr-head h2{font-size:1.15rem;margin:0;display:flex;align-items:center;gap:8px}
.ayg-mr-tabs{display:inline-flex;background:var(--ayg-bg-alt);border-radius:999px;padding:3px}
.ayg-mr-tab{border:0;background:transparent;color:var(--ayg-muted);font-family:inherit;font-size:.85rem;
  font-weight:600;padding:6px 16px;border-radius:999px;cursor:pointer;transition:.2s}
.ayg-mr-tab.is-active{background:var(--ayg-red);color:#fff}
.ayg-mr-list{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.ayg-mr-list[hidden]{display:none}
.ayg-mr-item{display:flex;align-items:flex-start;gap:12px;padding:11px 0;border-bottom:1px solid var(--ayg-line)}
.ayg-mr-item:last-child{border-bottom:0}
.ayg-mr-rank{flex:0 0 auto;width:30px;height:30px;border-radius:8px;background:var(--ayg-bg-alt);
  color:var(--ayg-red);font-weight:800;font-size:1rem;display:flex;align-items:center;justify-content:center}
.ayg-mr-item:nth-child(1) .ayg-mr-rank{background:var(--ayg-red);color:#fff}
.ayg-mr-link{text-decoration:none;display:flex;flex-direction:column;gap:2px}
.ayg-mr-cat{font-size:.7rem;font-weight:700;color:var(--ayg-red)}
.ayg-mr-title{color:var(--ayg-ink);font-weight:600;line-height:1.5;font-size:.95rem}
.ayg-mr-link:hover .ayg-mr-title{color:var(--ayg-red)}

/* v41 — Category carousel (horizontal scroll, Al Arabiya-style) */
.ayg-carousel{position:relative;overflow:hidden}
.ayg-carousel-track{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;
  padding-bottom:8px;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
.ayg-carousel-track>.ayg-card{flex:0 0 280px;scroll-snap-align:start}
.ayg-carousel-track::-webkit-scrollbar{height:6px}
.ayg-carousel-track::-webkit-scrollbar-thumb{background:var(--ayg-line);border-radius:999px}
@media(max-width:768px){.ayg-carousel-track>.ayg-card{flex:0 0 80%}}

/* ============================================================
   v42 — Modern responsive polish (mobile + desktop refinement)
   Consolidated layer; tightens hero, cards, kicker, most-read.
   ============================================================ */

/* Kicker: slightly bolder, modern uppercase-ish weight */
.ayg-kicker{font-size:.7rem;text-transform:none;opacity:.95}
.ayg-card-body .ayg-kicker,.ayg-list-body .ayg-kicker{margin-bottom:.3rem}

/* Cards: smoother modern hover lift + image zoom */
.ayg-card{transition:transform .25s ease,box-shadow .25s ease}
.ayg-card:hover{transform:translateY(-4px);box-shadow:0 10px 30px rgba(0,0,0,.10)}
.ayg-card-thumb img{transition:transform .4s ease}
.ayg-card:hover .ayg-card-thumb img{transform:scale(1.04)}

/* Desktop: a touch more breathing room between sections */
@media(min-width:1101px){
  .ayg-section{margin-bottom:42px}
  .ayg-sec-head{margin-bottom:18px}
}

/* Tablet */
@media(max-width:1100px) and (min-width:769px){
  .ayg-cards.cols-4{grid-template-columns:repeat(3,1fr);gap:18px}
}

/* ---- Phones: clean, consistent vertical cards (Al Arabiya-style) ---- */
@media(max-width:768px){
  .ayg-wrap{padding-inline:12px}
  .ayg-section{margin-bottom:26px}
  /* Standard grids: two even columns on phone for a tidy, uniform look */
  .ayg-cards:not(.ayg-carousel-track),.ayg-cards.cols-3,.ayg-cards.cols-4{grid-template-columns:1fr 1fr;gap:12px}
  .ayg-cards .ayg-card .ayg-card-excerpt{display:none}
  .ayg-cards .ayg-card .ayg-card-title{font-size:.92rem;line-height:1.5}
  .ayg-cards .ayg-card-body{padding:10px 11px 12px;gap:5px}
  .ayg-sec-title{font-size:1.15rem}
  .ayg-mostread{padding:14px;border-radius:12px}
  .ayg-mr-head{flex-direction:column;align-items:flex-start}
  .ayg-mr-tabs{width:100%;justify-content:space-between}
  .ayg-mr-tab{flex:1;text-align:center;padding:7px 8px}
}

/* Very small phones: single column so cards never feel cramped */
@media(max-width:430px){
  .ayg-cards:not(.ayg-carousel-track),.ayg-cards.cols-3,.ayg-cards.cols-4{grid-template-columns:1fr}
  .ayg-cards .ayg-card .ayg-card-title{font-size:1rem}
  .ayg-mr-title{font-size:.9rem}
}

/* v43 — Grouped "read also" block (numbered / dotted, news-portal style) */
.ayg-inread-block{background:var(--ayg-bg-alt);border-inline-start:4px solid var(--ayg-red);
  border-radius:10px;padding:16px 18px;margin:26px 0}
.ayg-irb-label{display:flex;align-items:center;gap:7px;font-weight:800;color:var(--ayg-red);
  font-size:.95rem;margin-bottom:10px}
.ayg-irb-list{margin:0;padding-inline-start:1.4em;display:grid;gap:9px}
.ayg-irb-list li{line-height:1.6}
.ayg-irb-list li a{color:var(--ayg-ink);text-decoration:none;font-weight:600;transition:color .2s}
.ayg-irb-list li a:hover{color:var(--ayg-red);text-decoration:underline}
.ayg-inread-block.marker-numbers .ayg-irb-list{list-style:none;padding-inline-start:0;counter-reset:irb}
.ayg-inread-block.marker-numbers .ayg-irb-list li{counter-increment:irb;display:flex;gap:11px;align-items:flex-start}
.ayg-inread-block.marker-numbers .ayg-irb-list li::before{content:counter(irb);flex:0 0 auto;
  width:24px;height:24px;background:var(--ayg-red);color:#fff;border-radius:7px;font-weight:800;
  font-size:.8rem;display:flex;align-items:center;justify-content:center;margin-top:1px}
.ayg-inread-block.marker-dots .ayg-irb-list{list-style:none;padding-inline-start:0}
.ayg-inread-block.marker-dots .ayg-irb-list li{display:flex;gap:10px;align-items:flex-start}
.ayg-inread-block.marker-dots .ayg-irb-list li::before{content:"";flex:0 0 auto;width:7px;height:7px;
  background:var(--ayg-red);border-radius:50%;margin-top:.6em}

/* v44 — Header social: keep on desktop, relocate to drawer on phones */
.ayg-mm-social{margin:18px 16px 8px;padding-top:16px;border-top:1px solid var(--ayg-line)}
.ayg-mm-social-label{display:block;font-size:.8rem;font-weight:700;color:var(--ayg-muted);margin-bottom:10px}
.ayg-mm-social-icons{display:flex;flex-wrap:wrap;gap:10px}
.ayg-mm-social-icons a{width:38px;height:38px;border-radius:10px;background:var(--ayg-bg-alt);
  display:flex;align-items:center;justify-content:center;color:var(--ayg-ink);transition:.2s}
.ayg-mm-social-icons a:hover{background:var(--ayg-red);color:#fff}
/* On phones the top bar gets cramped → hide its social, the drawer carries them */
@media(max-width:768px){.ayg-topbar .ayg-social{display:none}}
/* On desktop the drawer is hidden anyway, so its social never shows there */
@media(min-width:901px){.ayg-mm-social{display:none}}

/* v44 — Compact article meta: author + reading-time pill + details dropdown */
.ayg-meta-compact{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.ayg-meta-compact .author{display:flex;align-items:center;gap:9px}
.ayg-meta-compact .author img{width:40px;height:40px;border-radius:50%}
.ayg-meta-author-name{font-weight:700;color:var(--ayg-ink);text-decoration:none;font-size:.98rem}
.ayg-meta-author-name:hover{color:var(--ayg-red)}
.ayg-meta-rt{display:inline-flex;align-items:center;gap:5px;background:var(--ayg-bg-alt);
  color:var(--ayg-muted);font-size:.82rem;font-weight:600;padding:5px 11px;border-radius:999px}
.ayg-meta-details{position:relative}
.ayg-meta-details summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:6px;
  font-size:.85rem;color:var(--ayg-muted);padding:5px 10px;border-radius:8px;transition:.2s}
.ayg-meta-details summary::-webkit-details-marker{display:none}
.ayg-meta-details summary:hover{background:var(--ayg-bg-alt);color:var(--ayg-ink)}
.ayg-meta-details[open] summary svg{transform:rotate(180deg)}
.ayg-meta-details summary svg{transition:transform .2s}
.ayg-meta-pop{position:absolute;inset-inline-start:0;top:calc(100% + 6px);z-index:30;min-width:230px;
  background:var(--ayg-bg);border:1px solid var(--ayg-line);border-radius:12px;
  box-shadow:var(--ayg-shadow-lg);padding:12px 14px;display:grid;gap:9px}
.ayg-meta-pop .mp{display:flex;align-items:center;gap:8px;font-size:.85rem;color:var(--ayg-muted)}
.ayg-meta-pop .mp a{color:var(--ayg-red);text-decoration:none}
.ayg-meta-pop time{color:var(--ayg-ink)}
@media(max-width:480px){.ayg-meta-pop{inset-inline-start:auto;inset-inline-end:0}}

/* v45 — Per-category overlay grid (full-image cards in a category section) */
.ayg-cat-overlay-grid .ayg-ocard{aspect-ratio:16/10;min-height:0;border-radius:12px;overflow:hidden}


/* v46 — "updated" highlight inside the meta dropdown summary */
.ayg-sum-updated{display:inline-flex;align-items:center;gap:5px;color:var(--ayg-red);font-weight:700}
.ayg-sum-updated svg{vertical-align:middle}

/* v47 — Fix per-category section layouts on mobile (lead / list / overlay) */
@media(max-width:768px){
  /* Lead: main on top, then list — clean single column */
  .ayg-lead-row{grid-template-columns:1fr;gap:18px}
  .ayg-lead-main .ayg-card-thumb{aspect-ratio:16/9}
  .ayg-lead-list{gap:12px}
  .ayg-wpost{gap:10px;align-items:flex-start}
  .ayg-wpost-thumb{width:96px;aspect-ratio:16/9;flex-shrink:0}
  .ayg-wpost-body h4{font-size:.95rem}
  /* List style: single column on phone */
  /* Overlay category grid: 2-up, proper ratio */
}
@media(max-width:480px){
  .ayg-wpost-thumb{width:84px}
}

/* ============================================================
   v48 — AUTHORITATIVE CONSOLIDATION LAYER
   Final, single source of truth for card/grid/section sizing.
   Placed last so it wins the cascade and ends the fragmentation
   that caused per-category shapes to render inconsistently.
   ============================================================ */

/* --- Standard card --- */
.ayg-card{display:flex;flex-direction:column;background:var(--ayg-card);
  border:1px solid var(--ayg-line);border-radius:14px;overflow:hidden}
.ayg-card-thumb{position:relative;display:block;aspect-ratio:16/10;overflow:hidden;
  background:var(--ayg-bg-alt);margin:0}
.ayg-card-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.ayg-card-body{display:flex;flex-direction:column;flex:1;gap:7px;padding:14px 16px 16px}

/* --- Card grid (default desktop: even, predictable columns) --- */
.ayg-cards{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;align-items:start}
.ayg-cards.cols-3{grid-template-columns:repeat(3,1fr)}
.ayg-cards.cols-4{grid-template-columns:repeat(4,1fr)}
.ayg-cards>.ayg-card{height:100%}

/* --- List style (clean 2-col on desktop, 1-col when narrow) --- */
.ayg-clist{display:grid;grid-template-columns:1fr 1fr;gap:6px 28px}
.ayg-clist .ayg-list-item{display:flex;gap:13px;align-items:flex-start;min-width:0;
  padding:13px 0;border-bottom:1px solid var(--ayg-line)}
.ayg-clist .ayg-list-thumb{flex:0 0 92px;width:92px;height:64px;border-radius:8px;overflow:hidden;background:var(--ayg-bg-alt)}
.ayg-clist .ayg-list-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.ayg-clist .ayg-list-body{flex:1;min-width:0}

/* --- Lead style (big main + side list) --- */
.ayg-lead-row{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:24px;align-items:start}
.ayg-lead-main .ayg-card-thumb{aspect-ratio:16/9;border-radius:14px;margin-bottom:12px}
.ayg-lead-list{display:flex;flex-direction:column;gap:14px;min-width:0}
.ayg-wpost{display:flex;gap:12px;align-items:flex-start;min-width:0}
.ayg-wpost-thumb{flex:0 0 100px;width:100px;aspect-ratio:16/10;border-radius:9px;overflow:hidden;background:var(--ayg-bg-alt)}
.ayg-wpost-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.ayg-wpost-body{flex:1;min-width:0}
.ayg-wpost-body h4{font-size:.95rem;line-height:1.5;margin:0;overflow-wrap:break-word}

/* --- Carousel style --- */
.ayg-carousel{overflow:hidden}
.ayg-carousel-track{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;
  padding-bottom:8px;scrollbar-width:thin}
.ayg-carousel-track>.ayg-card{flex:0 0 280px;scroll-snap-align:start;height:auto}

/* --- Overlay style (full-image cards) --- */
.ayg-cat-overlay-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.ayg-cat-overlay-grid .ayg-ocard{aspect-ratio:16/10;min-height:0;border-radius:12px;overflow:hidden}

/* --- Section spacing --- */
.ayg-section{margin:0 0 38px}

/* ---- Responsive: tablets ---- */
@media(max-width:1100px){
  .ayg-cards.cols-4{grid-template-columns:repeat(3,1fr)}
  .ayg-cat-overlay-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:900px){
  .ayg-lead-row{grid-template-columns:1fr;gap:16px}
}
/* ---- Responsive: phones (consistent vertical cards) ---- */
@media(max-width:980px){
  .ayg-clist{grid-template-columns:1fr;gap:0}
}
@media(max-width:768px){
  .ayg-cards,.ayg-cards.cols-3,.ayg-cards.cols-4{grid-template-columns:repeat(2,1fr);gap:12px}
  .ayg-cat-overlay-grid{grid-template-columns:repeat(2,1fr);gap:10px}
  .ayg-carousel-track>.ayg-card{flex:0 0 78%}
  .ayg-wpost-thumb{flex:0 0 96px;width:96px}
  .ayg-card-body{padding:10px 12px 13px;gap:5px}
  .ayg-card-excerpt{display:none}
}
@media(max-width:430px){
  .ayg-cards,.ayg-cards.cols-3,.ayg-cards.cols-4,.ayg-cat-overlay-grid{grid-template-columns:1fr}
}

/* v49 — Optional boxed homepage sections (white card look like Al Arabiya) */
body.ayg-boxed-sections .ayg-main > .ayg-section{
  background:var(--ayg-card);border:1px solid var(--ayg-line);border-radius:16px;
  padding:22px 24px;box-shadow:0 1px 3px rgba(0,0,0,.04)}
html[data-theme="dark"] body.ayg-boxed-sections .ayg-main > .ayg-section{
  background:var(--ayg-card);border-color:var(--ayg-line)}
body.ayg-boxed-sections .ayg-main > .ayg-section .ayg-sec-head{margin-top:0}
@media(max-width:768px){
  body.ayg-boxed-sections .ayg-main > .ayg-section{padding:16px 14px;border-radius:12px}
}

/* v50 — Professional font-size control (replaces plain A+/A− buttons) */
.ayg-font-control{display:inline-flex;align-items:center;gap:4px;background:var(--ayg-card);
  border:1px solid var(--ayg-line);border-radius:999px;padding:4px 6px;min-height:38px}
.ayg-font-ic{display:inline-flex;align-items:baseline;gap:1px;color:var(--ayg-muted);
  font-family:var(--font-head);font-weight:800;padding:0 6px 0 4px;border-inline-end:1px solid var(--ayg-line);margin-inline-end:2px}
.ayg-font-ic-sm{font-size:.7rem}
.ayg-font-ic-lg{font-size:1rem}
.ayg-font-btn{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;
  border:0;background:transparent;color:var(--ayg-ink);border-radius:50%;cursor:pointer;transition:.15s}
.ayg-font-btn:hover{background:var(--ayg-red);color:#fff}
.ayg-font-btn:disabled{opacity:.35;cursor:default;background:transparent;color:var(--ayg-muted)}
.ayg-font-level{display:inline-flex;align-items:center;justify-content:center;min-width:26px;
  font-family:var(--font-head);font-weight:800;color:var(--ayg-ink);line-height:1;transition:font-size .15s}
.ayg-font-reset{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;
  border:0;background:var(--ayg-bg-alt);color:var(--ayg-muted);border-radius:50%;cursor:pointer;
  margin-inline-start:2px;transition:.15s}
.ayg-font-reset:hover{background:var(--ayg-red);color:#fff}
html[data-theme="dark"] .ayg-font-control{background:var(--ayg-card);border-color:var(--ayg-line)}

/* v51 — Header actions polish (cleaner toggle + search buttons) */
.ayg-header-actions{gap:8px}
.ayg-theme-toggle--main,.ayg-search-btn{width:40px;height:40px;border-radius:11px;
  border:1px solid var(--ayg-line);background:var(--ayg-bg-alt);color:var(--ayg-ink);
  display:inline-flex;align-items:center;justify-content:center;transition:all .18s}
.ayg-theme-toggle--main:hover,.ayg-search-btn:hover{background:var(--ayg-red);color:#fff;border-color:var(--ayg-red);transform:translateY(-1px)}
/* Ensure only ONE icon shows (defensive against optimizers) */
.ayg-theme-toggle--main .icon-sun,.ayg-theme-toggle--main .icon-moon{display:none}
.ayg-theme-toggle--main .icon-moon{display:inline-flex}
html[data-theme="dark"] .ayg-theme-toggle--main .icon-moon{display:none}
html[data-theme="dark"] .ayg-theme-toggle--main .icon-sun{display:inline-flex}

/* v51 — Professional video section (cinematic cards + play button) */
.ayg-video-section .ayg-ocard{position:relative;aspect-ratio:16/9;min-height:0;border-radius:14px;overflow:hidden}
.ayg-video-section .ayg-ocard::after{content:"";position:absolute;inset:0;margin:auto;width:60px;height:60px;
  background:rgba(200,16,46,.92);border-radius:50%;z-index:3;transition:transform .2s,background .2s;
  box-shadow:0 6px 24px rgba(0,0,0,.4)}
.ayg-video-section .ayg-ocard::before{content:"";position:absolute;inset:0;margin:auto;z-index:4;
  width:0;height:0;border-style:solid;border-width:11px 0 11px 18px;
  border-color:transparent transparent transparent #fff;transform:translateX(3px)}
.ayg-video-section .ayg-ocard:hover::after{transform:scale(1.12);background:var(--ayg-red)}
.ayg-video-section .ayg-ocard .ov{background:linear-gradient(to top,rgba(0,0,0,.88),rgba(0,0,0,.15) 55%,rgba(0,0,0,.25))}
.ayg-video-section .ayg-ocard h3{font-size:1rem;line-height:1.5}

/* v52 — Fix nested-link card structure (image now inside link, badge sibling) */
.ayg-card-thumb-link{display:block;position:absolute;inset:0;width:100%;height:100%}
.ayg-card-thumb-link img{width:100%;height:100%;object-fit:cover}
.ayg-related-cards .ayg-card-thumb-link{position:absolute;inset:0}
.ayg-related-cards .ayg-card-thumb-link img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ayg-card-thumb .ayg-cat-badge{position:absolute;bottom:0;inset-inline-start:0;z-index:3}

/* v53 — Select-to-Share bubble (highlight article text → tweet/copy) */
.ayg-sel-share{position:absolute;transform:translateX(-50%);z-index:9999;display:flex;gap:2px;
  background:var(--ayg-ink);border-radius:10px;padding:4px;box-shadow:0 8px 24px rgba(0,0,0,.28);
  animation:aygSelIn .15s ease}
@keyframes aygSelIn{from{opacity:0;transform:translateX(-50%) translateY(4px)}to{opacity:1;transform:translateX(-50%) translateY(0)}}
.ayg-sel-share::after{content:"";position:absolute;bottom:-5px;left:50%;transform:translateX(-50%);
  border:6px solid transparent;border-top-color:var(--ayg-ink);border-bottom:0}
.ayg-sel-share button{display:inline-flex;align-items:center;gap:6px;background:transparent;border:0;
  color:#fff;cursor:pointer;padding:6px 12px;border-radius:7px;font-family:var(--font-head);
  font-weight:700;font-size:.82rem;transition:background .15s}
.ayg-sel-share button:hover{background:rgba(255,255,255,.14)}
.ayg-sel-share .ayg-sel-x:hover{background:var(--ayg-red)}
.ayg-sel-share .ayg-sel-copy.done{background:#0e9f6e}

/* v54 — "Updated" freshness badge on cards (honest: real modified date) */
.ayg-upd-badge{display:inline-flex;align-items:center;gap:3px;vertical-align:middle;
  background:#0e9f6e;color:#fff;font-family:var(--font-head);font-weight:800;font-size:.66rem;
  padding:2px 8px;border-radius:6px;margin-inline-end:6px;line-height:1.6;white-space:nowrap}
.ayg-upd-badge svg{width:11px;height:11px}

/* v55 — Under-nav banner/coverage/ticker slot */
.ayg-under-nav{margin:14px 0 0}
.ayg-under-nav:empty,.ayg-under-nav .ayg-wrap:empty{display:none;margin:0}
.ayg-under-nav .ayg-ad-slot,.ayg-under-nav .ayg-embed-slot{margin:0;text-align:center}
.ayg-under-nav .ayg-embed-slot{width:100%}
.ayg-under-nav img{max-width:100%;height:auto;border-radius:10px}
