/* OverDose theme. Every page colour reaches the layout through one variable, --od, set per page class
   (.od-page-<key>) and per category class (.category-<slug>) by functions.php. Logical properties throughout (RTL first). */

:root {
	--od: var(--od-dose, #6A1C80);
	--ink: var(--wp--preset--color--ink, #17151C);
	--cream: var(--wp--preset--color--cream, #F5F1E8);
	--muted: var(--wp--preset--color--muted, #6B6676);
	--rule: var(--wp--preset--color--rule, #E2DBCC);
	--display: var(--wp--preset--font-family--display);
	--radius: 18px;
}
html, body { overflow-x: clip; }   /* the sliding page must never make the document scroll sideways (RTL overflow is scrollable) */
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.od-symbol { display: block; width: 100%; height: auto; shape-rendering: geometricPrecision; }
:where(a):focus-visible { outline: 2px solid var(--od); outline-offset: 3px; border-radius: 6px; }

/* names: "Over" in ink, the topic in the page colour */
.od-wm { display: inline-grid; gap: 0.15em; font-family: var(--display); font-weight: 800; line-height: 1; white-space: nowrap; }
.od-wm__over { color: var(--ink); }
.od-wm__topic { color: var(--od); }
.od-wm__lat { font-size: 0.62em; text-align: end; }

/* ------------------------------------------------------------ header: logo + اوفر + the five pages, one lockup */
.od-header { position: relative; padding-block: clamp(14px, 2.4vw, 26px) 14px; background: var(--cream); }
/* the header line (phones only, where the pages hide in the menu): the page's colour on its articles and category,
   all five OverDose colours everywhere else. On wide screens the coloured page names already say where you are. */
@media (max-width: 899px) {
	.od-header::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: 0; height: 5px; background: var(--od); }
	body:not(.single-post):not(.category) .od-header::after {
		background: linear-gradient(to left, var(--od-food) 0 20%, var(--od-sport) 20% 40%, var(--od-tech) 40% 60%, var(--od-dose) 60% 80%, var(--od-fashion) 80% 100%); }
}
.od-bars { display: grid; grid-template-columns: repeat(5, 1fr); height: 4px; }
.od-nobr { white-space: nowrap; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }   /* for screen readers and search engines only */
.od-header__row { align-items: flex-end; flex-wrap: nowrap !important; gap: 12px !important; }
.od-masthead { display: flex; align-items: flex-end; gap: clamp(8px, 1.2vw, 14px); min-width: 0; flex: 1 1 auto; }
.od-brand { display: inline-flex; flex: none; text-decoration: none !important; padding-block-end: clamp(6px, 1vw, 10px); }
.od-brand .od-symbol { width: clamp(48px, 6.4vw, 80px); }
/* phone title: "اوفر" + a rolling word. All words share one grid cell, so the box is as wide as the widest word and
   nothing around it moves; each word rolls up and out as the next rolls in from below (transform + opacity only). */
.od-title { display: none; align-items: baseline; font-family: var(--display); font-weight: 800; font-size: 27px; line-height: 1.2; color: var(--ink); }
.od-title__over { padding-inline-end: 0.08em; }
.od-title__words { display: inline-grid; overflow: hidden; padding-block: 0.12em; margin-block: -0.12em;
	-webkit-mask-image: linear-gradient(transparent, #000 0.2em, #000 calc(100% - 0.2em), transparent); mask-image: linear-gradient(transparent, #000 0.2em, #000 calc(100% - 0.2em), transparent); }   /* soft edges: no specks as words pass */
.od-title__w { grid-area: 1 / 1; color: var(--od); opacity: 0; transform: translateY(130%);
	transition: transform 0.55s cubic-bezier(.22, .8, .24, 1), opacity 0.35s ease; }
.od-title__w.is-in { opacity: 1; transform: none; }
.od-title__w.is-out { opacity: 0; transform: translateY(-130%); }
@media (prefers-reduced-motion: reduce) { .od-title__w { transition: opacity 0.3s ease; transform: none !important; } }
/* the menu reads like the wordmarks: "اوفر" once, then the topics; their underlines meet in one five-colour bar */
.od-nav { --nav: clamp(20px, 2.7vw, 34px); display: flex; align-items: flex-end; min-width: 0; font-family: var(--display); font-weight: 800; font-size: var(--nav); line-height: 1; }
.od-nav__over { flex: none; color: var(--ink); padding-block: 0.3em calc(0.3em + 5px); padding-inline-end: 0.12em; }
.od-nav ul { display: flex; list-style: none; margin: 0; padding: 0; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.od-nav ul::-webkit-scrollbar { display: none; }
.od-nav li { flex: none; }
.od-nav a { display: block; padding: 0.3em 0.42em calc(0.3em + 5px); color: var(--ink); text-decoration: none !important; white-space: nowrap;
	box-shadow: inset 0 -5px 0 var(--od); transition: box-shadow 0.2s ease, color 0.2s ease; }
.od-nav a:hover { box-shadow: inset 0 -10px 0 var(--od); }
.od-nav a[aria-current] { box-shadow: inset 0 -10px 0 var(--od); }
/* search: a plain icon; the field unfolds from it over the header (clip-path, so nothing reflows) */
.od-find { flex: none; margin: 0; padding-block-end: clamp(8px, 1.2vw, 14px);
	--fold: inset(0 calc(100% - 48px) 0 0 round 24px); }                        /* folded onto the icon: the inline-end (left) side in RTL */
[dir="ltr"] .od-find { --fold: inset(0 0 0 calc(100% - 48px) round 24px); }
.od-find__in { position: relative; }
.od-find__open { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent;
	color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color 0.2s ease; }
.od-find__open:hover { background: rgba(23, 21, 28, 0.06); }
.od-find__open .od-ico { width: 24px; height: 24px; }
.od-find__box { position: absolute; z-index: 5; inset-inline-end: -2px; top: 50%; translate: 0 -50%; width: min(420px, calc(100vw - 32px)); height: 48px;
	display: flex; align-items: center; gap: 8px; padding-inline: 14px 4px; box-sizing: border-box;
	background: #FFFFFF; border: 1px solid var(--rule); border-radius: 24px; box-shadow: 0 10px 30px rgba(23, 21, 28, 0.10);
	clip-path: var(--fold); opacity: 0; visibility: hidden;
	transition: clip-path 0.42s cubic-bezier(.22, .8, .24, 1), opacity 0.2s ease 0.12s, visibility 0s linear 0.42s; }
.od-find.is-open .od-find__box { clip-path: inset(0 round 24px); opacity: 1; visibility: visible;
	transition: clip-path 0.42s cubic-bezier(.22, .8, .24, 1), opacity 0.14s ease, visibility 0s; }
.od-find__box:focus-within { border-color: var(--ink); }
.od-find__box > .od-ico { flex: none; width: 20px; height: 20px; color: var(--muted); }
.od-find__box input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ink);
	font: inherit; font-size: 16px; -webkit-appearance: none; appearance: none; }   /* 16px: iPhone doesn't zoom in */
.od-find__box input::-webkit-search-cancel-button { display: none; }
.od-find__close { flex: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
	background: transparent; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.od-find__close:hover { background: rgba(23, 21, 28, 0.06); }
@media (prefers-reduced-motion: reduce) { .od-find__box, .od-find.is-open .od-find__box { transition: none; } }
@media (max-width: 700px) {   /* the topics scroll sideways: fade the far end as a hint */
	.od-nav ul { -webkit-mask-image: linear-gradient(to left, #000 82%, transparent); mask-image: linear-gradient(to left, #000 82%, transparent); }
}
@media (prefers-reduced-motion: reduce) { .od-nav a { transition: none; } }

/* ------------------------------------------------------------ badges (page symbol + category) */
.od-badge { display: inline-flex; align-items: center; gap: 7px; font-family: var(--display); font-weight: 700; font-size: 0.95rem;
	color: var(--ink); text-decoration: none !important; line-height: 1; }
.od-badge .od-symbol { width: 26px; }
.od-badge span { border-block-end: 2px solid var(--od); padding-block-end: 2px; }
.od-badge.is-large { font-size: 1.1rem; }
.od-badge.is-large .od-symbol { width: 40px; }

/* ------------------------------------------------------------ cards */
.od-card__img img, .od-lead__img img, .od-side__img img, .od-single__img img, .od-related__item img { border-radius: var(--radius); }
.od-card__img, .od-lead__img { margin-block-end: 0.35rem; }
.od-card__title { font-size: 1.22rem !important; line-height: 1.35 !important; margin: 0; }
.od-card__title a, .od-lead__title a, .od-side__title a { text-decoration: none !important; }
.od-card__title a:hover, .od-lead__title a:hover, .od-side__title a:hover { color: var(--od); }
.od-card__date { margin-block-start: auto; }
.od-card .wp-block-post-featured-image img { transition: transform 0.35s ease; }
.od-card .wp-block-post-featured-image { overflow: hidden; border-radius: var(--radius); }
.od-card:hover .wp-block-post-featured-image img { transform: scale(1.03); }

/* ------------------------------------------------------------ home: lead */
.od-main { padding-block: clamp(24px, 4vw, 48px) clamp(48px, 7vw, 88px); }
.od-lead { gap: clamp(1.5rem, 4vw, 3rem) !important; margin-block-end: clamp(2.5rem, 6vw, 4.5rem); }
.od-lead__title { font-size: clamp(1.9rem, 4vw, 2.9rem) !important; line-height: 1.25 !important; margin-block: 0.4rem 0; }
.od-lead__excerpt { font-size: 1.15rem; max-width: 46em; }
.od-side { display: grid; gap: 0; }
.od-side > li + li { border-block-start: 1px solid var(--rule); }
.od-side__item { gap: 16px !important; padding-block: 16px; }
.od-side > li:first-child .od-side__item { padding-block-start: 0; }
.od-side__img { flex: 0 0 104px; width: 104px; margin: 0 !important; }
.od-side__img img { border-radius: 14px; }
.od-side__title { font-size: 1.12rem !important; line-height: 1.4 !important; margin: 0; }
.od-side__text { min-width: 0; }

/* ------------------------------------------------------------ home: one section per page */
.od-section { margin-block-start: clamp(2.5rem, 6vw, 4.5rem) !important; }
.od-section-head { display: flex; align-items: center; gap: 14px; margin-block-end: 1.4rem; }
.od-section-head__name { display: inline-flex; align-items: center; gap: 10px; text-decoration: none !important; }
.od-section-head__name .od-symbol { width: 44px; }
.od-section-head__name .od-wm { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.od-section-head__rule { flex: 1; height: 2px; background: linear-gradient(to left, var(--od) 0 64px, var(--rule) 64px); }
.od-section-head__more { font-family: var(--display); font-weight: 700; font-size: 0.95rem; color: var(--muted); white-space: nowrap; }
.od-section-head__more:hover { color: var(--od); }
.wp-block-post-template.is-layout-grid { gap: clamp(1.25rem, 2.5vw, 2rem); }
@media (max-width: 900px) and (min-width: 600px) {
	.wp-block-post-template.is-layout-grid.columns-4, .wp-block-post-template.is-layout-grid.columns-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------ category headers (inc/hero.php) */
.od-kicker { margin: 0; font-family: var(--display); font-weight: 700; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.od-kicker::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--od); }
.od-archive > .od-world:first-child { margin-block-start: calc(-1 * clamp(24px, 4vw, 48px)) !important; }

/* A: the page's world */
.od-world { position: relative; overflow: hidden; background: var(--od); color: var(--ink); margin-block-end: clamp(3.5rem, 8vw, 6rem) !important;
	--line: rgba(255, 255, 255, 0.42); }
.od-world.od-page-dose { color: var(--cream); --line: rgba(245, 241, 232, 0.5); }
.od-world__in { position: relative; z-index: 1; max-width: var(--wp--style--global--wide-size); margin-inline: auto; min-height: clamp(420px, 62vh, 620px);
	padding: clamp(40px, 7vw, 88px) max(18px, 4vw); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; gap: clamp(24px, 5vw, 64px); }
.od-world__text { display: grid; gap: 16px; justify-items: start; }
.od-world__name { margin: 0; }
.od-world__name .od-wm { font-size: clamp(3.6rem, 10vw, 8.4rem); gap: 0.12em; }
.od-world .od-wm__over { color: var(--ink); }
.od-world .od-wm__topic { color: var(--cream); }
.od-world.od-page-dose .od-wm__over, .od-world.od-page-dose .od-wm__topic { color: var(--cream); }
.od-world__desc { margin: 0; font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 600; max-width: 26em; }
.od-world__stats { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1rem; }
.od-world__stats span { display: inline-block; padding: 4px 14px; border-radius: 999px; border: 2px solid currentColor; }
/* follow: each platform's own logo in a round button */
.od-follow-icons { display: flex; flex-wrap: wrap; gap: 10px; }
.od-follow-icon { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: #FFFFFF; border: 2px solid var(--ink);
	text-decoration: none !important; transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease; }
.od-follow-icon .od-ico { width: 24px; height: 24px; }
.od-follow-icon:hover { transform: translateY(-2px); }
.od-follow-icon.is-instagram { color: #E4405F; } .od-follow-icon.is-facebook { color: #0866FF; } .od-follow-icon.is-tiktok, .od-follow-icon.is-x { color: #000000; }
.od-follow-icon.is-youtube { color: #FF0000; }
.od-follow-icon.is-instagram:hover { background: #E4405F; color: #FFFFFF; } .od-follow-icon.is-facebook:hover { background: #0866FF; color: #FFFFFF; }
.od-follow-icon.is-tiktok:hover, .od-follow-icon.is-x:hover { background: #000000; color: #FFFFFF; } .od-follow-icon.is-youtube:hover { background: #FF0000; color: #FFFFFF; }
.od-world__art { position: relative; display: grid; place-items: center; }
.od-world__disc { width: clamp(200px, 30vw, 380px); aspect-ratio: 1; border-radius: 50%; background: var(--cream); border: 5px solid var(--ink);
	box-shadow: 0 30px 60px -20px rgba(23, 21, 28, 0.55); display: grid; place-items: center; animation: od-float 5s ease-in-out infinite alternate; }
.od-world__disc .od-symbol { width: 84%; }
@keyframes od-float { from { transform: translateY(-8px) rotate(-2deg); } to { transform: translateY(8px) rotate(2deg); } }
.od-motif { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--line); pointer-events: none; }
/* sport: the pitch draws itself */
.od-motif--pitch { opacity: 0.55; }
.od-motif--pitch [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; animation: od-draw 2.2s cubic-bezier(.4, 0, .2, 1) forwards; }
.od-motif--pitch [pathLength]:nth-child(n+2) { animation-delay: 0.35s; }
.od-motif--pitch [pathLength]:nth-child(n+4) { animation-delay: 0.7s; }
@keyframes od-draw { to { stroke-dashoffset: 0; } }
/* food: smell waves rise */
.od-motif--waves path { animation: od-rise 5s ease-in-out infinite; animation-delay: calc(var(--i) * -0.7s); }
@keyframes od-rise { 0% { transform: translateY(40px); opacity: 0; } 30%, 70% { opacity: 1; } 100% { transform: translateY(-70px); opacity: 0; } }
/* tech: dot grid + signal rings from the symbol */
.od-motif--grid { opacity: 0.5; }
.od-rings { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.od-rings i { position: absolute; width: clamp(200px, 30vw, 380px); aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--cream);
	animation: od-ring 3.6s ease-out infinite; opacity: 0; }
.od-rings i:nth-child(2) { animation-delay: 1.2s; }
.od-rings i:nth-child(3) { animation-delay: 2.4s; }
@keyframes od-ring { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(2.1); opacity: 0; } }
/* fashion: fabric pinstripes at -38° */
.od-motif--stripes { background: repeating-linear-gradient(128deg, var(--line) 0 2px, transparent 2px 26px); opacity: 0.6; animation: od-slide 30s linear infinite; background-size: 200% 200%; }
@keyframes od-slide { to { background-position: 100% 0; } }
/* dose: the bubble's colour bars, crossing at -38° */
.od-motif--tv { overflow: hidden; }
.od-motif--tv i { position: absolute; inset-inline-start: -30%; top: 50%; width: 160%; height: clamp(56px, 8vw, 110px); transform: rotate(-38deg); opacity: 0.32;
	background: linear-gradient(90deg, var(--od-food) 0 20%, var(--od-sport) 20% 40%, var(--od-tech) 40% 60%, #4E1460 60% 80%, var(--od-fashion) 80% 100%);
	background-size: 50% 100%; animation: od-tv 18s linear infinite; }
@keyframes od-tv { to { background-position: 100% 0; } }
@media (max-width: 760px) {
	.od-world__in { grid-template-columns: 1fr; min-height: 0; padding-block: 36px 44px; }
	.od-world__art { order: -1; }
	.od-world__disc { width: 170px; border-width: 4px; }
	.od-rings i { width: 170px; }
}

/* B: magazine cover */
.od-cover { margin-block-end: clamp(2.5rem, 6vw, 4rem) !important; padding-block: 10px 28px; border-block-end: 10px solid var(--od); display: grid; gap: clamp(12px, 2vw, 20px); }
.od-cover__top { display: flex; justify-content: space-between; gap: 12px; padding-block-end: 10px; border-block-end: 1px solid var(--ink); font-family: var(--display); font-weight: 700; font-size: 0.95rem; }
.od-cover__mast { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.od-cover__name { margin: 0; line-height: 0.95; min-width: 0; }
.od-cover__name .od-wm { font-size: clamp(2.6rem, 11.5vw, 13.5rem); display: block; letter-spacing: -0.01em; }
.od-cover__seal { flex: none; width: clamp(64px, 14vw, 190px); aspect-ratio: 1;
	border-radius: 50%; background: var(--cream); border: 4px solid var(--ink); display: grid; place-items: center; animation: od-spin 40s linear infinite; }
.od-cover__seal .od-symbol { width: 82%; }
@keyframes od-spin { to { rotate: 360deg; } }
.od-cover__row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: end; padding-block-start: clamp(10px, 2vw, 18px); border-block-start: 1px solid var(--rule); }
.od-cover__about { display: grid; gap: 12px; justify-items: start; }
.od-cover__lat { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 3vw, 2.2rem); line-height: 1; }
.od-cover__lat span { color: var(--od); }
.od-cover__desc { margin: 0; font-size: clamp(1.1rem, 1.8vw, 1.35rem); font-weight: 600; max-width: 28em; }
.od-cover__latest { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: center; text-decoration: none !important; padding: 12px; border-radius: 20px; background: #FFFFFF; border: 1px solid var(--rule); }
.od-cover__latest img { width: 112px; height: 84px; object-fit: cover; border-radius: 12px; }
.od-cover__latest small { display: block; color: var(--od); font-family: var(--display); font-weight: 700; }
.od-cover__latest strong { font-family: var(--display); font-size: 1.05rem; line-height: 1.35; }
.od-cover__latest:hover strong { color: var(--od); }
@media (max-width: 760px) {
	.od-cover__row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.od-world__disc, .od-cover__seal, .od-rings i, .od-motif--waves path, .od-motif--stripes, .od-motif--tv i { animation: none; }
	.od-motif--pitch [pathLength] { animation: none; stroke-dashoffset: 0; }
	.od-motif--waves path { opacity: 1; }
}

/* ------------------------------------------------------------ single post */
.od-single__head { display: grid; gap: 14px; padding-block: clamp(8px, 2vw, 20px) 8px; }
.od-single__title { font-size: clamp(2rem, 5vw, 3.2rem) !important; line-height: 1.25 !important; margin: 0; }
.od-single__img { margin-block: clamp(1rem, 3vw, 2rem) !important; }
.od-prose { font-size: 1.18rem; line-height: 1.95; }
.od-prose > * + * { margin-block-start: 1.1em; }
.od-prose h2, .od-prose h3 { margin-block-start: 1.8em; }
.od-prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--od); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.od-prose blockquote { margin-inline: 0; padding-inline-start: 1.2em; border-inline-start: 4px solid var(--od); font-family: var(--display); font-size: 1.35rem; line-height: 1.6; }
.od-prose ul li::marker, .od-prose ol li::marker { color: var(--od); }
.od-prose cite, .od-prose em, .od-prose i { font-style: normal; }   /* Arabic has no italics */
.od-prose blockquote cite { display: block; margin-block-start: 0.6em; font-family: var(--wp--preset--font-family--body); font-size: 0.95rem; color: var(--muted); }
.od-prose .od-sources { font-size: 0.95rem; color: var(--muted); border-block-start: 1px solid var(--rule); padding-block-start: 1em; }
.od-prose .wp-block-image { margin-block: 2em; }
.od-prose .wp-block-image img { border-radius: var(--radius); }
.od-prose figcaption { font-size: 0.95rem; color: var(--muted); text-align: start; line-height: 1.6; margin-block-start: 0.6em; }
.od-prose figcaption small, .od-prose .od-sources a { font-size: 0.8rem; }
.od-prose figcaption a { color: var(--muted); text-decoration-color: var(--rule); }
.od-tags a { font-size: 0.9rem; color: var(--muted); }
.od-follow { display: flex; align-items: center; gap: clamp(16px, 3vw, 28px); margin-block: clamp(2rem, 5vw, 3.5rem) !important; padding: clamp(18px, 3vw, 28px);
	background: #FFFFFF; border-radius: 26px; border: 1px solid var(--rule); border-inline-start: 6px solid var(--od); }
.od-follow__art { flex: 0 0 clamp(56px, 14vw, 104px); }
.od-follow__lead { margin: 0; color: var(--muted); font-weight: 600; white-space: nowrap; }
.od-follow__text { flex: 1; min-width: 0; }
.od-follow__name { margin: 2px 0 0; font-size: clamp(1.8rem, 4vw, 2.4rem); }
.od-follow .od-follow-icons { flex: none; }   /* the page's accounts, at the end of the row */
@media (max-width: 420px) {   /* small phones: everything stays on one row */
	.od-follow { gap: 12px; padding: 16px; }
	.od-follow__lead { font-size: 0.85rem; }
	.od-follow__name { font-size: 1.45rem; }
	.od-follow .od-follow-icons { gap: 6px; }
	.od-follow .od-follow-icon { width: 42px; height: 42px; }
	.od-follow .od-follow-icon .od-ico { width: 20px; height: 20px; }
}
.od-related { max-width: var(--wp--style--global--wide-size) !important; margin-inline: auto !important; padding-block-start: clamp(1.5rem, 4vw, 2.5rem); border-block-start: 1px solid var(--rule); }
.od-related__title { font-size: 1.5rem; margin: 0 0 1.2rem; }
.od-related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); }
.od-related__item { display: grid; gap: 10px; text-decoration: none !important; }
.od-related__item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.od-related__name { font-family: var(--display); font-weight: 700; font-size: 1.15rem; line-height: 1.4; }
.od-related__item:hover .od-related__name { color: var(--od); }
@media (max-width: 700px) { .od-related__grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ engagement: reactions, share, newsletter, ads */
.od-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding-block: 12px; border-block: 1px solid var(--rule); }
.od-bar__meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; color: var(--muted); font-size: 0.95rem; }
.od-bar__meta > * + *::before { content: "·"; margin-inline: 10px; color: var(--rule); }
.od-bar__react { color: var(--muted) !important; text-decoration: none !important; }
.od-bar__react:hover { color: var(--ink) !important; }
.od-total { font-weight: 700; color: var(--ink); }
.od-bar__views .od-viewcount { font-weight: 700; color: var(--ink); }
.od-tools { position: relative; display: flex; gap: 8px; flex-wrap: nowrap; }
.od-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--rule); background: #FFFFFF;
	color: var(--ink); cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease; }
.od-icon:hover, .od-icon[aria-expanded="true"] { border-color: var(--ink); }
.od-icon.is-done { background: var(--od); border-color: var(--od); color: #FFFFFF; }
.od-share-pop { position: absolute; inset-block-start: calc(100% + 8px); inset-inline-end: 0; z-index: 20; min-width: 170px; display: grid; padding: 6px;
	background: #FFFFFF; border: 1px solid var(--rule); border-radius: 16px; box-shadow: 0 18px 40px -18px rgba(23, 21, 28, 0.35); }
.od-share-pop[hidden] { display: none; }
.od-share-pop a { padding: 10px 14px; border-radius: 10px; font-family: var(--display); font-weight: 700; color: var(--ink); text-decoration: none !important; }
.od-share-pop a:hover, .od-share-pop a:focus-visible { background: var(--cream); }
.od-toast { position: absolute; inset-block-start: calc(100% + 8px); inset-inline-end: 0; z-index: 21; white-space: nowrap; padding: 6px 12px; border-radius: 999px;
	background: var(--ink); color: var(--cream); font-size: 0.85rem; font-weight: 600; opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; }
.od-toast.is-on { opacity: 1; transform: none; }
#od-reactions { scroll-margin-top: 24px; }
.od-engage { display: grid; gap: 22px; margin-block-start: clamp(2rem, 5vw, 3rem) !important; padding-block: 24px; border-block: 1px solid var(--rule); }
.od-react__q, .od-share__label { margin: 0 0 10px; font-family: var(--display); font-weight: 700; font-size: 1.05rem; }
.od-react__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.od-react__btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--rule); background: #FFFFFF;
	font: 700 1rem/1 var(--display); color: var(--ink); cursor: pointer; transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease; }
.od-react__btn:hover { border-color: var(--od); transform: translateY(-1px); }
.od-react__emoji { font-size: 1.25rem; }
.od-react__n { color: var(--muted); font-family: var(--wp--preset--font-family--body); font-size: 0.9rem; min-width: 0.5em; }
.od-react__btn[aria-pressed="true"] { border-color: var(--od); background: color-mix(in srgb, var(--od) 12%, #FFFFFF); }
.od-react.is-done .od-react__btn[aria-pressed="false"] { opacity: 0.75; }
.od-react__btn.is-pop .od-react__emoji { animation: od-pop 0.4s ease; }
@keyframes od-pop { 40% { transform: scale(1.5); } }
@media (max-width: 600px) {   /* phones: four even tiles in one row, emoji over the word, the count under it */
	.od-react__btns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
	.od-react__btn { flex-direction: column; justify-content: center; gap: 6px; padding: 12px 4px 10px; border-radius: 18px; font-size: 0.9rem; min-width: 0; }
	.od-react__emoji { font-size: 1.6rem; line-height: 1; }
	.od-react__n { min-height: 1em; font-size: 0.8rem; }
}
.od-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.od-share__label { flex-basis: 100%; }
.od-share__btn { display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--rule); background: #FFFFFF;
	font: 700 0.95rem/1.2 var(--display); color: var(--ink); text-decoration: none !important; cursor: pointer; }
.od-share__btn:hover { border-color: var(--ink); }
.od-share__btn[hidden] { display: none; }   /* the class sets display, which would otherwise override [hidden] */
.od-share__icons { display: flex; flex-wrap: wrap; gap: 10px; }
.od-share--end .od-icon { width: 48px; height: 48px; }
.od-share--end .od-icon .od-ico { width: 22px; height: 22px; }
/* each platform in its own colour; filled on hover */
.od-icon.is-whatsapp { color: #25D366; } .od-icon.is-telegram { color: #26A5E4; } .od-icon.is-x { color: #17151C; } .od-icon.is-facebook { color: #0866FF; }
.od-icon.is-whatsapp:hover { background: #25D366; border-color: #25D366; color: #FFFFFF; }
.od-icon.is-telegram:hover { background: #26A5E4; border-color: #26A5E4; color: #FFFFFF; }
.od-icon.is-x:hover { background: #17151C; border-color: #17151C; color: #FFFFFF; }
.od-icon.is-facebook:hover { background: #0866FF; border-color: #0866FF; color: #FFFFFF; }
.od-icon.is-native { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.od-icon[hidden] { display: none; }
.od-news { display: flex; align-items: center; gap: clamp(16px, 3vw, 28px); margin-block: clamp(2rem, 5vw, 3rem) !important; padding: clamp(20px, 4vw, 34px);
	background: var(--ink); color: var(--cream); border-radius: 28px; }
.od-news *, .od-engage *, .od-follow * { box-sizing: border-box; }
.od-news__art { flex: 0 0 clamp(64px, 12vw, 96px); background: var(--cream); border-radius: 50%; padding: 8px; }
.od-news__body { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.od-news__body > * { min-width: 0; }
.od-news__title { margin: 0; color: var(--cream); font-size: clamp(1.6rem, 3.5vw, 2.1rem) !important; }
.od-news__lead { margin: 0; color: #CFCAD6; }
.od-news__form { display: flex; gap: 8px; flex-wrap: wrap; }
.od-news__form input[type="email"] { flex: 1 1 220px; min-width: 0; padding: 12px 16px; border-radius: 999px; border: 0; font: 500 1rem var(--wp--preset--font-family--body); }
.od-news__form button { padding: 12px 24px; border-radius: 999px; border: 0; background: var(--od-dose); color: var(--cream); font: 800 1rem var(--display); cursor: pointer; }
.od-news__form button:disabled { opacity: 0.6; }
.od-news__msg { margin: 0; min-height: 1.2em; font-weight: 600; }
.od-news__msg.is-ok { color: #8BE3B0; }
.od-news__msg.is-error { color: #FFB4A8; }
.od-hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; }
.od-ad { margin-block: 2rem !important; min-height: 280px; display: grid; gap: 6px; align-content: start; }
.od-ad__label { font-size: 0.75rem; color: var(--muted); }
@media (max-width: 560px) {
	.od-news { flex-direction: column; align-items: stretch; }
	.od-news__art { flex-basis: auto; width: 72px; }
	.od-news__body { width: 100%; }
	.od-news__form input[type="email"], .od-news__form button { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .od-react__btn { transition: none; } .od-react__btn.is-pop .od-react__emoji { animation: none; } }

/* ------------------------------------------------------------ archives, search, 404 */
.od-page-title { max-width: var(--wp--style--global--wide-size); margin-inline: auto !important; margin-block-end: 1.5rem; }
.od-pagination { margin-block-start: 2.5rem; font-family: var(--display); font-weight: 700; }
.od-empty, .od-404 { color: var(--muted); }

/* ------------------------------------------------------------ footer */
.od-footer { background: var(--ink); color: var(--cream); padding-block: clamp(44px, 7vw, 72px) 0; margin-block-start: 0 !important; }
.od-foot { max-width: var(--wp--style--global--wide-size) !important; margin-inline: auto; }
.od-foot__top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); padding-block-end: clamp(32px, 5vw, 48px); }
.od-foot__brand { display: grid; gap: 12px; justify-items: start; align-content: start; }
.od-foot__logo { display: flex; align-items: center; gap: 14px; text-decoration: none !important; }
.od-foot__disc { width: 64px; flex: none; aspect-ratio: 1; border-radius: 50%; background: var(--cream); display: grid; place-items: center; }
.od-foot__disc .od-symbol { width: 82%; }
.od-foot__logo .od-wm { font-size: 30px; }
.od-foot .od-wm__over, .od-foot .od-wm__topic { color: var(--cream); }
.od-foot__tag { margin: 6px 0 0; font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.od-foot__about { margin: 0; color: #B9B4C2; max-width: 30em; }
.od-foot .od-follow-icons { margin-block-start: 8px; }
.od-foot .od-follow-icon { border-color: var(--cream); }
.od-foot__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-content: start; }
.od-foot__links h2 { margin: 0 0 12px; font-size: 0.95rem !important; color: #B9B4C2; font-family: var(--display); font-weight: 700; }
.od-foot__links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.od-foot__links a { color: var(--cream) !important; text-decoration: none !important; font-family: var(--display); font-weight: 700; font-size: 1.1rem; }
.od-foot__links a:hover { text-decoration: underline !important; text-underline-offset: 5px; }
.od-foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 18px calc(18px + env(safe-area-inset-bottom, 0px));
	border-block-start: 1px solid rgba(245, 241, 232, 0.16); color: #8E8A97; font-size: 0.85rem; }
.od-foot__bottom p { margin: 0; }
.od-foot__legal { text-align: left; }   /* English line: left-to-right, on the left */
@media (max-width: 700px) {
	.od-foot__top { grid-template-columns: 1fr; }
	.od-foot__bottom { flex-wrap: nowrap; align-items: baseline; font-size: 0.8rem; }   /* one line: Arabic on the right, © on the left */
	.od-foot__bottom p { white-space: nowrap; }
	.od-foot__rights { display: none; }   /* "©" already says it; keeps the line on one row */
}

@media (prefers-reduced-motion: reduce) { .od-card .wp-block-post-featured-image img { transition: none; } }

/* ------------------------------------------------------------ phone menu (inc/drawer.php, assets/js/drawer.js) */
/* --od-p goes 0 → 1 as the menu opens; the page slides by the menu's width towards the end side, revealing it.
   Smoothness: only transform and opacity move (the GPU composites them; nothing is laid out or repainted per frame),
   and --od-p doesn't inherit, so a finger drag restyles three elements instead of the whole page. */
@property --od-p { syntax: "<number>"; inherits: false; initial-value: 0; }
:root { --od-w: min(84vw, 340px); --od-dir: 1; }
.rtl { --od-dir: -1; }
.od-drawer, .od-scrim, .od-menu-btn { display: none; }
@media (max-width: 899px) {
	.wp-site-blocks { position: relative; z-index: 2; background: var(--cream); transition: transform 0.36s cubic-bezier(.22, .8, .24, 1); }
	.od-drawer-on .wp-site-blocks { transform: translateX(calc(var(--od-p) * var(--od-dir) * var(--od-w))); will-change: transform; }   /* LTR: right, RTL: left */
	.od-lock, .od-lock body { overflow: hidden; overscroll-behavior: none; }   /* no scrolling behind the open menu */
	.od-drawer { box-sizing: border-box; display: flex; flex-direction: column; gap: 4px; position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 1; width: var(--od-w);
		padding: calc(18px + env(safe-area-inset-top, 0px)) 18px calc(18px + env(safe-area-inset-bottom, 0px)); background: #FFFFFF; overflow-y: auto; overscroll-behavior: contain;
		visibility: hidden; transform: translateX(calc((1 - var(--od-p)) * 22% * var(--od-dir) * -1)); opacity: calc(0.3 + var(--od-p) * 0.7);
		transition: transform 0.36s cubic-bezier(.22, .8, .24, 1), opacity 0.36s ease; }
	.od-drawer-on .od-drawer { visibility: visible; will-change: transform, opacity; }
	/* the dimmed page strip: moves with the page and carries its shadow onto the menu; fades in by opacity */
	.od-scrim { position: fixed; inset: 0; z-index: 30; background: rgba(23, 21, 28, 0.22); box-shadow: 0 0 44px rgba(23, 21, 28, 0.3);
		opacity: var(--od-p); transform: translateX(calc(var(--od-p) * var(--od-dir) * var(--od-w)));
		transition: transform 0.36s cubic-bezier(.22, .8, .24, 1), opacity 0.36s ease; }
	.od-drawer-on .od-scrim { will-change: transform, opacity; }
	.od-drawer-on .od-scrim { display: block; }
	.od-dragging .wp-site-blocks, .od-dragging .od-drawer, .od-dragging .od-scrim { transition: none; }
	.od-header .od-nav { display: none; }   /* the side menu holds the pages on phones */
	.od-header .od-masthead { align-items: center; }
	.od-header .od-brand { padding-block-end: 0; align-items: center; gap: 8px; }
	.od-header .od-title { display: inline-flex; }   /* phones: the pages hide in the menu, so the title stands next to the logo */
	@media (max-width: 360px) { .od-header .od-title { font-size: 23px; } }
	.od-menu-btn { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid var(--rule);
		background: #FFFFFF; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; }
	.od-menu-btn[aria-expanded="true"] { background: var(--ink); border-color: var(--ink); color: var(--cream); }
	.od-menu-btn .od-ico { width: 22px; height: 22px; }
	.od-header .od-find { padding-block-end: 0; }
	.od-header__row { align-items: center; }
	.od-drawer a, .od-scrim { -webkit-tap-highlight-color: transparent; }
	/* the header stays at the top while reading: logo, rolling title, menu and search always at hand */
	.wp-site-blocks > header { position: sticky; top: 0; z-index: 20; }
	html { scroll-padding-top: 88px; }   /* in-page jumps (e.g. to the reactions) land below the header, not under it */
}
.od-drawer__head { display: flex; align-items: center; gap: 12px; padding-block-end: 16px; margin-block-end: 6px; border-block-end: 1px solid var(--rule); }
.od-drawer__logo { width: 56px; flex: none; }
.od-drawer__brand { display: grid; gap: 4px; }
.od-drawer__brand .od-wm { font-size: 26px; }
.od-drawer__brand small { color: var(--muted); font-size: 0.85rem; }
.od-drawer__nav { display: grid; gap: 2px; }
.od-drawer__row { display: flex; align-items: center; gap: 14px; padding: 11px 10px; border-radius: 14px; color: var(--ink) !important; text-decoration: none !important;
	font-family: var(--display); font-weight: 800; font-size: 1.3rem; position: relative; }
.od-drawer__row:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.od-drawer:focus { outline: none; }
.od-drawer__row[aria-current] { background: color-mix(in srgb, var(--od, var(--ink)) 11%, #FFFFFF); }
.od-drawer__row .od-ico { width: 26px; height: 26px; margin-inline: 5px; }
.od-drawer__sym { width: 36px; flex: none; }
.od-drawer__row .od-wm { font-size: 1.35rem; }
.od-drawer__row[aria-current]::before { content: ""; position: absolute; inset-inline-start: -18px; inset-block: 10px; width: 4px; border-radius: 4px; background: var(--od, var(--ink)); }
.od-drawer__row.is-home[aria-current]::before { background: var(--ink); }
.od-drawer__row.is-small { font-size: 1.05rem; font-weight: 700; margin-block-start: 8px; padding-block-start: 16px; border-block-start: 1px solid var(--rule); border-radius: 0; }
.od-drawer__follow { display: grid; gap: 2px; margin-block-start: 8px; padding-block-start: 12px; border-block-start: 1px solid var(--rule); }
.od-drawer__follow p { margin: 0 10px 6px; color: var(--muted); font-weight: 700; font-size: 0.9rem; }
.od-drawer__acc { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; color: var(--ink) !important; text-decoration: none !important; font-weight: 700; }
.od-drawer__acc .od-ico { width: 20px; height: 20px; }
.od-drawer__acc small { margin-inline-start: auto; color: var(--muted); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.75rem; }
.od-drawer__acc.is-instagram .od-ico { color: #E4405F; } .od-drawer__acc.is-facebook .od-ico { color: #0866FF; } .od-drawer__acc.is-tiktok .od-ico { color: #000000; }
.od-drawer__acc.is-youtube .od-ico { color: #FF0000; } .od-drawer__acc.is-x .od-ico { color: #000000; }
.od-drawer__legal { margin: auto 10px 0; padding-block-start: 16px; color: var(--muted); font-size: 0.8rem; text-align: end; }
@media (prefers-reduced-motion: reduce) { .wp-site-blocks, .od-drawer, .od-scrim { transition: none !important; } }
