/* ==========================================================================
   MRE Media — design system
   Mobile-first. Logical properties only (inline-start = right in Arabic),
   so the layout mirrors automatically with the document direction.
   Breakpoints: 576 · 768 (tablet) · 1024 (desktop) · 1200 (wide)
   ========================================================================== */

/* ---------- 1. Fonts (self-hosted IBM Plex Sans Arabic, OFL) ---------- */
@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/plex-arabic-arabic-400.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/plex-arabic-arabic-500.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/plex-arabic-arabic-700.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/plex-arabic-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/plex-arabic-latin-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/plex-arabic-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- 2. Tokens ----------
   Brand palette taken from the MRE Media logo (#0046FF).
   Changing --accent (and --accent-on-dark) re-themes the whole site. */
:root {
	--font: "Plex Arabic", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;

	--ink: #15171b;          /* headlines, rules */
	--ink-2: #3b3f46;        /* body copy */
	--muted: #6a6f78;        /* meta, labels (4.9:1 on white) */
	--line: #e4e2dd;         /* hairlines */
	--line-2: #cfccc4;       /* stronger borders */
	--paper: #ffffff;
	--paper-2: #f4f6fb;      /* tinted surfaces (cool, matches the blue) */
	--paper-3: #e8ebf2;      /* image backgrounds */
	--dark: #0b1531;         /* deep navy: top bar, sports band, footer */
	--dark-2: #15214a;       /* raised surfaces on navy */

	--accent: #0046ff;       /* logo blue — 6.4:1 on white, AA for text */
	--accent-strong: #0036c7;/* hover / pressed */
	--accent-ink: #ffffff;   /* text on blue — 6.4:1 */
	--accent-soft: #e8eeff;  /* light blue tint */
	--accent-on-dark: #8aa8ff; /* blue for text on navy — 7.1:1 */

	--radius: 2px;
	--gutter: 16px;
	--container: 1280px;
	--header-offset: var(--wp-admin--admin-bar--height, 0px);

	--fs-xs: 0.75rem;
	--fs-sm: 0.8125rem;
	--fs-md: 0.9375rem;
	--fs-base: 1rem;
}
@media (min-width: 768px) { :root { --gutter: 24px; } }

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: var(--fs-base);
	line-height: 1.75;
	color: var(--ink-2);
	background: var(--paper);
	overflow-x: hidden;
	text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.5; font-weight: 700; text-wrap: pretty; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
time { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body.is-locked { overflow: hidden; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.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;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; margin: 0; z-index: 1000;
	inset-block-start: 8px; inset-inline-start: 8px; padding: 10px 16px;
	background: var(--ink); color: #fff; font-weight: 700;
}

.icon { flex: none; }
.icon-btn {
	display: inline-grid; place-items: center; inline-size: 44px; block-size: 44px;
	padding: 0; border: 0; border-radius: var(--radius); background: transparent; color: var(--ink);
}
.icon-btn:hover { background: var(--paper-2); }

.btn {
	display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px;
	border-radius: var(--radius); background: var(--accent); color: var(--accent-ink);
	font-weight: 700; font-size: var(--fs-md);
}
.btn:hover { background: var(--accent-strong); }

/* ---------- 4. Top bar ---------- */
.topbar { background: var(--dark); color: #c3cbe0; font-size: var(--fs-xs); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-block-size: 34px; }
.topbar__info { display: flex; align-items: center; gap: 14px; white-space: nowrap; overflow: hidden; }
.topbar__date { color: #fff; font-weight: 500; }
.topbar__edition { display: inline-flex; align-items: center; gap: 4px; }
@media (max-width: 380px) { .topbar__edition { display: none; } }

.social { display: flex; align-items: center; gap: 2px; }
.social a { display: inline-grid; place-items: center; inline-size: 30px; block-size: 30px; border-radius: var(--radius); color: inherit; }
.social a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.social--empty { font-size: var(--fs-xs); opacity: 0.7; }

/* ---------- 5. Masthead ---------- */
.masthead {
	position: sticky; inset-block-start: var(--header-offset); z-index: 40;
	background: var(--paper); border-block-end: 1px solid var(--line);
}
.masthead__inner {
	display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px;
	min-block-size: 62px;
}
.site-branding { justify-self: center; min-inline-size: 0; }
.site-branding .custom-logo { max-block-size: 40px; inline-size: auto; }
.site-branding { line-height: 0; }
.masthead__search { display: none; grid-column: 1 / -1; padding-block-end: 12px; }
.masthead.is-search-open .masthead__search { display: block; }

@media (min-width: 768px) {
	.masthead__inner { grid-template-columns: auto auto 1fr; gap: 16px; min-block-size: 84px; }
	.site-branding { justify-self: start; }
	.site-branding .custom-logo { max-block-size: 56px; }
	.masthead__search { display: block; grid-column: auto; padding: 0; justify-self: end; inline-size: min(100%, 380px); }
	.masthead__search-btn { display: none; }
}
@media (min-width: 1024px) {
	.masthead { position: static; }
	.masthead__inner { grid-template-columns: auto 1fr; min-block-size: 96px; }
	.masthead__menu-btn { display: none; }
}

/* Logo */
.site-logo { display: block; line-height: 0; }
.site-logo img { block-size: 40px; inline-size: auto; }
@media (min-width: 768px) { .site-logo img { block-size: 54px; } }
@media (min-width: 1024px) { .site-logo img { block-size: 72px; } }

/* Search */
.search-form {
	display: flex; align-items: stretch; block-size: 44px;
	border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--paper); overflow: hidden;
}
.search-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-form__input {
	flex: 1; min-inline-size: 0; padding-inline: 14px; border: 0; background: transparent;
	font-size: var(--fs-md); outline: none;
}
.search-form__input::placeholder { color: var(--muted); }
.search-form__input::-webkit-search-cancel-button { display: none; }
.search-form__submit {
	display: grid; place-items: center; inline-size: 48px; border: 0;
	background: var(--accent); color: var(--accent-ink);
}
.search-form__submit:hover { background: var(--accent-strong); }

/* ---------- 6. Category navigation ---------- */
.nav-bar { background: var(--paper); border-block-end: 1px solid var(--line); }
.nav-bar__scroller {
	overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
	-webkit-mask-image: linear-gradient(to left, #000 88%, transparent);
	        mask-image: linear-gradient(to left, #000 88%, transparent);
}
[dir="ltr"] .nav-bar__scroller { -webkit-mask-image: linear-gradient(to right, #000 88%, transparent); mask-image: linear-gradient(to right, #000 88%, transparent); }
.nav-bar__scroller::-webkit-scrollbar { display: none; }
.nav-bar .nav-menu { display: flex; white-space: nowrap; }
.nav-bar .nav-menu > li { position: relative; }
.nav-bar .nav-menu > li > a {
	display: flex; align-items: center; block-size: 46px; padding-inline: 11px;
	font-size: var(--fs-md); font-weight: 600; color: var(--ink);
}
.nav-bar .nav-menu > li:first-child > a { padding-inline-start: 0; }
.nav-bar .nav-menu > li > a:hover { color: var(--accent); }
.nav-bar .current-menu-item > a,
.nav-bar .current-menu-ancestor > a { box-shadow: inset 0 -3px 0 var(--accent); }
.nav-bar .sub-menu { display: none; }

@media (min-width: 1024px) {
	.nav-bar { position: sticky; inset-block-start: var(--header-offset); z-index: 40; border-block-start: 3px solid var(--accent); }
	.nav-bar .nav-menu > li > a { block-size: 50px; padding-inline: 12px; }
}
/* Wide screens: everything fits, so dropdowns can open. */
@media (min-width: 1200px) {
	.nav-bar__scroller { overflow: visible; -webkit-mask-image: none; mask-image: none; }
	.nav-bar .sub-menu {
		position: absolute; inset-block-start: 100%; inset-inline-start: 0; z-index: 50; min-inline-size: 200px;
		padding-block: 6px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	}
	.nav-bar li:hover > .sub-menu, .nav-bar li:focus-within > .sub-menu { display: block; }
	.nav-bar .sub-menu a { display: block; padding: 8px 16px; font-size: var(--fs-md); white-space: normal; }
	.nav-bar .sub-menu a:hover { background: var(--paper-2); color: var(--accent); }
}

/* ---------- 7. Mobile drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer[hidden] { display: none; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(10, 12, 16, 0.5); opacity: 0; transition: opacity 0.2s; }
.drawer__panel {
	--drawer-x: -100%;
	position: absolute; inset-block: 0; inset-inline-start: 0; inline-size: min(86vw, 360px);
	display: flex; flex-direction: column; background: var(--paper); overflow-y: auto; overscroll-behavior: contain;
	transform: translateX(var(--drawer-x)); transition: transform 0.25s ease; outline: none;
}
[dir="rtl"] .drawer__panel { --drawer-x: 100%; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head {
	display: flex; align-items: center; justify-content: space-between; gap: 8px;
	padding-block: 10px; padding-inline: var(--gutter) 8px; border-block-end: 3px solid var(--accent);
}
.drawer__title { font-weight: 700; color: var(--ink); font-size: 1.125rem; }
.drawer__head .site-logo img, .drawer__head .custom-logo { block-size: 36px; max-block-size: 36px; inline-size: auto; }
.drawer__search { padding: 16px var(--gutter); }
.drawer-menu > li > a {
	display: flex; align-items: center; min-block-size: 50px; padding-inline: var(--gutter);
	border-block-end: 1px solid var(--line); font-weight: 600; font-size: 1.0625rem; color: var(--ink);
}
.drawer-menu > li.current-menu-item > a { color: var(--accent); box-shadow: inset -3px 0 0 var(--accent); }
[dir="ltr"] .drawer-menu > li.current-menu-item > a { box-shadow: inset 3px 0 0 var(--accent); }
.drawer-menu .sub-menu a { display: block; padding: 10px var(--gutter); padding-inline-start: calc(var(--gutter) + 16px); font-size: var(--fs-md); border-block-end: 1px solid var(--line); }
.drawer__foot { margin-block-start: auto; padding: 16px var(--gutter); background: var(--dark); color: #c3cbe0; }

/* ---------- 8. Breaking-news ticker ---------- */
.ticker { border-block-end: 1px solid var(--line); background: var(--accent-soft); }
.ticker__inner {
	display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "label . controls" "list list list";
	align-items: center; column-gap: 12px; padding-block: 8px 10px;
}
.ticker__label {
	grid-area: label; display: inline-flex; align-items: center; gap: 8px;
	padding: 3px 12px; background: var(--accent); color: var(--accent-ink);
	font-size: var(--fs-sm); font-weight: 700; line-height: 1.6; border-radius: var(--radius);
}
.ticker__label::before { content: ""; inline-size: 6px; block-size: 6px; border-radius: 50%; background: currentColor; }
.ticker__list { grid-area: list; display: grid; min-inline-size: 0; padding-block-start: 6px; }
.ticker__item {
	grid-area: 1 / 1; display: flex; align-items: baseline; gap: 10px; min-inline-size: 0;
	visibility: hidden; opacity: 0; transition: opacity 0.5s ease, visibility 0.5s;
}
.ticker__item.is-active { visibility: visible; opacity: 1; }
.ticker__time { flex: none; font-size: var(--fs-xs); font-weight: 700; color: var(--accent); }
.ticker__item a {
	font-size: var(--fs-md); font-weight: 600; color: var(--ink); line-height: 1.6;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ticker__item a:hover { color: var(--accent); }
.ticker__controls { grid-area: controls; display: flex; gap: 2px; }
.ticker__btn {
	display: inline-grid; place-items: center; inline-size: 32px; block-size: 32px;
	border: 1px solid #c9d4f0; border-radius: var(--radius); background: var(--paper); color: var(--ink); padding: 0;
}
.ticker__btn:hover { border-color: var(--accent); color: var(--accent); }
.ticker__btn .icon--play { display: none; }
.ticker__btn[aria-pressed="true"] .icon--play { display: block; }
.ticker__btn[aria-pressed="true"] .icon--pause { display: none; }
.no-js .ticker__controls { display: none; }

@media (min-width: 768px) {
	.ticker__inner { grid-template-areas: "label list controls"; padding-block: 0; min-block-size: 48px; column-gap: 16px; }
	.ticker__list { padding: 0; }
	.ticker__item a { -webkit-line-clamp: 1; }
}

/* ---------- 9. Cards ---------- */
.card { position: relative; min-inline-size: 0; }
.card__media { display: block; position: relative; overflow: hidden; background: var(--paper-3); aspect-ratio: 16 / 9; }
.card__img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.card__img--empty { display: block; background: linear-gradient(135deg, var(--paper-3), #dedbd4); }
.card__body { min-inline-size: 0; }
.card__title { font-size: var(--fs-base); line-height: 1.55; }
.card__title a:hover { color: var(--accent); }
.card__excerpt {
	margin-block-start: 6px; font-size: var(--fs-md); line-height: 1.8; color: var(--ink-2);
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card__meta { display: flex; align-items: center; gap: 5px; margin-block-start: 6px; font-size: var(--fs-xs); color: var(--muted); }

.cat-label { display: inline-block; margin-block-end: 4px; font-size: var(--fs-xs); font-weight: 700; color: var(--accent); line-height: 1.5; }
.cat-label:hover { text-decoration: underline; text-underline-offset: 3px; }

/* lead */
.card--lead .card__body { padding-block-start: 12px; }
.card--lead .card__title { font-size: clamp(1.375rem, 0.95rem + 1.7vw, 2.125rem); line-height: 1.45; }
.card--lead .card__excerpt { font-size: var(--fs-base); -webkit-line-clamp: 2; }
@media (min-width: 768px) {
	.card--lead .card__body {
		position: absolute; inset-inline: 0; inset-block-end: 0; padding: 72px 28px 24px;
		background: linear-gradient(to top, rgba(12, 14, 18, 0.92) 0%, rgba(12, 14, 18, 0.62) 55%, rgba(12, 14, 18, 0) 100%);
		pointer-events: none;
	}
	.card--lead .card__body a { pointer-events: auto; }
	.card--lead .card__title, .card--lead .card__title a { color: #fff; }
	.card--lead .card__title a:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
	.card--lead .card__excerpt { color: rgba(255, 255, 255, 0.86); max-inline-size: 62ch; }
	.card--lead .card__meta { color: rgba(255, 255, 255, 0.75); }
	.card--lead .cat-label { padding: 1px 10px; background: var(--accent); color: var(--accent-ink); border-radius: var(--radius); }
}
@media (min-width: 1024px) {
	.card--lead .card__media { aspect-ratio: 16 / 10; }
}

/* side (hero secondary) */
.card--side { display: grid; grid-template-columns: 118px 1fr; gap: 12px; align-items: start; padding-block: 14px; border-block-start: 1px solid var(--line); }
.card--side .card__media { aspect-ratio: 3 / 2; }
.card--side .card__title { font-size: var(--fs-md); }
@media (min-width: 768px) and (max-width: 1023px) {
	.card--side { display: block; padding: 0; border: 0; }
	.card--side .card__media { aspect-ratio: 16 / 9; margin-block-end: 10px; }
	.card--side .card__title { font-size: 1.0625rem; }
}
@media (min-width: 1024px) {
	.card--side { grid-template-columns: 112px 1fr; gap: 12px; padding-block: 14px; }
	.card--side:first-child { padding-block-start: 0; border-block-start: 0; }
	.card--side:last-child { padding-block-end: 0; }
	.card--side .card__title { font-size: var(--fs-md); }
}
@media (min-width: 1200px) {
	.card--side { grid-template-columns: 148px 1fr; gap: 14px; padding-block: 16px; }
	.card--side .card__title { font-size: 1.0625rem; }
}

/* row (latest feed) */
.card--row { display: grid; grid-template-columns: 118px 1fr; gap: 14px; align-items: start; padding-block: 16px; border-block-end: 1px solid var(--line); }
.card--row .card__media { aspect-ratio: 3 / 2; }
.card--row .card__excerpt { display: none; }
@media (min-width: 576px) {
	.card--row { grid-template-columns: 200px 1fr; gap: 18px; }
	.card--row .card__media { aspect-ratio: 16 / 10; }
	.card--row .card__title { font-size: 1.125rem; }
	.card--row .card__excerpt { display: -webkit-box; -webkit-line-clamp: 2; }
}
@media (min-width: 768px) {
	.card--row { grid-template-columns: 240px 1fr; gap: 20px; }
	.card--row .card__title { font-size: 1.1875rem; }
}

/* feature */
.card--feature .card__body { padding-block-start: 12px; }
.card--feature .card__title { font-size: 1.1875rem; line-height: 1.5; }
@media (min-width: 768px) { .card--feature .card__title { font-size: 1.3125rem; } }

/* tile */
.card--tile .card__body { padding-block-start: 10px; }
.card--tile .card__title { font-size: 1rem; }

/* mini */
.card--mini { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: start; padding-block: 12px; border-block-start: 1px solid var(--line); }
.card--mini:first-child { border-block-start: 0; padding-block-start: 0; }
.card--mini .card__media { aspect-ratio: 3 / 2; }
.card--mini .card__title { font-size: var(--fs-md); font-weight: 600; }
.card--mini .card__meta { margin-block-start: 2px; }
.card--mini .cat-label { margin: 0; }

/* text */
.card--text { padding-block: 10px; border-block-start: 1px solid var(--line); }
.card--text .card__title { font-size: var(--fs-md); font-weight: 600; }
.card--text .card__meta { margin-block-start: 2px; }

/* ---------- 10. Section headings ---------- */
.section-head {
	position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
	margin-block-end: 16px; padding-block-start: 10px; border-block-start: 3px solid var(--ink);
}
.section-head::before {
	content: ""; position: absolute; inset-block-start: -3px; inset-inline-start: 0;
	inline-size: 56px; block-size: 3px; background: var(--accent);
}
.section-head__title { font-size: 1.25rem; line-height: 1.4; }
.section-head__title a:hover { color: var(--accent); }
.section-head__more { display: inline-flex; align-items: center; gap: 2px; flex: none; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }
.section-head__more:hover { color: var(--accent); }
[dir="ltr"] .section-head__more .icon { transform: scaleX(-1); }
@media (min-width: 768px) { .section-head__title { font-size: 1.375rem; } }

/* ---------- 11. Hero ---------- */
.hero { margin-block: 20px 8px; }
@media (min-width: 768px) {
	.hero__side { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-block-start: 20px; }
}
@media (min-width: 1024px) {
	.hero { margin-block-start: 28px; }
	.hero__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 28px; align-items: start; }
	.hero__side { display: flex; flex-direction: column; margin: 0; gap: 0; }
}

/* ---------- 12. Home layout ---------- */
.home-layout { display: grid; gap: 8px 40px; margin-block-start: 24px; }
.home-layout__main { min-inline-size: 0; }
.news-section { margin-block-end: 40px; }
.feed .ad-slot { margin-block: 16px; }

.news-section--feature .news-section__grid { display: grid; gap: 20px; }
@media (min-width: 768px) {
	.news-section--feature .news-section__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; }
}

.news-section--column .news-section__grid { display: block; }
.news-section--column .news-section__list { margin-block-start: 12px; }

.section-grid { display: grid; gap: 0 28px; margin-block-start: 8px; }
@media (min-width: 640px) { .section-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .section-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Sidebar */
.sidebar { display: grid; gap: 32px; align-content: start; min-inline-size: 0; }
@media (min-width: 640px) and (max-width: 1023px) {
	.sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 28px; }
	.sidebar .sidebar__ad { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
	.home-layout { grid-template-columns: minmax(0, 1fr) 300px; }
	.sidebar .sidebar__ad { margin-block-start: 0; }
}

.widget__title {
	position: relative; margin-block-end: 8px; padding-block-start: 8px;
	border-block-start: 3px solid var(--ink); font-size: 1.125rem;
}
.widget__title::before { content: ""; position: absolute; inset-block-start: -3px; inset-inline-start: 0; inline-size: 40px; block-size: 3px; background: var(--accent); }

.rank-list { counter-reset: rank; }
.rank-list__item {
	counter-increment: rank; display: grid; grid-template-columns: 34px 1fr; column-gap: 8px;
	padding-block: 12px; border-block-end: 1px solid var(--line);
}
.rank-list__item::before {
	content: counter(rank); grid-row: span 2; font-size: 1.75rem; font-weight: 700; line-height: 1.1; color: var(--accent);
	font-variant-numeric: tabular-nums;
}
.rank-list__link { font-size: var(--fs-md); font-weight: 600; color: var(--ink); line-height: 1.6; }
.rank-list__link:hover { color: var(--accent); }
.rank-list .cat-label { margin: 2px 0 0; justify-self: start; }

.updates-list { border-inline-start: 2px solid var(--line); margin-block-start: 12px; }
.updates-list__item { position: relative; padding-inline-start: 16px; padding-block-end: 14px; }
.updates-list__item::before {
	content: ""; position: absolute; inset-inline-start: -6px; inset-block-start: 8px;
	inline-size: 10px; block-size: 10px; border-radius: 50%; background: var(--paper); border: 2px solid var(--accent);
}
.updates-list__item .meta-time { display: block; font-size: var(--fs-xs); font-weight: 700; color: var(--accent); line-height: 1.6; }
.updates-list__item a { font-size: var(--fs-md); font-weight: 600; color: var(--ink); line-height: 1.6; }
.updates-list__item a:hover { color: var(--accent); }
.widget__cards { margin-block-start: 12px; }

/* Widgets added by the editor (Appearance → Widgets) */
.widget--custom { font-size: var(--fs-md); }
.widget--custom ul { margin-block-start: 8px; }
.widget--custom li { padding-block: 8px; border-block-end: 1px solid var(--line); }
.widget--custom li a { font-weight: 600; color: var(--ink); }
.widget--custom a:hover { color: var(--accent); }
.widget--custom img { block-size: auto; }
.widget--custom p { margin-block: 8px; }
.widget--custom .wp-block-heading { font-size: 1.125rem; }

/* ---------- 13. Sports band (logo blue) ---------- */
.band { margin-block: 16px 40px; padding-block: 28px 36px; background: var(--accent); color: #e6ecff; }
.band .section-head { border-color: rgba(255, 255, 255, 0.9); }
.band .section-head__title, .band .card__title { color: #fff; }
.band .section-head::before { background: var(--dark); }
.band .section-head__more { color: rgba(255, 255, 255, 0.85); }
.band .section-head__more:hover, .band .card__title a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.band .cat-label { color: #fff; }
.band .card__excerpt { color: #e6ecff; }
.band .card__meta { color: rgba(255, 255, 255, 0.8); }
.band .card__media { background: var(--accent-strong); }
.band__grid { display: grid; gap: 24px; }
@media (min-width: 576px) {
	.band__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
	.band__grid > .card--feature { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
	.band__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.band__grid > .card--feature { grid-column: span 2; grid-row: span 2; }
	.band .card--feature .card__title { font-size: 1.5rem; }
}

/* ---------- 13b. Sports band — distinct "match-day" style on logo blue ---------- */
.band--sports { position: relative; overflow: hidden; isolation: isolate; padding-block: 40px 48px; background: radial-gradient(120% 140% at 100% 0%, #2a63ff 0%, var(--accent) 45%, var(--accent-strong) 100%); }
.band--sports::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: repeating-linear-gradient(-60deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 22px); }
.band--sports::after { content: "SPORT"; position: absolute; inset-inline-end: -12px; inset-block-end: -0.22em; z-index: -1; pointer-events: none; font: 900 clamp(110px, 17vw, 250px)/1 "DM Sans", sans-serif; letter-spacing: -0.04em; color: rgba(255, 255, 255, 0.07); direction: ltr; }
.band--sports .section-head { align-items: center; margin-block-end: 24px; padding: 0; border: 0; }
.band--sports .section-head::before { display: none; }
.band--sports .section-head__title { display: inline-flex; align-items: center; gap: 10px; padding: 4px 16px 6px; background: #fff; font-size: 1.375rem; }
.band--sports .section-head__title::before { content: ""; inline-size: 10px; block-size: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.band--sports .section-head__title a { color: var(--dark); }
.band--sports .section-head__title a:hover { color: var(--accent); text-decoration: none; }
.band--sports .section-head__more { padding: 4px 14px; border: 1px solid rgba(255, 255, 255, 0.65); color: #fff; transition: background-color .15s, color .15s; }
.band--sports .section-head__more:hover { background: #fff; color: var(--accent); text-decoration: none; }
.band--sports .card--feature { background: #fff; box-shadow: 0 24px 60px rgba(4, 18, 80, 0.35); }
.band--sports .card--feature .card__body { padding: 18px 22px 22px; }
.band--sports .card--feature .card__title, .band--sports .card--feature .card__title a { color: var(--ink); }
.band--sports .card--feature .card__title a:hover { color: var(--accent); }
.band--sports .card--feature .cat-label { padding: 1px 10px; background: var(--accent); color: #fff; }
.band--sports .card--feature .card__excerpt { color: var(--ink-2); }
.band--sports .card--feature .card__meta { color: var(--muted); }
.band--sports .band__grid > .card:not(.card--feature) { padding-block-start: 12px; border-block-start: 3px solid #fff; }
.band--sports .band__grid > .card:not(.card--feature) .card__media { outline: 1px solid rgba(255, 255, 255, 0.25); }
@media (min-width: 1024px) {
	.band--sports .band__grid > .card--feature:only-child { grid-column: 1 / -1; grid-row: auto; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; }
	.band--sports .band__grid > .card--feature:only-child .card__body { padding: 32px 36px; }
	.band--sports .band__grid > .card--feature:only-child .card__title { font-size: 1.875rem; line-height: 1.4; }
}

/* ---------- 14. Advertising slots ----------
   Sizes come from inc/ad-slots.json as --ad-w / --ad-h per breakpoint.
   The frame reserves the height before the ad loads (no layout shift)
   and never exceeds the available width. */
.ad-slot { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-block: 20px; }
.ad-slot--spaced { margin-block: 24px; }
.ad-slot__label { font-size: 0.6875rem; line-height: 1.4; color: var(--muted); letter-spacing: 0.02em; }
.ad-slot__frame {
	inline-size: min(100%, var(--ad-w, 300px)); min-block-size: var(--ad-h, 250px);
	display: grid; place-items: center; overflow: hidden; background: var(--paper-2);
}
.ad-slot__frame > * { max-inline-size: 100%; }
.ad-slot__placeholder {
	inline-size: 100%; block-size: var(--ad-h, 250px);
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
	border: 1px dashed var(--line-2); color: var(--muted); font-size: var(--fs-sm); text-align: center; padding: 8px;
}
.ad-slot__name { font-weight: 600; color: var(--ink-2); }
.ad-slot__size { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.ad-slot__size--tablet, .ad-slot__size--desktop { display: none; }
@media (min-width: 768px) { .ad-slot__size--mobile { display: none; } .ad-slot__size--tablet { display: inline; } }
@media (min-width: 1024px) { .ad-slot__size--tablet { display: none; } .ad-slot__size--desktop { display: inline; } }
.band .ad-slot__frame { background: var(--accent-strong); }

/* ---------- 15. Footer ---------- */
.site-footer { margin-block-start: 48px; background: var(--dark); color: #c3cbe0; font-size: var(--fs-md); }
.site-footer__grid { display: grid; gap: 32px; padding-block: 44px 36px; }
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 1.5fr 1.2fr 1fr 1fr; gap: 40px; } }
.site-footer .site-logo img { block-size: 52px; }
.site-footer__about { margin-block-start: 14px; line-height: 1.85; max-inline-size: 44ch; }
.site-footer .social { margin-block-start: 16px; gap: 6px; }
.site-footer .social a { inline-size: 38px; block-size: 38px; border: 1px solid rgba(255, 255, 255, 0.18); }
.site-footer .social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.site-footer__title { margin-block-end: 12px; color: #fff; font-size: 1rem; }
.footer-links li { margin-block-end: 6px; }
.footer-links a:hover { color: #fff; }
.footer-links--cols { columns: 2; column-gap: 20px; }
.contact-list li { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-block-end: 8px; }
.contact-list span { color: #8f9bbd; min-inline-size: 64px; }
.contact-list a:hover { color: #fff; }
.footer-hint { font-size: var(--fs-sm); color: #8f9bbd; margin-block-start: 8px; }
.site-footer__bottom { border-block-start: 1px solid rgba(255, 255, 255, 0.1); padding-block: 16px; font-size: var(--fs-sm); color: #8f9bbd; }

/* ---------- 16. States & utility blocks ---------- */
.empty-state { margin-block: 32px; padding: 48px 24px; border: 1px dashed var(--line-2); background: var(--paper-2); text-align: center; }
.empty-state__title { font-size: 1.375rem; font-weight: 700; color: var(--ink); }
.empty-state__text { margin-block: 6px 18px; color: var(--muted); }
.empty-state__search { max-inline-size: 420px; margin: 16px auto 0; }
.editor-notice { margin-block-end: 24px; padding: 10px 14px; border: 1px solid #ecd28a; background: #fff8e1; color: #5c4a12; font-size: var(--fs-sm); }

/* Basic fallback listing (index.php) until dedicated templates arrive. */
.archive-basic { padding-block: 28px; }
.entry-basic__content { max-inline-size: 760px; font-size: 1.0625rem; line-height: 1.9; }
.entry-basic__content > * + * { margin-block-start: 1em; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: 24px; }
.nav-links .page-numbers { display: inline-grid; place-items: center; min-inline-size: 40px; block-size: 40px; padding-inline: 10px; border: 1px solid var(--line-2); font-weight: 600; }
.nav-links .current { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ---------- 17. Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}


/* =====================================================================
   18. Single article (stage 2)
   ===================================================================== */
.read-progress { position: fixed; inset-inline: 0; inset-block-start: var(--header-offset); z-index: 60; block-size: 3px; background: transparent; pointer-events: none; }
.read-progress__bar { display: block; block-size: 100%; inline-size: 100%; background: var(--accent); transform-origin: right center; transform: scaleX(0); transition: transform .08s linear; }

.single-main { padding-block: 20px 56px; }

.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block-end: 20px; font-size: var(--fs-sm); color: var(--muted); }
.breadcrumbs a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs__sep { color: var(--line-2); }

.article-layout { display: grid; gap: 40px; }
@media (min-width: 1024px) {
	.article-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; }
	.article-sidebar { align-self: start; }
}
.article { min-inline-size: 0; }

/* header */
.article-cat {
	display: inline-block; padding: 4px 12px; margin-block-end: 14px;
	background: var(--accent); color: var(--accent-ink);
	font-size: var(--fs-xs); font-weight: 700; line-height: 1.6; border-radius: var(--radius);
}
.article-cat:hover { background: var(--accent-strong); color: var(--accent-ink); }
.article-title { font-size: clamp(1.625rem, 1.1rem + 2.2vw, 2.625rem); line-height: 1.4; font-weight: 700; color: var(--ink); letter-spacing: 0; }
.article-standfirst { margin-block-start: 14px; font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.8; color: var(--ink-2); font-weight: 500; }

.article-meta {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
	margin-block-start: 22px; padding-block: 14px; border-block: 1px solid var(--line);
}
.byline { display: flex; align-items: center; gap: 12px; min-inline-size: 0; }
.byline__avatar {
	flex: none; display: grid; place-items: center; inline-size: 44px; block-size: 44px; border-radius: 50%;
	background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 1.125rem;
}
.byline__text { display: grid; gap: 2px; min-inline-size: 0; }
.byline__name { font-weight: 700; color: var(--ink); font-size: var(--fs-sm); }
.byline__info { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: var(--fs-xs); color: var(--muted); }
.byline__info .icon { vertical-align: -2px; margin-inline-end: 4px; }
.byline__dot { color: var(--line-2); }

/* share */
.share { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.share__list { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.share__btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-inline-size: 38px; block-size: 38px; padding-inline: 10px;
	border: 1px solid var(--line-2); border-radius: 50px; background: var(--paper);
	color: var(--ink); font: inherit; font-size: var(--fs-xs); font-weight: 600; cursor: pointer;
	transition: background .15s, color .15s, border-color .15s;
}
.share--top .share__btn { padding-inline: 0; inline-size: 38px; }
.share__btn:hover, .share__btn:focus-visible { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.share__btn.is-copied { background: var(--dark); border-color: var(--dark); color: #fff; }
.share__label { font-weight: 700; font-size: var(--fs-sm); color: var(--ink); }
.share--bottom { justify-content: space-between; padding: 16px; background: var(--paper-2); border-radius: var(--radius); }
.share--bottom .share__btn { padding-inline: 14px; }
@media (max-width: 575px) { .share--bottom .share__text { display: none; } .share--bottom .share__btn { padding-inline: 0; inline-size: 40px; block-size: 40px; } }

/* hero image */
.article-hero { margin: 24px 0 0; }
.article-hero__img { display: block; inline-size: 100%; block-size: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--paper-3); border-radius: var(--radius); }
.article-hero__caption { margin-block-start: 10px; padding-inline-start: 12px; border-inline-start: 3px solid var(--accent); font-size: var(--fs-xs); color: var(--muted); line-height: 1.7; }

/* body typography */
.article-body { margin-block-start: 28px; font-size: 1.125rem; line-height: 2; color: var(--ink-2); max-inline-size: 760px; }
.article-body > * + * { margin-block-start: 1.15em; }
.article-body > p:first-child, .article-body .mre-lead { font-size: 1.25rem; line-height: 1.9; color: var(--ink); font-weight: 500; }
.article-body h2 {
	position: relative; margin-block-start: 1.8em; padding-inline-start: 16px;
	font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); line-height: 1.5; color: var(--ink);
}
.article-body h2::before { content: ""; position: absolute; inset-inline-start: 0; inset-block: .25em; inline-size: 4px; background: var(--accent); border-radius: 2px; }
.article-body h3 { font-size: 1.1875rem; line-height: 1.5; color: var(--ink); margin-block-start: 1.5em; }
.article-body a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.article-body a:hover { color: var(--accent-strong); }
.article-body strong { color: var(--ink); }
.article-body ul, .article-body ol { padding-inline-start: 1.4em; }
.article-body li + li { margin-block-start: .5em; }
.article-body li::marker { color: var(--accent); font-weight: 700; }
.article-body img { max-inline-size: 100%; block-size: auto; border-radius: var(--radius); }
.article-body figcaption, .article-body .wp-element-caption { margin-block-start: 8px; font-size: var(--fs-xs); color: var(--muted); line-height: 1.7; text-align: start; }

/* stat strip */
.mre-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-block: 1.6em !important; }
@media (min-width: 768px) { .mre-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mre-stats__item { display: grid; gap: 4px; padding: 18px 16px; background: var(--paper); }
.mre-stats__item strong { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem); line-height: 1.1; font-weight: 700; color: var(--accent); }
.mre-stats__item span { font-size: var(--fs-xs); line-height: 1.6; color: var(--muted); }

/* key points */
.mre-keypoints { padding: 20px 22px !important; background: var(--accent-soft); border-inline-start: 4px solid var(--accent); border-radius: var(--radius); }
.mre-keypoints h3 { margin: 0 0 10px !important; font-size: 1rem; color: var(--accent); }
.mre-keypoints ul { margin: 0; padding-inline-start: 1.2em; font-size: 1.0625rem; line-height: 1.85; color: var(--ink); }

/* table */
.article-body .wp-block-table { margin-inline: 0; overflow-x: auto; }
.article-body table { inline-size: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.6; }
.article-body th, .article-body td { padding: 11px 14px; text-align: start; border-block-end: 1px solid var(--line); }
.article-body thead th { background: var(--dark); color: #fff; font-weight: 700; font-size: var(--fs-sm); border: 0; }
.article-body tbody tr:nth-child(even) { background: var(--paper-2); }
.article-body td:nth-child(2) { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.article-body tfoot td { font-weight: 700; color: var(--ink); border-block-start: 2px solid var(--ink); border-block-end: 0; }
.mre-table td:nth-child(3) { font-size: var(--fs-sm); color: var(--muted); }

/* pull quote */
.article-body blockquote, .article-body .wp-block-quote {
	position: relative; margin: 1.8em 0 !important; padding: 28px 28px 22px; border: 0; border-block-start: 3px solid var(--ink);
	background: var(--paper);
}
.article-body blockquote::before { content: "”"; position: absolute; inset-block-start: -6px; inset-inline-end: 12px; font-size: 5rem; line-height: 1; color: var(--accent); font-weight: 700; }
.article-body blockquote p { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); line-height: 1.75; color: var(--ink); font-weight: 700; }
.article-body blockquote cite { display: block; margin-block-start: 10px; font-style: normal; font-size: var(--fs-sm); color: var(--muted); }
.article-body blockquote cite::before { content: "— "; color: var(--accent); }

/* numbered steps */
.mre-steps { list-style: none; counter-reset: step; padding: 0 !important; }
.mre-steps li { counter-increment: step; position: relative; padding-inline-start: 52px; min-block-size: 36px; }
.mre-steps li + li { margin-block-start: 16px !important; }
.mre-steps li::before {
	content: counter(step); position: absolute; inset-inline-start: 0; inset-block-start: 2px;
	display: grid; place-items: center; inline-size: 36px; block-size: 36px; border-radius: 50%;
	background: var(--dark); color: #fff; font-weight: 700; font-size: 1rem; line-height: 1;
}

/* sources */
.mre-sources { margin-block-start: 2em !important; padding-block-start: 14px; border-block-start: 1px dashed var(--line-2); font-size: var(--fs-sm); line-height: 1.9; color: var(--muted); }
.mre-sources strong { color: var(--ink); }

/* footer of the article */
.article-ad { margin-block: 32px; }
.article-footer { display: grid; gap: 24px; margin-block-start: 32px; max-inline-size: 760px; }
.article-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.article-tags__label { font-weight: 700; font-size: var(--fs-sm); margin-inline-end: 4px; }
.article-tags a { padding: 5px 12px; border: 1px solid var(--line-2); border-radius: 50px; font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); }
.article-tags a:hover { border-color: var(--accent); color: var(--accent); }

.post-nav { display: grid; gap: 12px; }
@media (min-width: 640px) { .post-nav { grid-template-columns: 1fr 1fr; } }
.post-nav__link { display: grid; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s; }
.post-nav__link:hover { border-color: var(--accent); }
.post-nav__link--next { text-align: end; }
.post-nav__dir { font-size: var(--fs-xs); color: var(--accent); font-weight: 700; }
.post-nav__title { font-weight: 700; color: var(--ink); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* related */
.related { margin-block-start: 56px; }
.related__grid { display: grid; gap: 24px; }
@media (min-width: 576px) { .related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .related__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

@media (prefers-reduced-motion: reduce) { .read-progress__bar { transition: none; } }


/* ---------- 19. Article fixes ---------- */
.article-body { max-inline-size: none; }
.article-footer { max-inline-size: none; }
.article-body .wp-block-table td, .article-body .wp-block-table th { border-inline: 0; }
.article-body .wp-block-table thead { border: 0; }
.article-body .wp-block-table tfoot { border: 0; }

/* ---------- 20. Newsletter ---------- */
.newsletter { position: relative; overflow: hidden; display: grid; gap: 16px; padding: 24px; margin-block-start: 32px; background: var(--dark); color: #fff; border-radius: var(--radius); }
.newsletter::after { content: ""; position: absolute; inset-block-start: -60px; inset-inline-start: -60px; inline-size: 200px; block-size: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(0, 70, 255, .55), transparent 70%); pointer-events: none; }
.newsletter > * { position: relative; z-index: 1; }
.newsletter__title { font-size: 1.25rem; line-height: 1.4; color: #fff; }
.newsletter__desc { margin-block-start: 6px; font-size: var(--fs-sm); line-height: 1.8; color: #c9d5ff; }
.newsletter__form { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter__input { flex: 1 1 200px; min-inline-size: 0; block-size: 46px; padding-inline: 14px; border: 1px solid rgba(138, 168, 255, .35); border-radius: var(--radius); background: rgba(255, 255, 255, .06); color: #fff; font: inherit; }
.newsletter__input::placeholder { color: #9fb2e6; }
.newsletter__input:focus { outline: 2px solid var(--accent-on-dark); outline-offset: 1px; }
.newsletter__btn { block-size: 46px; padding-inline: 24px; border: 0; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 700; cursor: pointer; }
.newsletter__btn:hover { background: var(--accent-strong); }
.newsletter__hp { position: absolute !important; inline-size: 1px; block-size: 1px; opacity: 0; pointer-events: none; }
.newsletter__msg { margin: 0; padding: 10px 12px; border-radius: var(--radius); font-size: var(--fs-sm); background: rgba(255, 255, 255, .08); }
.newsletter__msg--ok { background: rgba(46, 204, 113, .18); }
.newsletter__msg--invalid { background: rgba(255, 99, 99, .18); }
@media (min-width: 768px) {
	.newsletter--article { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; padding: 28px 32px; }
	.newsletter--article .newsletter__msg { grid-column: 1 / -1; }
}
.sidebar .newsletter { margin-block-start: 0; padding: 20px; }
.sidebar .newsletter__btn { flex: 1 1 100%; }

/* ---------- 21. Prayer times + weather ---------- */
.pw { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.pw__head { padding: 12px 14px 0; }
.pw__head .widget__title { margin-block-end: 10px; }
.pw__city { inline-size: 100%; block-size: 38px; padding-inline: 10px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--paper); font: inherit; font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.pw__weather { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 12px; margin: 12px 14px 0; padding: 14px; background: linear-gradient(135deg, var(--dark), var(--dark-2)); color: #fff; border-radius: var(--radius); }
.pw__icon { display: grid; place-items: center; inline-size: 52px; block-size: 52px; }
.pw__now { display: grid; }
.pw__temp { font-size: 2rem; font-weight: 700; line-height: 1.1; }
.pw__desc { font-size: var(--fs-xs); color: var(--accent-on-dark); }
.pw__extra { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 10px 0 0; padding: 10px 0 0; list-style: none; border-block-start: 1px solid rgba(138, 168, 255, .2); text-align: center; }
.pw__extra span { display: block; font-size: .6875rem; color: #9fb2e6; }
.pw__extra b { font-size: var(--fs-xs); }
.pw__prayer { padding: 12px 14px 14px; }
.pw__date { margin: 0; font-size: var(--fs-xs); color: var(--muted); }
.pw__next { margin: 4px 0 10px; font-size: var(--fs-sm); color: var(--ink-2); }
.pw__next b { color: var(--accent); }
.pw__times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0; padding: 0; list-style: none; }
.pw__times li { display: grid; gap: 2px; padding: 8px 4px; text-align: center; background: var(--paper-2); border-radius: var(--radius); border: 1px solid transparent; }
.pw__times span { font-size: var(--fs-xs); color: var(--muted); }
.pw__times b { font-size: 1rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.pw__times li.is-next { background: var(--accent); border-color: var(--accent); }
.pw__times li.is-next span, .pw__times li.is-next b { color: var(--accent-ink); }
.pw__note { margin: 8px 0 0; font-size: .6875rem; color: var(--muted); }

/* ---------- 22. Visitor comments ---------- */
.comments { margin-block-start: 40px; }
.comments__count { display: inline-grid; place-items: center; min-inline-size: 28px; block-size: 28px; padding-inline: 8px; margin-inline-start: 8px; border-radius: 50px; background: var(--accent); color: var(--accent-ink); font-size: var(--fs-xs); vertical-align: middle; }
.comments__empty { padding: 16px; background: var(--paper-2); border-radius: var(--radius); color: var(--muted); font-size: var(--fs-sm); }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { margin-inline-start: 28px; padding-inline-start: 16px; border-inline-start: 2px solid var(--line); }
.comment-card { display: flex; gap: 12px; padding-block: 16px; border-block-end: 1px solid var(--line); }
.comment-card__avatar { flex: none; display: grid; place-items: center; inline-size: 40px; block-size: 40px; border-radius: 50%; background: var(--dark); color: #fff; font-weight: 700; }
.comment-card__body { min-inline-size: 0; flex: 1; }
.comment-card__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.comment-card__name { font-weight: 700; color: var(--ink); }
.comment-card__time { font-size: var(--fs-xs); color: var(--muted); }
.comment-card__pending { margin: 6px 0 0; font-size: var(--fs-xs); color: #a15c00; }
.comment-card__text { margin-block-start: 6px; font-size: 1rem; line-height: 1.85; color: var(--ink-2); overflow-wrap: anywhere; }
.comment-card__text p + p { margin-block-start: .6em; }
.comment-card__reply a { display: inline-block; margin-block-start: 8px; font-size: var(--fs-xs); font-weight: 700; color: var(--accent); }

.comment-respond { margin-block-start: 28px; padding: 24px; background: var(--paper-2); border-radius: var(--radius); }
.comment-respond__title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 1.125rem; color: var(--ink); }
.comment-respond__title small a { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.comment-notes, .logged-in-as { margin-block: 8px 16px; font-size: var(--fs-xs); color: var(--muted); }
.logged-in-as a { color: var(--accent); }
.comment-form { display: grid; gap: 14px; }
@media (min-width: 640px) {
	.comment-form { grid-template-columns: 1fr 1fr; }
	.comment-form > .comment-notes, .comment-form > .logged-in-as, .comment-form-comment, .comment-form-cookies-consent, .form-submit { grid-column: 1 / -1; }
}
.comment-form p { margin: 0; }
.comment-form label { display: block; margin-block-end: 6px; font-size: var(--fs-sm); font-weight: 700; color: var(--ink); }
.comment-form .required { color: var(--accent); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	inline-size: 100%; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--paper); font: inherit; font-size: 1rem; color: var(--ink);
}
.comment-form textarea { min-block-size: 140px; resize: vertical; line-height: 1.8; }
.comment-form input:focus, .comment-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { margin: 0; font-weight: 400; font-size: var(--fs-xs); color: var(--muted); }
.comment-submit { block-size: 46px; padding-inline: 28px; border: 0; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 700; cursor: pointer; }
.comment-submit:hover { background: var(--accent-strong); }


/* ---------- 23. Homepage desktop fixes ---------- */
/* Lead story: solid navy panel so the headline stays readable over any image (photos or graphics with text). */
@media (min-width: 768px) {
	.card--lead .card__body {
		padding: 96px 32px 28px;
		background: linear-gradient(to top, rgba(11, 21, 49, 0.98) 0%, rgba(11, 21, 49, 0.94) 48%, rgba(11, 21, 49, 0.55) 78%, rgba(11, 21, 49, 0) 100%);
	}
	.card--lead .card__title { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); }
}
@media (min-width: 1024px) {
	.card--lead .card__media { aspect-ratio: 16 / 9; }
	.card--lead .card__title { font-size: clamp(1.5rem, 0.9rem + 1.2vw, 2.25rem); }
}

/* Secondary hero stories: clear separators, no stray empty thumbnails stretching the column. */
@media (min-width: 1024px) {
	.hero__side > * { padding-block: 14px; border-block-end: 1px solid var(--line); }
	.hero__side > *:first-child { padding-block-start: 0; }
	.hero__side > *:last-child { border-block-end: 0; }
}

/* Admin-only notices: compact, aligned with the page grid, never full-bleed. */
.editor-notice {
	box-sizing: border-box; max-inline-size: calc(var(--container) - 2 * var(--gutter)); margin: 0 auto 16px;
	padding: 8px 12px; border: 1px dashed #d9b24a; border-radius: var(--radius);
	background: #fffbea; color: #6b5413; font-size: var(--fs-xs); line-height: 1.7;
}
.home-layout__main .editor-notice, .section-grid .editor-notice { max-inline-size: none; margin-inline: 0; }

/* Main column + sidebar on wide screens: sticky sidebar, balanced spacing. */
@media (min-width: 1024px) {
	.home-layout { gap: 8px 48px; align-items: start; }
}

/* Newsletter inside narrow columns: never overflow. */
.newsletter { grid-template-columns: minmax(0, 1fr); }
.newsletter > * { min-inline-size: 0; }
.newsletter__desc { overflow-wrap: anywhere; }
.sidebar .newsletter__form { flex-direction: column; }
.sidebar .newsletter__input { flex: none; inline-size: 100%; }
@media (min-width: 768px) {
	.newsletter.newsletter--article { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
}
.sidebar .newsletter__btn { flex: none; inline-size: 100%; }


/* ---------- 24. Ad placeholders as "advertise here" promos ---------- */
.ad-slot__frame { background: transparent; }
.ad-slot__placeholder.ad-promo {
	container-type: size; position: relative; overflow: hidden; isolation: isolate;
	inline-size: 100%; block-size: var(--ad-h, 250px); padding: 14px 18px; gap: 8px;
	display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
	border: 0; border-radius: var(--radius); color: #fff; text-decoration: none;
	background:
		radial-gradient(120% 140% at 0% 100%, rgba(0, 70, 255, 0.55), transparent 60%),
		linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
	transition: box-shadow .2s, transform .2s;
}
.ad-promo::before {
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: .08;
	background-image: linear-gradient(45deg, #8aa8ff 1px, transparent 1px), linear-gradient(-45deg, #8aa8ff 1px, transparent 1px);
	background-size: 28px 28px;
}
.ad-promo::after { content: ""; position: absolute; inset: 6px; border: 1px dashed rgba(138, 168, 255, 0.35); border-radius: 2px; pointer-events: none; }
.ad-promo:hover { box-shadow: 0 10px 30px rgba(0, 70, 255, 0.25); }
.ad-promo:hover .ad-promo__cta { background: #fff; color: var(--accent); }
.ad-promo:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.ad-promo__brand { font-weight: 700; font-size: 1rem; letter-spacing: .06em; color: #fff; }
.ad-promo__brand em { font-style: normal; font-weight: 500; color: var(--accent-on-dark); }
.ad-promo__body { display: grid; gap: 4px; }
.ad-promo__title { font-size: clamp(1.125rem, 3.4cqi, 1.75rem); font-weight: 700; line-height: 1.35; color: #fff; }
.ad-promo__text { font-size: var(--fs-sm); line-height: 1.6; color: #c9d5ff; }
.ad-promo__cta {
	display: inline-flex; align-items: center; justify-content: center; block-size: 38px; padding-inline: 22px;
	border-radius: 50px; background: var(--accent); color: #fff; font-weight: 700; font-size: var(--fs-sm);
	transition: background .2s, color .2s;
}
.ad-promo .ad-slot__sizes { font-size: .6875rem; color: #9fb2e6; }
.ad-promo .ad-slot__size { color: inherit; }
.ad-promo__mail { font-size: var(--fs-xs); color: #9fb2e6; }

/* Tall slots (300×600): more breathing room */
@container (min-height: 450px) {
	.ad-promo__brand { font-size: 1.25rem; margin-block-end: 24px; }
	.ad-promo__title { font-size: 1.75rem; }
	.ad-promo__text { font-size: 1rem; }
	.ad-promo__cta { block-size: 46px; padding-inline: 30px; margin-block: 16px 8px; }
}
/* Short banners (728×90, 970×90, 320×100): single row */
@container (max-height: 130px) {
	.ad-promo__brand, .ad-promo__body, .ad-promo__cta, .ad-slot__sizes, .ad-promo__mail { position: relative; }
	.ad-promo__text, .ad-promo__mail { display: none; }
}
.ad-slot__placeholder.ad-promo:where(*) { }
@media (min-width: 0) {
	.ad-slot--header_leaderboard .ad-promo, .ad-slot--in_feed .ad-promo { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
}
@media (min-width: 768px) {
	.ad-slot--main_content .ad-promo, .ad-slot--category_section .ad-promo { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px 28px; }
}
@container (max-height: 130px) {
	.ad-promo__title { font-size: clamp(.95rem, 2.4cqi, 1.25rem); }
	.ad-promo__cta { block-size: 32px; padding-inline: 16px; }
}
@container (max-width: 360px) and (max-height: 130px) {
	.ad-promo__brand, .ad-slot__sizes { display: none; }
}


/* ---------- 25. House promo slots (shown while an ad slot has no code) ---------- */
.mre-spot { display: flex; justify-content: center; margin-block: 16px; }
.mre-spot--spaced { margin-block: 24px; }
.sidebar .mre-spot { margin-block: 0; }
@media (min-width: 640px) and (max-width: 1023px) { .sidebar .sidebar__spot { grid-column: 1 / -1; } }
.mre-spot__frame { container-type: size; inline-size: min(100%, var(--ad-w, 300px)); block-size: var(--ad-h, 250px); }
.mre-spot__link {
	position: relative; overflow: hidden; isolation: isolate;
	inline-size: 100%; block-size: 100%; padding: 14px 18px;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
	border-radius: var(--radius); color: #fff; text-decoration: none;
	background:
		radial-gradient(120% 140% at 0% 100%, rgba(0, 70, 255, 0.55), transparent 60%),
		linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
	transition: box-shadow .2s;
}
.mre-spot__link::before {
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: .08;
	background-image: linear-gradient(45deg, #8aa8ff 1px, transparent 1px), linear-gradient(-45deg, #8aa8ff 1px, transparent 1px);
	background-size: 28px 28px;
}
.mre-spot__link::after { content: ""; position: absolute; inset: 6px; border: 1px dashed rgba(138, 168, 255, 0.35); border-radius: 2px; pointer-events: none; }
.mre-spot__link:hover { box-shadow: 0 10px 30px rgba(0, 70, 255, 0.25); color: #fff; }
.mre-spot__link:hover .mre-spot__cta { background: #fff; color: var(--accent); }
.mre-spot__link:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.mre-spot__brand { font-weight: 700; font-size: 1rem; letter-spacing: .06em; color: #fff; }
.mre-spot__brand em { font-style: normal; font-weight: 500; color: var(--accent-on-dark); }
.mre-spot__body { display: grid; gap: 4px; }
.mre-spot__title { font-size: 1.375rem; font-weight: 700; line-height: 1.35; color: #fff; }
.mre-spot__text { font-size: var(--fs-sm); line-height: 1.6; color: #c9d5ff; }
.mre-spot__cta { display: inline-flex; align-items: center; justify-content: center; block-size: 38px; padding-inline: 22px; border-radius: 50px; background: var(--accent); color: #fff; font-weight: 700; font-size: var(--fs-sm); transition: background .2s, color .2s; }
.mre-spot__sizes { font-size: .6875rem; color: #9fb2e6; direction: ltr; }
.mre-spot__size--tablet, .mre-spot__size--desktop { display: none; }
@media (min-width: 768px) { .mre-spot__size--mobile { display: none; } .mre-spot__size--tablet { display: inline; } }
@media (min-width: 1024px) { .mre-spot__size--tablet { display: none; } .mre-spot__size--desktop { display: inline; } }
.mre-spot__mail { font-size: var(--fs-xs); color: #9fb2e6; }

/* Wide, short banners: one row */
@container (max-height: 130px) {
	.mre-spot__link { flex-direction: row; flex-wrap: wrap; gap: 6px 22px; }
	.mre-spot__text, .mre-spot__mail { display: none; }
	.mre-spot__title { font-size: 1.125rem; }
	.mre-spot__cta { block-size: 32px; padding-inline: 16px; }
}
@container (max-height: 130px) and (max-width: 400px) {
	.mre-spot__brand, .mre-spot__sizes { display: none; }
	.mre-spot__title { font-size: 1rem; }
}
/* Wide, medium banners (970×250): row layout */
@container (min-width: 700px) and (min-height: 131px) {
	.mre-spot__link { flex-direction: row; gap: 12px 40px; }
	.mre-spot__brand { font-size: 1.5rem; }
	.mre-spot__body { text-align: start; }
	.mre-spot__title { font-size: 1.875rem; }
	.mre-spot__cta { block-size: 46px; padding-inline: 30px; }
	.mre-spot__sizes, .mre-spot__mail { position: absolute; inset-block-end: 14px; }
	.mre-spot__sizes { inset-inline-start: 18px; }
	.mre-spot__mail { inset-inline-end: 18px; }
}
/* Tall skyscraper (300×600) */
@container (min-height: 450px) {
	.mre-spot__brand { font-size: 1.375rem; margin-block-end: 28px; }
	.mre-spot__title { font-size: 1.75rem; }
	.mre-spot__text { font-size: 1rem; }
	.mre-spot__cta { block-size: 46px; padding-inline: 30px; margin-block: 18px 8px; }
}

/* Filled self-hosted ads */
.mre-spot--filled .mre-spot__frame > a, .mre-spot--filled .mre-spot__frame > img { display: block; inline-size: 100%; block-size: 100%; }
.mre-spot--filled .mre-spot__frame img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; border-radius: var(--radius); }
.mre-spot--filled .mre-spot__frame a:hover img { filter: brightness(1.04); }

/* Small highlighted "إعلان" badge inside filled ads */
.mre-spot--filled .mre-spot__frame { position: relative; }
.mre-spot--filled .mre-spot__frame::after {
	content: "إعلان"; position: absolute; inset-block-start: 8px; inset-inline-end: 8px; z-index: 2;
	padding: 2px 10px; border-radius: 50px; background: var(--accent); color: #fff;
	font-size: .6875rem; font-weight: 700; line-height: 1.6; letter-spacing: .02em;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .25); pointer-events: none;
}


/* ---------- 26. Responsive ad blocks: full column width, fixed aspect ratio ---------- */
.ad-slot, .mre-spot { inline-size: 100%; }
.ad-slot__frame, .mre-spot__frame {
	inline-size: 100%; max-inline-size: none; block-size: auto; min-block-size: 0;
	aspect-ratio: var(--ad-rw, 300) / var(--ad-rh, 250);
}
.ad-slot__placeholder { block-size: 100%; }
.mre-spot__link { block-size: 100%; }
/* Square sidebar spot: full sidebar width on desktop, capped when the sidebar spans the page */
.mre-spot--sidebar .mre-spot__frame, .ad-slot--sidebar .ad-slot__frame { max-inline-size: 360px; margin-inline: auto; }
@media (min-width: 1024px) { .mre-spot--sidebar .mre-spot__frame, .ad-slot--sidebar .ad-slot__frame { max-inline-size: none; } }
/* Very small phones: keep text legible in short banners */
@media (max-width: 380px) { .mre-spot__link { padding: 10px 12px; } }


/* ---------- 27. Navigation redesign: navy band, tab-style active item ---------- */
.nav-bar {
	background: linear-gradient(180deg, var(--dark) 0%, #0e1a3d 100%);
	border-block-end: 0; box-shadow: 0 6px 18px rgba(11, 21, 49, 0.14);
}
.nav-bar__scroller {
	-webkit-mask-image: linear-gradient(to left, #000 85%, transparent);
	        mask-image: linear-gradient(to left, #000 85%, transparent);
}
.nav-bar .nav-menu { gap: 2px; align-items: stretch; }
.nav-bar .nav-menu > li > a {
	position: relative; block-size: 46px; padding-inline: 14px;
	color: #dfe6fb; font-weight: 600; letter-spacing: 0;
	transition: color .15s, background-color .15s;
}
.nav-bar .nav-menu > li:first-child > a { padding-inline-start: 14px; }
.nav-bar .nav-menu > li > a::after {
	content: ""; position: absolute; inset-inline: 14px; inset-block-end: 0; block-size: 3px;
	background: var(--accent-on-dark); border-radius: 3px 3px 0 0;
	transform: scaleX(0); transform-origin: center; transition: transform .2s ease;
}
.nav-bar .nav-menu > li > a:hover,
.nav-bar .nav-menu > li > a:focus-visible { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav-bar .nav-menu > li > a:hover::after,
.nav-bar .nav-menu > li > a:focus-visible::after { transform: scaleX(1); }
.nav-bar .nav-menu > li > a:focus-visible { outline: 2px solid var(--accent-on-dark); outline-offset: -2px; }

/* Active section: solid blue tab */
.nav-bar .current-menu-item > a,
.nav-bar .current-menu-ancestor > a,
.nav-bar .current-category-ancestor > a,
.nav-bar .current-post-ancestor > a { box-shadow: none; background: var(--accent); color: #fff; }
.nav-bar .current-menu-item > a::after,
.nav-bar .current-menu-ancestor > a::after,
.nav-bar .current-post-ancestor > a::after { transform: scaleX(0); }

/* Home item: icon */
.nav-bar .nav-menu > li:first-child > a::before {
	content: ""; inline-size: 16px; block-size: 16px; margin-inline-end: 7px; flex: none;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 11 12 3l9 8v10h-6v-6H9v6H3z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 11 12 3l9 8v10h-6v-6H9v6H3z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Thin dividers between items on desktop */
@media (min-width: 1024px) {
	.nav-bar { border-block-start: 0; }
	.nav-bar .nav-menu > li > a { block-size: 52px; padding-inline: 18px; font-size: 1rem; }
	.nav-bar .nav-menu > li + li > a::before { content: none; }
	.nav-bar .nav-menu > li + li { border-inline-start: 1px solid rgba(138, 168, 255, 0.12); }
	.nav-bar .nav-menu > li > a::after { inset-inline: 18px; }
}
@media (min-width: 1200px) {
	.nav-bar__scroller { -webkit-mask-image: none; mask-image: none; }
	.nav-bar .sub-menu { background: var(--dark); border-color: rgba(138, 168, 255, 0.2); border-block-start: 3px solid var(--accent); }
	.nav-bar .sub-menu a { color: #dfe6fb; }
	.nav-bar .sub-menu a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
}
/* Mobile: compact pills */
@media (max-width: 767px) {
	.nav-bar .nav-menu { padding-block: 6px; gap: 6px; }
	.nav-bar .nav-menu > li > a { block-size: 34px; padding-inline: 14px; border-radius: 50px; background: rgba(255, 255, 255, 0.06); font-size: var(--fs-sm); }
	.nav-bar .nav-menu > li > a::after { display: none; }
	.nav-bar .nav-menu > li:last-child { padding-inline-end: 24px; }
}

/* Masthead: drop the old blue rule now that the nav is a solid band */
.masthead { border-block-end: 0; }

/* Active tab wins over the mobile pill background */
.nav-bar .nav-menu > li.current-menu-item > a,
.nav-bar .nav-menu > li.current-menu-ancestor > a,
.nav-bar .nav-menu > li.current-post-ancestor > a { background: var(--accent); color: #fff; }


/* ---------- 28. Mega dropdown menu ---------- */
.mega { display: none; }
@media (min-width: 1024px) {
	.nav-bar__scroller { overflow: visible; -webkit-mask-image: none; mask-image: none; }
	.nav-bar .container { position: relative; }
	.nav-bar .nav-menu > li.has-mega { position: static; }
	.nav-bar .nav-menu > li.has-mega > a {
		padding-inline-end: 34px;
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%23dfe6fb' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 11px; background-position: left 16px center;
	}
	.nav-bar .nav-menu > li.has-mega.current-menu-item > a,
	.nav-bar .nav-menu > li.has-mega.current-menu-ancestor > a,
	.nav-bar .nav-menu > li.has-mega.current-post-ancestor > a { background-color: var(--accent); }
	.nav-bar .nav-menu > li.has-mega:hover > a { color: #fff; background-color: rgba(255, 255, 255, 0.08); }

	.mega {
		display: block; position: absolute; inset-inline: var(--gutter); inset-block-start: 100%; z-index: 60;
		background: var(--paper); border-block-start: 3px solid var(--accent); border-radius: 0 0 6px 6px;
		box-shadow: 0 22px 48px rgba(11, 21, 49, 0.22);
		opacity: 0; visibility: hidden; transform: translateY(10px);
		transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
		white-space: normal;
	}
	.nav-bar li.has-mega:hover > .mega,
	.nav-bar li.has-mega:focus-within > .mega {
		opacity: 1; visibility: visible; transform: none;
		transition: opacity .18s ease .12s, transform .18s ease .12s, visibility 0s linear .12s;
	}
	.mega__inner { padding: 22px 24px 26px; }
	.mega__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-block-end: 16px; padding-block-end: 12px; border-block-end: 1px solid var(--line); }
	.mega__label { position: relative; padding-inline-start: 14px; font-size: 1.0625rem; font-weight: 700; color: var(--ink); }
	.mega__label::before { content: ""; position: absolute; inset-inline-start: 0; inset-block: .2em; inline-size: 4px; border-radius: 2px; background: var(--accent); }
	.mega__all { font-size: var(--fs-sm); font-weight: 700; color: var(--accent); }
	.mega__all:hover { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 4px; }
	.mega__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
	.mega__card { display: grid; align-content: start; gap: 8px; color: var(--ink); }
	.mega__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: linear-gradient(135deg, var(--paper-3), #dedbd4); }
	.mega__img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; transition: transform .35s ease; }
	.mega__card:hover .mega__img { transform: scale(1.05); }
	.mega__title { font-size: var(--fs-md); font-weight: 700; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
	.mega__card:hover .mega__title { color: var(--accent); }
	.mega__time { font-size: var(--fs-xs); color: var(--muted); }
}
@media (prefers-reduced-motion: reduce) { .mega, .mega__img { transition: none !important; } }

/* ---------- Search v2 — pill field with inset blue button ---------- */
.search-form {
	position: relative; align-items: center; block-size: 48px; padding: 4px; gap: 4px;
	border: 1px solid transparent; border-radius: 999px; background: var(--paper-2);
	transition: background-color .2s, border-color .2s, box-shadow .2s;
}
.search-form:hover { border-color: var(--line-2); }
.search-form:focus-within { background: var(--paper); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), 0 8px 24px rgba(0, 70, 255, 0.12); }
.search-form__input { block-size: 100%; padding-inline: 18px 8px; font-size: var(--fs-md); font-weight: 500; color: var(--ink); }
.search-form__input::placeholder { color: var(--muted); font-weight: 400; transition: opacity .2s; }
.search-form:focus-within .search-form__input::placeholder { opacity: .55; }
.search-form__submit {
	flex: none; inline-size: 40px; block-size: 40px; border-radius: 50%;
	background: var(--accent); color: #fff; cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 70, 255, 0.35); transition: background-color .2s, transform .2s, box-shadow .2s;
}
.search-form__submit:hover { background: var(--dark); box-shadow: 0 4px 12px rgba(11, 21, 49, 0.35); }
.search-form__submit:active { transform: scale(.94); }
.search-form__submit:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.search-form__submit svg { inline-size: 18px; block-size: 18px; }

/* ---------- Comments v2 — matches Search v2 (soft fills, pills, blue accents) ---------- */
.comments .section-head__title { display: flex; align-items: center; gap: 4px; }
.comments__count { min-inline-size: 32px; block-size: 32px; padding-inline: 10px; border-radius: 999px; font-size: .875rem; font-weight: 700; box-shadow: 0 4px 12px rgba(0, 70, 255, 0.3); }
.comments__empty {
	display: flex; align-items: center; gap: 14px; margin-block-end: 20px; padding: 16px 18px;
	border: 1px dashed var(--line-2); border-radius: 16px; background: var(--paper-2); color: var(--ink-2); font-size: var(--fs-sm);
}
.comments__empty::before {
	content: ""; flex: none; inline-size: 40px; block-size: 40px; border-radius: 50%;
	background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230046ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 20l1-4.6A8 8 0 1 1 21 12z'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.comment-list { display: grid; gap: 12px; margin-block-end: 24px; }
.comment-list .children { display: grid; gap: 12px; margin-block-start: 12px; border-inline-start-color: var(--accent-soft); }
.comment-card { padding: 16px 18px; border: 0; border-radius: 16px; background: var(--paper-2); }
.comment-card__avatar { inline-size: 44px; block-size: 44px; background: var(--accent); box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--accent-soft); }
.comment-card__reply a { display: inline-flex; align-items: center; padding: 3px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: var(--fs-xs); font-weight: 600; color: var(--accent); transition: background-color .2s, color .2s, border-color .2s; }
.comment-card__reply a:hover { background: var(--accent); border-color: var(--accent); color: #fff; text-decoration: none; }
.comment-respond { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: 0 12px 32px rgba(11, 21, 49, 0.06); }
.comment-respond__title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-block-end: 8px; font-size: 1.125rem; font-weight: 700; }
.comment-respond__title small a { padding: 3px 12px; border-radius: 999px; background: var(--paper-2); font-size: var(--fs-xs); }
.comment-form .logged-in-as, .comment-form .comment-notes { font-size: var(--fs-xs); color: var(--muted); }
.comment-form label { display: block; margin-block-end: 6px; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	inline-size: 100%; padding: 12px 18px; border: 1px solid transparent; border-radius: 999px; background: var(--paper-2);
	font: inherit; font-size: var(--fs-md); color: var(--ink); outline: none; transition: background-color .2s, border-color .2s, box-shadow .2s;
}
.comment-form textarea { min-block-size: 140px; padding: 14px 18px; border-radius: 18px; resize: vertical; line-height: 1.8; }
.comment-form input:hover, .comment-form textarea:hover { border-color: var(--line-2); }
.comment-form input:focus, .comment-form textarea:focus { background: var(--paper); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), 0 8px 24px rgba(0, 70, 255, 0.12); }
.comment-form ::placeholder { color: var(--muted); }
.comment-form input[type="checkbox"] { inline-size: 18px; block-size: 18px; accent-color: var(--accent); vertical-align: middle; }
.comment-form-cookies-consent label { display: inline; font-weight: 400; font-size: var(--fs-xs); color: var(--muted); }
.comment-form .form-submit { margin-block-start: 4px; }
.comment-form .comment-submit, .comment-form input[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center; block-size: 48px; padding-inline: 32px;
	border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer;
	box-shadow: 0 6px 16px rgba(0, 70, 255, 0.35); transition: background-color .2s, transform .2s, box-shadow .2s;
}
.comment-form .comment-submit:hover, .comment-form input[type="submit"]:hover { background: var(--dark); box-shadow: 0 6px 16px rgba(11, 21, 49, 0.35); }
.comment-form .comment-submit:active, .comment-form input[type="submit"]:active { transform: scale(.97); }
.comment-form .comment-submit:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 575px) { .comment-respond { padding: 18px; border-radius: 16px; } .comment-form .comment-submit { inline-size: 100%; } }


/* ---------- Footer v2 (redesign) ---------- */
.site-footer--v2 { position: relative; margin-block-start: 56px; background: radial-gradient(120% 140% at 100% 0%, var(--dark-2) 0%, var(--dark) 55%); color: #b9c3dc; overflow: hidden; }
.site-footer--v2::before { content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; block-size: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-on-dark), var(--accent)); }
.site-footer--v2::after { content: "ⵎ"; position: absolute; inset-block-end: -0.28em; inset-inline-end: -0.04em; font-family: "Noto Sans Tifinagh", "Ebrima", sans-serif; font-size: clamp(220px, 32vw, 420px); line-height: 1; color: rgba(255, 255, 255, 0.025); pointer-events: none; }
.site-footer--v2 > * { position: relative; z-index: 1; }

.mf-brand { display: grid; gap: 22px; padding-block: 48px 36px; border-block-end: 1px solid rgba(255, 255, 255, 0.08); text-align: center; justify-items: center; }
.mf-brand__id { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.site-footer--v2 .site-logo img { block-size: 56px; }
.mf-tifinagh { margin: 0; font-family: "Noto Sans Tifinagh", "Ebrima", sans-serif; font-size: 1.35rem; letter-spacing: 0.18em; color: var(--accent-on-dark); }
.mf-brand__text .site-footer__about { margin: 0; line-height: 1.9; max-inline-size: 52ch; color: #c9d1e6; }
.mf-brand__social { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 16px; }
.mf-label { font-size: var(--fs-xs, 0.8rem); font-weight: 600; letter-spacing: 0.04em; color: #8794b5; }
.site-footer--v2 .social { margin: 0; gap: 8px; }
.site-footer--v2 .social a { inline-size: 40px; block-size: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.04); color: #dfe5f5; transition: background 0.2s, border-color 0.2s, transform 0.2s; }
.site-footer--v2 .social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); }
.mf-yt { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: #ff0033; color: #fff; font-weight: 600; font-size: var(--fs-sm, 0.9rem); text-decoration: none; transition: filter 0.2s, transform 0.2s; }
.mf-yt:hover { color: #fff; filter: brightness(1.08); transform: translateY(-2px); }

.mf-cols { display: grid; gap: 32px; padding-block: 36px 40px; }
.mf-title { margin: 0 0 16px; font-size: var(--fs-sm, 0.95rem); font-weight: 700; color: #fff; display: flex; align-items: center; gap: 10px; }
.mf-title::before { content: ""; inline-size: 18px; block-size: 3px; border-radius: 2px; background: var(--accent); }
.site-footer--v2 .footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer--v2 .footer-links--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.site-footer--v2 .footer-links a { color: #b9c3dc; text-decoration: none; transition: color 0.2s, padding 0.2s; }
.site-footer--v2 .footer-links a:hover { color: #fff; padding-inline-start: 4px; }
.mf-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.mf-contact li { display: grid; gap: 4px; padding: 14px 16px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); }
.mf-contact span { font-size: var(--fs-xs, 0.8rem); color: #8794b5; }
.mf-contact a { color: #fff; font-weight: 600; text-decoration: none; word-break: break-all; }
.mf-contact a:hover { color: var(--accent-on-dark); }

.mf-bottom { background: rgba(0, 0, 0, 0.22); border-block-start: 1px solid rgba(255, 255, 255, 0.06); font-size: var(--fs-xs, 0.82rem); color: #8794b5; }
.mf-bottom__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-block: 16px; }
.mf-bottom p { margin: 0; }
.mf-top { color: #c9d1e6; text-decoration: none; }
.mf-top:hover { color: #fff; }

@media (max-width: 639px) {
	.mf-cols { text-align: center; }
	.mf-title { justify-content: center; }
	.mf-bottom__inner { justify-content: center; text-align: center; }
}
@media (min-width: 640px) { .mf-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
	.mf-brand { grid-template-columns: auto minmax(0, 1fr) auto; text-align: start; justify-items: stretch; align-items: center; gap: 40px; }
	.mf-brand__id { align-items: flex-start; }
	.mf-brand__social { justify-content: flex-end; }
	.mf-cols { grid-template-columns: 2fr 1fr 1.3fr; gap: 56px; }
}


/* ---------- Header: Amazigh name beside the logo ---------- */
.site-branding { display: flex; align-items: center; gap: 10px; }
.site-branding__tifinagh { display: inline-block; padding-inline-start: 10px; border-inline-start: 2px solid var(--accent); font-family: "Noto Sans Tifinagh", "Ebrima", sans-serif; font-size: 0.9rem; line-height: 1.2; letter-spacing: 0.12em; color: var(--accent); white-space: nowrap; }
@media (min-width: 768px) { .site-branding { gap: 14px; } .site-branding__tifinagh { font-size: 1.1rem; padding-inline-start: 14px; } }
@media (min-width: 1024px) { .site-branding__tifinagh { font-size: 1.35rem; } }


/* ==========================================================
   Menu v3 — pill navigation, floating mega menu, new drawer
   ========================================================== */
html body .nav-bar { background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); border-block-start: 1px solid var(--line); border-block-end: 1px solid var(--line); box-shadow: 0 8px 24px -18px rgba(11, 21, 49, 0.35); }
html body .nav-bar .nav-menu { align-items: center; gap: 4px; padding-block: 8px; }
html body .nav-bar .nav-menu > li > a { block-size: 38px; padding-inline: 16px; border-radius: 999px; font-size: var(--fs-md); font-weight: 600; color: var(--ink); background: transparent; transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; }
html body .nav-bar .nav-menu > li:first-child > a { padding-inline-start: 16px; }
html body .nav-bar .nav-menu > li > a::after { display: none; }
html body .nav-bar .nav-menu > li > a::before { background-color: currentColor; }
html body .nav-bar .nav-menu > li > a:hover,
html body .nav-bar .nav-menu > li > a:focus-visible,
html body .nav-bar .nav-menu > li:hover > a { background: var(--accent-soft); color: var(--accent); box-shadow: none; }
html body .nav-bar .current-menu-item > a,
html body .nav-bar .current-menu-ancestor > a,
html body .nav-bar .current-category-ancestor > a,
html body .nav-bar .current-post-ancestor > a,
html body .nav-bar .nav-menu > li.current-menu-item > a:hover { background: var(--accent); color: #fff; box-shadow: 0 6px 16px -6px rgba(0, 70, 255, 0.6); }
html body .nav-bar .nav-menu > li > a:active { transform: scale(0.97); }
html body .nav-bar .nav-menu > li > a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
html body .nav-bar .nav-menu > li > a svg,
html body .nav-bar .nav-menu > li > .sub-toggle { color: inherit; opacity: 0.7; }
@media (min-width: 1024px) { html body .nav-bar { border-block-start: 1px solid var(--line); } html body .nav-bar .nav-menu > li > a { block-size: 40px; } }

/* Dropdown + mega: floating rounded card */
html body .nav-bar .sub-menu,
html body .nav-bar .mega { border: 0; border-radius: 16px; background: #fff; box-shadow: 0 24px 60px -20px rgba(11, 21, 49, 0.35), 0 0 0 1px rgba(11, 21, 49, 0.06); overflow: hidden; }
html body .nav-bar .mega { margin-block-start: 8px; }
html body .nav-bar .sub-menu { padding: 8px; }
html body .nav-bar .sub-menu a { border-radius: 10px; }
html body .nav-bar .mega__inner { padding: 20px 22px 22px; border-block-start: 0; }
html body .nav-bar .mega__head { padding-block-end: 14px; margin-block-end: 16px; border-block-end: 1px solid var(--line); }
html body .nav-bar .mega__label { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border: 0; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
html body .nav-bar .mega__label::before { content: ""; inline-size: 7px; block-size: 7px; border-radius: 50%; background: var(--accent); }
html body .nav-bar .mega__all { padding: 5px 12px; border-radius: 999px; color: var(--accent); font-weight: 600; transition: background 0.2s; }
html body .nav-bar .mega__all:hover { background: var(--accent-soft); }
html body .nav-bar .mega__card { border-radius: 12px; padding: 8px; transition: background 0.2s; }
html body .nav-bar .mega__card:hover { background: var(--paper-2); }
html body .nav-bar .mega__media { border-radius: 10px; overflow: hidden; }
html body .nav-bar .mega__img { transition: transform 0.4s ease; }
html body .nav-bar .mega__card:hover .mega__img { transform: scale(1.05); }
html body .nav-bar .mega__card:hover .mega__title { color: var(--accent); }

/* Mobile drawer */
html body .drawer__backdrop { background: rgba(11, 21, 49, 0.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
html body .drawer__panel { background: #fff; border-start-start-radius: 0; box-shadow: -20px 0 60px -20px rgba(11, 21, 49, 0.4); }
html body .drawer__head { border-block-end: 1px solid var(--line); }
html body .drawer__head .icon-btn { border-radius: 50%; background: var(--paper-2); }
html body .drawer-menu { display: grid; gap: 4px; padding: 10px 12px; }
html body .drawer-menu > li > a { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border: 0; border-radius: 12px; font-weight: 600; color: var(--ink); transition: background 0.2s, color 0.2s; }
html body .drawer-menu > li > a::after { content: "‹"; font-size: 1.2em; line-height: 1; opacity: 0.35; }
[dir="ltr"] html body .drawer-menu > li > a::after { content: "›"; }
html body .drawer-menu > li > a:hover { background: var(--accent-soft); color: var(--accent); }
html body .drawer-menu > li.current-menu-item > a,
[dir="ltr"] html body .drawer-menu > li.current-menu-item > a { background: var(--accent); color: #fff; box-shadow: 0 8px 18px -8px rgba(0, 70, 255, 0.6); border: 0; }
html body .drawer-menu > li.current-menu-item > a::after { opacity: 0.8; }
html body .drawer-menu .sub-menu a { border-radius: 10px; }

html body .nav-bar .nav-menu > li.has-mega:hover > a,
html body .nav-bar .nav-menu > li.has-mega:focus-within > a,
html body .nav-bar .nav-menu > li.menu-item-has-children:hover > a { background: var(--accent-soft); color: var(--accent); }
html body .nav-bar .nav-menu > li.current-menu-item.has-mega:hover > a,
html body .nav-bar .nav-menu > li.current-menu-item:hover > a { background: var(--accent); color: #fff; }
html body .nav-bar .mega__label::before { position: static; inset: auto; transform: none; }


/* ==========================================================
   v4 — No-zoom mobile behaviour
   ========================================================== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; touch-action: manipulation; }
html, body { overflow-x: clip; max-inline-size: 100%; }
img, video, iframe, embed, object, table { max-inline-size: 100%; }
@media (max-width: 1023px) {
	input, select, textarea, .search-form__input, .newsletter__input { font-size: 16px !important; }
}
a, button { -webkit-tap-highlight-color: transparent; }

/* ==========================================================
   v4 — Menu: brand-blue bar, white active tab
   ========================================================== */
html body .nav-bar { background: linear-gradient(90deg, var(--accent-strong) 0%, var(--accent) 55%, #2a63ff 100%); -webkit-backdrop-filter: none; backdrop-filter: none; border: 0; box-shadow: 0 10px 30px -18px rgba(0, 54, 199, 0.8); }
html body .nav-bar .nav-menu { gap: 2px; padding-block: 7px; }
html body .nav-bar .nav-menu > li > a { color: rgba(255, 255, 255, 0.92); border-radius: 10px; letter-spacing: 0.01em; }
html body .nav-bar .nav-menu > li > a:hover,
html body .nav-bar .nav-menu > li > a:focus-visible,
html body .nav-bar .nav-menu > li:hover > a,
html body .nav-bar .nav-menu > li.has-mega:hover > a,
html body .nav-bar .nav-menu > li.has-mega:focus-within > a,
html body .nav-bar .nav-menu > li.menu-item-has-children:hover > a { background: rgba(255, 255, 255, 0.16); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
html body .nav-bar .current-menu-item > a,
html body .nav-bar .current-menu-ancestor > a,
html body .nav-bar .current-category-ancestor > a,
html body .nav-bar .current-post-ancestor > a,
html body .nav-bar .nav-menu > li.current-menu-item > a:hover,
html body .nav-bar .nav-menu > li.current-menu-item.has-mega:hover > a,
html body .nav-bar .nav-menu > li.current-menu-item:hover > a { background: #fff; color: var(--accent); box-shadow: 0 6px 18px -8px rgba(11, 21, 49, 0.55); }
html body .nav-bar .nav-menu > li > a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
html body .nav-bar__scroller { mask-image: linear-gradient(to left, #000 90%, transparent); -webkit-mask-image: linear-gradient(to left, #000 90%, transparent); }
@media (min-width: 1200px) { html body .nav-bar__scroller { mask-image: none; -webkit-mask-image: none; } }
html body .nav-bar .mega { margin-block-start: 10px; box-shadow: 0 30px 70px -24px rgba(11, 21, 49, 0.45), 0 0 0 1px rgba(11, 21, 49, 0.06); }
html body .nav-bar .mega::before { content: ""; display: block; block-size: 4px; background: linear-gradient(90deg, var(--accent), #6f95ff); }

/* Drawer to match */
html body .drawer__panel { background: linear-gradient(180deg, #fff 0%, var(--paper-2) 100%); }
html body .drawer-menu > li > a { background: #fff; box-shadow: 0 1px 0 rgba(11, 21, 49, 0.06), 0 0 0 1px rgba(11, 21, 49, 0.05); }
html body .drawer-menu > li.current-menu-item > a { background: linear-gradient(90deg, var(--accent-strong), var(--accent)); }

/* ==========================================================
   v4 — Enhanced blocks
   ========================================================== */
/* Images & media */
html body .card__media { border-radius: 14px; isolation: isolate; }
html body .card__img { transition: transform 0.6s cubic-bezier(.2,.7,.2,1); }
html body .card:hover .card__img { transform: scale(1.05); }
html body .card__title a { transition: color 0.2s; }
html body .card:not(.card--lead) .card__title a:hover { color: var(--accent); }

/* Category labels as pills */
html body .card:not(.card--lead) .cat-label { padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); line-height: 1.6; }
html body .card:not(.card--lead) .cat-label:hover { text-decoration: none; background: var(--accent); color: #fff; }
html body .card--lead .cat-label { border-radius: 999px; padding-inline: 12px; }

/* Lead story */
html body .card--lead { border-radius: 18px; overflow: hidden; box-shadow: 0 24px 50px -28px rgba(11, 21, 49, 0.6); }
html body .card--lead .card__media { border-radius: 0; }

/* Side stories in hero */
html body .card--side { padding: 8px; border-radius: 14px; transition: background 0.2s; }
html body .card--side:hover { background: var(--paper-2); }

/* Row cards (latest news feed) */
html body .card--row { padding: 12px; margin-inline: -12px; border-radius: 16px; transition: background 0.25s, box-shadow 0.25s, transform 0.25s; }
html body .card--row:hover { background: #fff; box-shadow: 0 14px 34px -20px rgba(11, 21, 49, 0.45), 0 0 0 1px rgba(11, 21, 49, 0.05); transform: translateY(-2px); }
html body .card--feature .card__media { border-radius: 16px; }
html body .card--mini .card__media, html body .card--tile .card__media { border-radius: 12px; }
html body .card__meta { color: var(--muted); }

/* Section heads */
html body .section-head { position: relative; align-items: center; border: 0; padding-block-end: 12px; margin-block-end: 18px; background: linear-gradient(90deg, var(--line), var(--line)) bottom / 100% 1px no-repeat; }
html body .section-head::before, html body .section-head::after { display: none; }
html body .section-head__title { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 0; border: 0; font-weight: 800; color: var(--ink); }
html body .section-head__title::before { content: ""; position: static; inline-size: 6px; block-size: 22px; border-radius: 4px; background: linear-gradient(180deg, var(--accent), #6f95ff); }
html body .section-head__title::after { display: none; }
html body .section-head__more { padding: 5px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: var(--fs-sm, 0.875rem); transition: background 0.2s, color 0.2s; }
html body .section-head__more:hover { background: var(--accent); color: #fff; text-decoration: none; }

/* Sidebar widgets as cards */
html body .sidebar .widget { padding: 18px; border-radius: 18px; background: #fff; border: 1px solid rgba(11, 21, 49, 0.07); box-shadow: 0 12px 32px -26px rgba(11, 21, 49, 0.5); }
html body .widget__title { display: flex; align-items: center; gap: 10px; border: 0; padding: 0; margin-block-end: 14px; font-weight: 800; }
html body .widget__title::before { content: ""; position: static; inline-size: 6px; block-size: 20px; border-radius: 4px; background: var(--accent); }
html body .widget__title::after { display: none; }
html body .rank-list__item { border-radius: 12px; transition: background 0.2s; }
html body .rank-list__item:hover { background: var(--paper-2); }
html body .rank-list__item::before { inline-size: 30px; block-size: 30px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 0.95rem; }
html body .pw__weather { border-radius: 14px; overflow: hidden; }
html body .pw__times > * { border-radius: 12px; }
html body .newsletter { border-radius: 18px; overflow: hidden; }
html body .newsletter__input { border-radius: 999px; }
html body .newsletter__btn { border-radius: 999px; transition: transform 0.2s, box-shadow 0.2s; }
html body .newsletter__btn:hover { transform: translateY(-1px); box-shadow: 0 10px 20px -10px rgba(0, 70, 255, 0.7); }

/* Ticker */
html body .ticker { background: linear-gradient(90deg, var(--accent-soft), #f4f7ff); border-block-end: 1px solid rgba(0, 70, 255, 0.1); }
html body .ticker__label { border-radius: 999px; padding-inline: 12px; box-shadow: 0 6px 14px -8px rgba(0, 70, 255, 0.8); }
html body .ticker__btn { border-radius: 50%; background: #fff; border-color: rgba(0, 70, 255, 0.15); transition: background 0.2s, color 0.2s; }
html body .ticker__btn:hover { background: var(--accent); color: #fff; }

/* Ads & bands */
html body .mre-spot__frame { border-radius: 16px; overflow: hidden; }
html body .band--sports .card__media { border-radius: 14px; }
html body .search-form__input { border-radius: 999px; }

/* Mobile spacing polish */
@media (max-width: 639px) {
	html body .card--row { margin-inline: -8px; padding: 10px 8px; }
	html body .card--lead { border-radius: 14px; }
	html body .sidebar .widget { padding: 14px; border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) {
	html body .card__img, html body .card--row { transition: none; }
	html body .card:hover .card__img { transform: none; }
}


/* ==========================================================
   v4.1 — Darker menu bar + sports band fixes
   ========================================================== */
html body .nav-bar { background: linear-gradient(90deg, #071a5e 0%, #0a2585 55%, #0b2c9e 100%); box-shadow: 0 10px 30px -18px rgba(7, 26, 94, 0.9); }
html body .nav-bar .nav-menu > li > a:hover,
html body .nav-bar .nav-menu > li > a:focus-visible,
html body .nav-bar .nav-menu > li:hover > a,
html body .nav-bar .nav-menu > li.has-mega:hover > a,
html body .nav-bar .nav-menu > li.has-mega:focus-within > a,
html body .nav-bar .nav-menu > li.menu-item-has-children:hover > a { background: var(--accent); color: #fff; box-shadow: none; }

/* Sports band — head */
html body .band--sports .section-head { background: linear-gradient(90deg, rgba(255,255,255,.22), rgba(255,255,255,.22)) bottom / 100% 1px no-repeat; }
html body .band--sports .section-head__title { background: transparent; padding: 0; color: #fff; }
html body .band--sports .section-head__title a { color: #fff; }
html body .band--sports .section-head__title::before { background: #fff; }
html body .band--sports .section-head__more { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.35); }
html body .band--sports .section-head__more:hover,
html body .band--sports .section-head__more:focus-visible { background: #fff; color: var(--accent); border-color: #fff; }
html body .band--sports .section-head__more svg { color: inherit; }

/* Sports band — cards: no white edges */
html body .band--sports .card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px -30px rgba(4,18,80,.7); }
html body .band--sports .card__media { border-radius: 0; background: transparent; }
html body .band--sports .card__title, html body .band--sports .card__title a { color: #fff; }
html body .band--sports .card__title a:hover, html body .band--sports .card:hover .card__title a { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: rgba(255,255,255,.5); }
html body .band--sports .card__excerpt { color: rgba(255,255,255,.8); }
html body .band--sports .card__meta, html body .band--sports .meta-time { color: rgba(255,255,255,.65); }
html body .band--sports .card .cat-label { background: rgba(255,255,255,.16); color: #fff; }
html body .band--sports .card .cat-label:hover { background: #fff; color: var(--accent); }

html body .band--sports .card.card--feature .card__body .card__excerpt { color: rgba(255,255,255,.82); }
html body .band--sports .card.card--feature .card__body .card__meta, html body .band--sports .card.card--feature .card__body .meta-time { color: rgba(255,255,255,.65); }

/* v4.2 — sports feature title: always white, clean hover */
html body .band--sports .card.card--feature .card__body .card__title,
html body .band--sports .card.card--feature .card__body .card__title a { color: #fff; text-decoration: none; transition: color .25s ease; }
html body .band--sports .card.card--feature .card__body .card__title a:hover,
html body .band--sports .card.card--feature:hover .card__body .card__title a { color: #b9ccff; text-decoration: none; }
html body .band--sports .card.card--feature { transition: border-color .25s ease, background .25s ease, transform .25s ease; }
html body .band--sports .card.card--feature:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.28); transform: translateY(-2px); }


/* v4.3 — Lead story: same overlay design on mobile */
@media (max-width: 767px) {
	html body .card--lead { position: relative; border-radius: 16px; overflow: hidden; background: var(--dark); }
	html body .card--lead .card__media { aspect-ratio: 4 / 5; border-radius: 0; }
	html body .card--lead .card__body { position: absolute; inset-inline: 0; inset-block-end: 0; padding: 90px 18px 18px; background: linear-gradient(to top, rgba(11, 21, 49, 0.96) 0%, rgba(11, 21, 49, 0.78) 50%, rgba(11, 21, 49, 0) 100%); pointer-events: none; }
	html body .card--lead .card__body a { pointer-events: auto; }
	html body .card--lead .card__title, html body .card--lead .card__title a { color: #fff; font-size: 1.35rem; line-height: 1.5; }
	html body .card--lead .card__excerpt { color: rgba(255, 255, 255, 0.86); font-size: 0.9rem; -webkit-line-clamp: 2; }
	html body .card--lead .card__meta, html body .card--lead .meta-time { color: rgba(255, 255, 255, 0.75); }
	html body .card--lead .cat-label { padding: 2px 12px; border-radius: 999px; background: var(--accent); color: #fff; }
}


/* share v2 — attractive bottom share bar */
.share__btn--facebook{--b:#1877f2}
.share__btn--x{--b:#0f1419}
.share__btn--whatsapp{--b:#1fa855}
.share__btn--telegram{--b:#229ed9}
.share__btn--copy{--b:var(--accent)}
.share--bottom{position:relative;gap:16px;padding:18px 20px;background:linear-gradient(135deg,var(--paper) 0%,var(--paper-2) 100%);border:1px solid var(--line-2);border-radius:18px;box-shadow:0 10px 30px -18px rgba(11,21,49,.35)}
.share--bottom .share__label{display:inline-flex;align-items:center;gap:10px;font-size:1rem;font-weight:800}
.share--bottom .share__label::before{content:"";inline-size:34px;block-size:34px;border-radius:50%;flex:none;background:var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cpath d='M8.6 13.5l6.8 4M15.4 6.5l-6.8 4'/%3E%3C/svg%3E") center/16px no-repeat;box-shadow:0 6px 16px -6px var(--accent)}
.share--bottom .share__list{gap:10px}
.share--bottom .share__btn{block-size:44px;padding-inline:16px 18px;gap:9px;border:0;border-radius:14px;background:color-mix(in srgb,var(--b) 10%,#fff);color:var(--b);font-weight:700;transition:transform .2s ease,box-shadow .2s ease,background .2s ease,color .2s ease}
.share--bottom .share__btn .icon{inline-size:18px;block-size:18px}
.share--bottom .share__btn:hover,.share--bottom .share__btn:focus-visible{background:var(--b);color:#fff;transform:translateY(-2px);box-shadow:0 10px 20px -10px var(--b)}
.share--bottom .share__btn.is-copied{background:var(--dark);color:#fff}
.share--top .share__btn{border-color:transparent;background:color-mix(in srgb,var(--b,var(--accent)) 10%,#fff);color:var(--b,var(--ink))}
.share--top .share__btn:hover,.share--top .share__btn:focus-visible{background:var(--b,var(--accent));color:#fff}
@media (max-width:575px){.share--bottom{flex-direction:column;align-items:stretch;padding:16px}.share--bottom .share__label{justify-content:center}.share--bottom .share__list{justify-content:center}.share--bottom .share__btn{inline-size:48px;block-size:48px;padding-inline:0;border-radius:50%}}


/* pw v2 — attractive prayer times + weather widget */
.widget--pw.pw{overflow:hidden;padding:0;border:1px solid var(--line-2);border-radius:20px;background:var(--paper);box-shadow:0 14px 36px -22px rgba(11,21,49,.45)}
.widget--pw .pw__head{padding:16px 16px 0}
.widget--pw .pw__head .widget__title{display:flex;align-items:center;gap:10px;margin-block-end:12px}
.widget--pw .pw__head .widget__title::before{content:"";flex:none;inline-size:34px;block-size:34px;border-radius:50%;background:var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M20.5 14.3A8.5 8.5 0 0 1 9.7 3.5a8.5 8.5 0 1 0 10.8 10.8z'/%3E%3C/svg%3E") center/16px no-repeat;box-shadow:0 6px 16px -6px var(--accent)}
.widget--pw .pw__city{appearance:none;-webkit-appearance:none;block-size:42px;padding-inline:38px 36px;border:1px solid transparent;border-radius:12px;font-weight:700;cursor:pointer;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230046ff'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") right 12px center/17px no-repeat,url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7590' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") left 12px center/15px no-repeat,color-mix(in srgb,var(--accent) 7%,#fff);transition:border-color .2s,box-shadow .2s}
.widget--pw .pw__city:hover,.widget--pw .pw__city:focus{border-color:var(--accent);outline:0;box-shadow:0 0 0 4px color-mix(in srgb,var(--accent) 14%,transparent)}
.widget--pw .pw__weather{position:relative;overflow:hidden;margin:14px 16px 0;padding:18px 18px 14px;border-radius:18px;background:radial-gradient(120% 90% at 0% 0%,rgba(0,70,255,.55),transparent 60%),radial-gradient(90% 90% at 100% 100%,rgba(255,176,32,.18),transparent 60%),linear-gradient(160deg,#0b1531,#132254);box-shadow:0 14px 30px -18px rgba(0,70,255,.7)}
.widget--pw .pw__weather::after{content:"";position:absolute;inset-inline-start:-40px;top:-40px;inline-size:140px;block-size:140px;border-radius:50%;border:1px solid rgba(255,255,255,.08);pointer-events:none}
.widget--pw .pw__icon{inline-size:60px;block-size:60px;border-radius:50%;background:rgba(255,255,255,.08);box-shadow:inset 0 0 0 1px rgba(255,255,255,.1)}
.widget--pw .pw__icon svg{inline-size:42px;block-size:42px;filter:drop-shadow(0 0 10px rgba(255,176,32,.55))}
.widget--pw .pw__temp{font-size:2.6rem;font-weight:800;letter-spacing:-.02em}
.widget--pw .pw__desc{font-size:.8rem;font-weight:600;color:#b9c8ff}
.widget--pw .pw__extra{gap:6px;margin-top:14px;padding:0;border:0}
.widget--pw .pw__extra li{padding:8px 2px;border-radius:12px;background:rgba(255,255,255,.07);box-shadow:inset 0 0 0 1px rgba(255,255,255,.07)}
.widget--pw .pw__extra span{color:#a9bbef}
.widget--pw .pw__extra b{font-size:.85rem;font-weight:800;color:#fff}
.widget--pw .pw__prayer{padding:14px 16px 16px}
.widget--pw .pw__date{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;background:var(--paper-2);font-weight:600;color:var(--ink-2)}
.widget--pw .pw__next{display:flex;align-items:center;flex-wrap:wrap;gap:4px 6px;margin:10px 0 12px;padding:10px 12px;border-radius:12px;background:color-mix(in srgb,var(--accent) 8%,#fff);border-inline-start:3px solid var(--accent);font-weight:600;color:var(--ink)}
.widget--pw .pw__next b{padding:1px 10px;border-radius:999px;background:var(--accent);color:#fff;font-weight:800}
.widget--pw .pw__times{gap:8px}
.widget--pw .pw__times li{position:relative;gap:4px;padding:11px 4px;border-radius:14px;background:var(--paper);border:1px solid var(--line-2);transition:transform .2s,box-shadow .2s,border-color .2s}
.widget--pw .pw__times li:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--accent) 40%,transparent);box-shadow:0 10px 20px -14px rgba(11,21,49,.5)}
.widget--pw .pw__times span{font-weight:600}
.widget--pw .pw__times b{font-size:1.1rem;font-weight:800}
.widget--pw .pw__times li.is-next{border-color:transparent;background:linear-gradient(150deg,var(--accent),#3d74ff);box-shadow:0 12px 24px -12px var(--accent);transform:translateY(-2px)}
.widget--pw .pw__times li.is-next span{color:rgba(255,255,255,.85)}
.widget--pw .pw__times li.is-next b{color:#fff}
.widget--pw .pw__times li.is-next::after{content:"";position:absolute;top:8px;inset-inline-end:8px;inline-size:7px;block-size:7px;border-radius:50%;background:#7dffb0;box-shadow:0 0 0 0 rgba(125,255,176,.7);animation:pwPulse 1.8s infinite}
@keyframes pwPulse{70%{box-shadow:0 0 0 7px rgba(125,255,176,0)}100%{box-shadow:0 0 0 0 rgba(125,255,176,0)}}
.widget--pw .pw__note{margin-top:12px;text-align:center;font-size:.72rem;color:var(--muted)}
.widget--pw .pw__head .widget__title{font-size:1rem;white-space:nowrap;gap:8px}
.widget--pw .pw__head .widget__title::before{inline-size:30px;block-size:30px;background-size:14px}
.widget--pw .pw__extra{gap:5px}
.widget--pw .pw__extra li{padding:8px 1px}
.widget--pw .pw__extra b{display:block;white-space:nowrap;font-size:.8rem}
.widget--pw .pw__extra span{font-size:.66rem}
@media (prefers-reduced-motion:reduce){.widget--pw .pw__times li.is-next::after{animation:none}}
