/* Makkah Al-Youm 1.5.29: isolated magazine-style homepage.
   All selectors are scoped under .may-news-home to protect existing article pages. */
.may-news-home{--news-accent:var(--may-user-accent,#92223c);--news-gold:#c99a42;--news-panel:var(--may-card,#fff);--news-text:var(--may-ink,#20242b);--news-muted:var(--may-muted,#69717d);--news-border:var(--may-border,#e3e7ec);direction:rtl;text-align:right;width:100%;max-width:100%;margin:0 auto;color:var(--news-text);font-family:inherit;line-height:1.7;overflow-x:clip}
.may-news-home *{box-sizing:border-box}
.may-news-home a{text-decoration:none}
.may-news-home :is(a,button):focus-visible{outline:3px solid var(--news-accent);outline-offset:3px}
.may-news-home :is(h1,h2,h3,p){margin-block:0}
.may-news-categories{background:#121316;color:#fff;width:100%;border-block:1px solid #383239}
.may-news-categories__track{display:flex;gap:0;align-items:stretch;max-width:1190px;margin:auto;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scroll-snap-type:x proximity;padding:8px 12px}
.may-news-categories__item{flex:0 0 auto;min-width:104px;max-width:150px;padding:10px 12px;color:#fff!important;text-align:center;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:7px;scroll-snap-align:start;border-radius:12px;font-size:14px;font-weight:750;line-height:1.4;transition:background-color .2s}
.may-news-categories__item:hover,.may-news-categories__item:focus-visible{background:#303038}
.may-news-categories__symbol{display:grid;place-items:center;width:37px;height:37px;background:#fff;border:1px solid #ddd;color:#842240;font-size:19px;font-weight:700;border-radius:9px;line-height:1}
.may-news-layout{max-width:1160px;width:calc(100% - 28px);margin:26px auto 65px;display:flex;flex-direction:column;gap:24px;min-width:0}
.may-news-lead{min-width:0}
.may-news-lead__heading{display:flex;align-items:center;justify-content:space-between;margin:0 0 13px;gap:10px}
.may-news-eyebrow{color:var(--news-accent);font-size:13px;font-weight:800}
.may-news-lead__heading h1{font-size:clamp(21px,3vw,29px);line-height:1.35;color:var(--news-text);font-weight:850}
.may-news-carousel{width:100%;height:auto;aspect-ratio:1.95;min-height:255px;max-height:510px;position:relative;isolation:isolate;overflow:hidden;background:#1b1b1f;border-radius:20px;box-shadow:0 10px 28px rgba(0,0,0,.13)}
.may-news-carousel .may-news-slide{position:absolute;inset:0;width:100%;height:100%}
.may-news-carousel .may-news-slide[hidden]{display:none!important}
.may-news-slide__link,.may-news-slide__media,.may-news-slide__shade{position:absolute;inset:0;display:block}
.may-news-slide__media{background:#2b2225}
.may-news-slide__media img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
.may-news-slide__media .may-news-fallback{width:100%;height:100%;font-size:clamp(25px,5vw,55px)}
.may-news-slide__shade{background:linear-gradient(to top,rgba(10,10,13,.91) 0%,rgba(10,10,13,.56) 32%,transparent 78%)}
.may-news-slide__copy{position:absolute;bottom:28px;right:32px;left:75px;color:#fff;display:flex;flex-direction:column;gap:12px;max-width:85%}
.may-news-slide__tag{align-self:flex-start;background:var(--news-accent);padding:4px 10px;border-radius:7px;color:#fff;font-weight:700;font-size:12px}
.may-news-slide__copy strong{display:block;color:#fff;font-size:clamp(20px,3.2vw,34px);line-height:1.45;font-weight:850;max-width:950px;overflow-wrap:break-word;text-shadow:0 2px 9px #111}
.may-news-carousel__prev,.may-news-carousel__next{position:absolute;z-index:3;top:45%;width:43px;height:43px;border-radius:50%;display:grid;place-items:center;border:1px solid rgba(255,255,255,.6);background:rgba(27,23,27,.7);color:#fff;cursor:pointer;font-size:21px;line-height:1}
.may-news-carousel__prev{right:14px}.may-news-carousel__next{left:14px}
.may-news-carousel__dots{position:absolute;z-index:3;bottom:9px;left:0;right:0;display:flex;align-items:center;justify-content:center;gap:7px}
.may-news-carousel__dots button{height:7px;width:7px;background:rgba(255,255,255,.6);border:0;border-radius:10px;cursor:pointer;padding:0}
.may-news-carousel__dots button[aria-current="true"]{width:24px;background:#fff}
.may-news-panel{background:var(--news-panel);border:1px solid var(--news-border);border-radius:20px;padding:25px;box-shadow:0 4px 18px rgba(35,25,35,.035);min-width:0;overflow:hidden}
.may-news-panel__heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:12px;margin-bottom:16px;border-bottom:1px solid var(--news-border);position:relative}
.may-news-panel__heading::after{content:"";position:absolute;bottom:-2px;right:0;width:125px;height:4px;border-radius:4px;background:linear-gradient(90deg,var(--news-gold),var(--news-accent))}
.may-news-panel__heading h2{font-size:clamp(22px,2.7vw,29px);line-height:1.4;color:var(--news-text);font-weight:850}
.may-news-more{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:85px;padding:8px 17px;border-radius:12px;background:linear-gradient(115deg,var(--news-accent),#b48b3f);color:#fff!important;font-size:14px;font-weight:700;white-space:nowrap}
.may-news-more:hover{filter:brightness(1.08)}
.may-news-day__photo{display:block;background:#f0eceb;width:100%;height:auto;aspect-ratio:16/8.5;max-height:430px;border-radius:15px;overflow:hidden}
.may-news-day__photo img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
.may-news-day__photo .may-news-fallback{width:100%;height:100%}
.may-news-day__copy{padding:15px 4px 0}
.may-news-day__copy h3{font-size:clamp(20px,2.4vw,26px);line-height:1.5;font-weight:850;color:var(--news-text);overflow-wrap:break-word}
.may-news-day__copy h3 a{color:inherit}
.may-news-day__copy p{font-size:15px;color:var(--news-muted);line-height:1.8;margin-top:8px}
.may-news-moretext{display:inline-block;margin-top:8px;color:var(--news-accent);font-size:14px;font-weight:800}
.may-news-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;align-items:start;min-width:0}
.may-news-card{display:flex;flex-direction:column;border:1px solid var(--news-border);background:var(--news-panel);border-radius:15px;overflow:hidden;min-width:0;width:100%;height:auto}
.may-news-card__media{display:block;aspect-ratio:16/10;width:100%;overflow:hidden;background:#f4f0f0;flex:none}
.may-news-card__media .may-news-photo{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center}
.may-news-fallback{display:grid;place-items:center;width:100%;height:100%;background:linear-gradient(140deg,#f2eaeb,#f7f2ed);color:#79223b;font-weight:800;text-align:center}
.may-news-card__content{padding:12px 11px 15px;min-width:0;display:flex;flex-direction:column;gap:7px;flex:1;align-items:flex-start}
.may-news-card__cat{color:var(--news-accent);font-size:11px;font-weight:850}
.may-news-card__content h3{color:var(--news-text);font-size:clamp(15px,1.5vw,19px);font-weight:800;line-height:1.58;overflow-wrap:break-word;word-break:normal;min-width:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;line-clamp:3;overflow:hidden}
.may-news-card__content h3 a{color:inherit}
.may-news-card__content h3 a:hover{color:var(--news-accent)}
.may-news-card__content time{font-size:11px;color:var(--news-muted);line-height:1.5;margin-top:auto;padding-top:7px}
.may-news-ad{width:100%;max-width:100%;min-width:0;overflow:hidden}
.may-news-ad :is(img,video,iframe){max-width:100%}
.may-news-empty h2{font-size:25px;margin-bottom:9px}
.may-news-empty p{font-size:15px;color:var(--news-muted)}
html.may-dark .may-news-home .may-news-card__media,html.may-dark .may-news-home .may-news-day__photo{background:#22252b}
@media(max-width:900px){.may-news-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.may-news-layout{width:calc(100% - 24px);gap:18px}.may-news-panel{padding:20px}}
@media(max-width:600px){.may-news-layout{width:calc(100% - 22px);margin-top:17px;gap:18px}.may-news-categories__track{gap:1px;padding:7px 6px}.may-news-categories__item{min-width:82px;max-width:110px;padding:8px 6px;font-size:12px}.may-news-categories__symbol{width:32px;height:32px;font-size:17px}.may-news-lead__heading h1{font-size:22px}.may-news-carousel{aspect-ratio:1.16;min-height:270px;max-height:340px;border-radius:16px}.may-news-slide__copy{bottom:28px;right:17px;left:45px;gap:8px;max-width:calc(100% - 70px)}.may-news-slide__copy strong{font-size:clamp(18px,5vw,22px);line-height:1.5;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;line-clamp:4;overflow:hidden}.may-news-carousel__prev,.may-news-carousel__next{width:32px;height:32px;font-size:18px;top:40%}.may-news-carousel__prev{right:7px}.may-news-carousel__next{left:7px}.may-news-panel{padding:15px 13px;border-radius:17px}.may-news-panel__heading{margin-bottom:13px;padding-bottom:12px}.may-news-panel__heading h2{font-size:23px}.may-news-more{padding:7px 11px;min-width:70px;font-size:12px}.may-news-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.may-news-card{border-radius:12px}.may-news-card__media{aspect-ratio:1.3}.may-news-card__content{padding:9px 8px 11px;gap:5px}.may-news-card__content h3{font-size:15px;line-height:1.5;-webkit-line-clamp:3;line-clamp:3}.may-news-card__cat{font-size:10px}.may-news-card__content time{font-size:10px}.may-news-day__photo{aspect-ratio:1.65}.may-news-day__copy h3{font-size:19px}.may-news-day__copy p{font-size:14px;line-height:1.75}}
@media(max-width:350px){.may-news-card__content h3{font-size:14px}.may-news-grid{gap:8px}.may-news-panel{padding:12px 10px}.may-news-more{min-width:65px}}
@media(prefers-reduced-motion:reduce){.may-news-categories__item{transition:none}}

/* 1.5.29: native video / privacy-respecting YouTube area beneath latest articles. */
.may-news-video__frame{display:block;position:relative;width:100%;max-width:100%;aspect-ratio:16/9;overflow:hidden;border-radius:15px;background:#101014}
.may-news-video__frame iframe,.may-news-video__frame video{display:block;width:100%;height:100%;border:0;max-width:100%;max-height:100%;object-fit:contain;background:#101014}
.may-news-video__caption{font-size:14px;color:var(--news-muted);margin-top:12px!important;line-height:1.85;overflow-wrap:anywhere}
@media(max-width:600px){.may-news-video__frame{border-radius:11px}.may-news-video__caption{font-size:13px}}

.may-news-video__watch-link{font-size:13px;margin-top:10px!important}.may-news-video__watch-link a{color:var(--news-accent);text-decoration:underline}

/* 1.5.30: retain category navigation when deduplication exhausts its cards. */
.may-news-category__empty{padding:22px 18px;border:1px dashed var(--news-border);border-radius:14px;background:rgba(127,127,127,.035);text-align:center;line-height:1.9;color:var(--news-muted);font-size:14px}
.may-news-category__empty p{margin:0 0 10px}
.may-news-category__empty a{color:var(--news-accent);text-decoration:none;font-weight:800;display:inline-flex;align-items:center;gap:6px}
.may-news-category__empty a:hover{text-decoration:underline}
@media(max-width:600px){.may-news-category__empty{padding:16px 12px;font-size:13px}}
