/*
 * AMAR theme — the Curator-era design rebuilt on a fluid, responsive, bidirectional base.
 * Layout: a floating header bar (logo cutout + navy menu + orange language tab) over full-screen
 * artwork; white panels and card grids below it; a small credit bar at the bottom.
 * All horizontal spacing uses logical properties so Arabic (dir="rtl") mirrors automatically.
 */

:root {
	--navy: #32365f;
	--navy-deep: #262a4c;
	--orange: #ef6530;
	--orange-text-bg: #d24610; /* brand orange darkened just enough for white text (4.5:1) */
	--ink: #333;
	--muted: #6b6b6b;
	--tab: #454545;
	--paper: #fff;
	--line: #ddd;
	--link: #1f45b5;
	--ground: #eee;
	--font: Tahoma, Geneva, "Segoe UI", Verdana, sans-serif;
	--font-ar: Tahoma, "Geeza Pro", "Noto Naskh Arabic", "Segoe UI", sans-serif;
	--bar: 62px;
	--edge: clamp(12px, 3.2vw, 46px);
	--header-space: calc(var(--bar) + 10px + 34px);
	--wide: 1120px;
	--measure: 70ch;
	--radius: 2px;
	/* Spacing system: one panel padding, one box padding, one grid gap, one vertical rhythm. */
	--pad-panel: clamp(20px, 4vw, 48px);
	--pad-box: clamp(16px, 2.2vw, 22px);
	--gap-grid: 20px;
	--stack: 24px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
	margin: 0;
	min-height: 100vh;
	font: 16px/1.65 var(--font);
	color: var(--ink);
	background: var(--ground) url("../img/scribble_light.png") repeat;
}
body.lang-ar, [lang="ar"] { font-family: var(--font-ar); }
body.lang-ar { line-height: 1.8; }
img, video, iframe, embed, object { max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4, h5, h6 { color: var(--ink); font-weight: normal; line-height: 1.3; margin: 0 0 .6em; text-wrap: balance; }
p { margin: 0 0 1em; }
button { font: inherit; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link {
	position: fixed; inset-block-start: 8px; inset-inline-start: 8px; z-index: 1000;
	padding: 10px 16px; background: var(--paper); color: var(--navy); font-weight: bold;
	transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* ---------- Header: the floating bar ---------- */
.site-header {
	position: fixed; z-index: 100;
	inset-block-start: 10px; inset-inline: var(--edge);
	pointer-events: none; /* only the bar itself takes clicks, not the empty strip beside it */
}
.masthead { display: flex; align-items: flex-start; max-width: 100%; }
.masthead > * { pointer-events: auto; }
.brand { flex: 0 0 auto; display: block; line-height: 0; }
.brand img { height: var(--bar); width: auto; display: block; }
.navbar { display: flex; align-items: stretch; min-width: 0; height: var(--bar); background: var(--navy); }
.site-nav .menu { display: flex; height: 100%; margin: 0; padding: 0 6px; list-style: none; }
.site-nav .menu > li { position: relative; display: flex; }
.site-nav .menu > li > a,
.site-nav .menu > li > .submenu-toggle {
	display: flex; align-items: center; gap: 6px; padding: 0 10px;
	color: #fff; font-size: 13px; font-weight: bold; text-decoration: none; white-space: nowrap;
	background: none; border: 0; border-bottom: 3px solid transparent; border-top: 3px solid transparent; cursor: pointer;
}
.site-nav .menu > li > a:hover,
.site-nav .menu > li > .submenu-toggle:hover,
.site-nav .menu > li.current-menu-item > a,
.site-nav .menu > li.current-menu-ancestor > a,
.site-nav .menu > li.current-menu-ancestor > .submenu-toggle { border-bottom-color: var(--orange); color: #fff; }
.submenu-toggle .icon { width: 14px; height: 14px; transition: transform .2s; }
.submenu-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.site-nav .sub-menu {
	position: absolute; inset-block-start: 100%; inset-inline-start: 0; z-index: 2;
	min-width: 230px; margin: 0; padding: 6px 0; list-style: none;
	background: var(--navy); border-top: 3px solid var(--orange);
	box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
	display: none;
}
.site-nav li:hover > .sub-menu,
.site-nav li:focus-within > .sub-menu,
.site-nav li.is-open > .sub-menu { display: block; }
/* Closed with Escape: it stays closed while the pointer or focus is still on its item. */
.site-nav .menu li.is-dismissed > .sub-menu { display: none; }
.site-nav .sub-menu a { display: block; padding: 9px 18px; color: #fff; font-size: 13px; text-decoration: none; }
.site-nav .sub-menu a:hover, .site-nav .sub-menu .current-menu-item > a { background: var(--navy-deep); color: #fff; }

.search-toggle, .menu-toggle {
	display: flex; align-items: center; justify-content: center; gap: 8px;
	min-width: 48px; padding: 0 12px; border: 0; background: transparent; color: #fff; cursor: pointer;
}
.search-toggle { border-inline-start: 1px solid rgba(255, 255, 255, .18); }
.search-toggle .icon { width: 20px; height: 20px; }
.search-toggle:hover, .search-toggle[aria-expanded="true"] { background: var(--navy-deep); }
.search-toggle .icon-close, .search-toggle[aria-expanded="true"] .icon-search { display: none; }
.search-toggle[aria-expanded="true"] .icon-close { display: block; }
.menu-toggle { display: none; font-weight: bold; font-size: 14px; }
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
	display: block; width: 20px; height: 2px; background: currentColor; position: relative; transition: transform .2s;
}
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; inset-inline-start: 0; }
.menu-toggle__bars::before { top: -6px; }
.menu-toggle__bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.lang-tab {
	flex: 0 0 auto; align-self: flex-start;
	display: flex; align-items: center; min-height: 35px; padding: 0 12px;
	background: var(--orange-text-bg); color: #fff; font-size: 12px; text-decoration: none;
}
.lang-tab:hover { background: #b83c0d; color: #fff; }
.lang-tab[lang="ar"] { font-family: var(--font-ar); font-size: 13px; }

/* Both languages, stacked as two-letter codes at the end of the bar (EN above AR). */
.lang-switch { flex: 0 0 auto; display: flex; flex-direction: column; width: 40px; border-inline-start: 1px solid rgba(255, 255, 255, .18); }
.lang-switch a {
	flex: 1 1 0; display: flex; align-items: center; justify-content: center;
	color: rgba(255, 255, 255, .6); font-size: 11px; font-weight: bold; letter-spacing: .08em; line-height: 1; text-decoration: none;
	font-family: var(--font);
}
.lang-switch a + a { border-block-start: 1px solid rgba(255, 255, 255, .18); }
.lang-switch a[aria-current] { color: #fff; background: rgba(255, 255, 255, .1); }
.lang-switch a:hover, .lang-switch a:focus-visible { color: #fff; background: var(--navy-deep); }

/* Header search. Wide screens: the bar is a grid whose first cell holds both the menu and the search, so the
   field takes exactly the menu's width (logo to search button); it slides in from the search button and covers
   the menu. Narrow screens: it drops below the bar, like the menu (see the max-width: 1023px block). */
.site-search[hidden] { display: none; }
@media (min-width: 1024px) {
	.navbar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-rows: minmax(0, 1fr); }
	.navbar > .site-nav, .navbar > .site-search { grid-area: 1 / 1; min-width: 0; }
	.navbar > .search-toggle { grid-area: 1 / 2; }
	.navbar > .lang-switch { grid-area: 1 / 3; }
	.site-search {
		z-index: 3; display: flex; align-items: center; padding-inline: 8px; background: var(--navy);
		contain: inline-size; /* never widens the bar */
		clip-path: inset(0 0 0 100%); transition: clip-path .28s cubic-bezier(.2, .7, .2, 1);
	}
	[dir="rtl"] .site-search { clip-path: inset(0 100% 0 0); }
	.navbar.is-searching .site-search { clip-path: inset(0); }
	/* Hidden once covered, so its links leave the tab order; back at once on closing. */
	.navbar.is-searching .site-nav { visibility: hidden; transition: visibility 0s .28s; }
	.site-search .search-form { flex: 1 1 auto; height: min(46px, calc(var(--bar) - 14px)); }
	.site-search .search-form__field { padding-block: 0; padding-inline: 16px 8px; border: 0; background: var(--paper); }
	/* The close button sits just beside the field: no second "×" from the browser. */
	.site-search .search-form__field::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
	.site-search .search-form__submit { min-width: 46px; background: var(--paper); color: var(--navy); }
	.site-search .search-form__submit:hover { background: var(--navy-deep); color: #fff; }
}
.search-form { display: flex; gap: 0; }
.search-form__field {
	flex: 1; min-width: 0; padding: 10px 12px; font: inherit; font-size: 16px;
	border: 1px solid #bbb; border-inline-end: 0; border-radius: 0; background: #fff; color: var(--ink);
}
.search-form__submit {
	display: flex; align-items: center; justify-content: center; min-width: 48px;
	border: 0; background: var(--navy); color: #fff; cursor: pointer;
}
.search-form__submit .icon { width: 20px; height: 20px; }

/* ---------- Main areas ---------- */
/* Vertical rhythm: blocks inside main are separated by one value; a dark tab (breadcrumb, section title) sits directly on the block it labels. */
.site-main > * + *, .podcast-home > * + *, .episode > * + * { margin-block-start: var(--stack); }
.site-main > .breadcrumbs + *, .site-main > .listing-head + *, .episode > .breadcrumbs + * { margin-block-start: 0; }
.section-title--light + * { margin-block-start: 0; }

.site-main {
	width: min(var(--wide), 100% - 2 * var(--edge));
	margin-inline: auto;
	padding-block: var(--header-space) 96px;
}
.site-main--home { min-height: 100vh; }
.site-main--timeline { width: 100%; padding-inline: 0; padding-block-end: 0; }

.breadcrumbs ol, .listing-head { display: flex; flex-wrap: wrap; }
.breadcrumbs ol { gap: 0; margin: 0; padding: 0; list-style: none; }
.breadcrumbs, .listing-head {
	width: fit-content; max-width: 100%;
	background: var(--tab); color: #fff; font-size: 12px; line-height: 1.4;
}
.breadcrumbs { padding: 9px 18px; }
.listing-head { align-items: center; gap: 0 6px; padding-block: 0; padding-inline: 0 18px; }
.listing-head .breadcrumbs { padding-inline-end: 0; background: none; }
.breadcrumbs li { display: flex; align-items: center; }
.breadcrumbs li + li::before { content: "/"; margin-inline: 7px; opacity: .7; }
.listing-head .breadcrumbs li:last-child::after { content: "/"; margin-inline-start: 7px; opacity: .7; }
.breadcrumbs a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .5); }
.breadcrumbs a:hover { color: #fff; text-decoration-color: #fff; }
.breadcrumbs [aria-current] { max-width: 48ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.listing-title { margin: 0; padding-block: 8px; color: #fff; font-size: 14px; font-weight: bold; }

.panel { background: var(--paper); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.panel__body { padding: var(--pad-panel); }
.panel--narrow { max-width: 760px; padding: var(--pad-panel); }
.panel--intro { padding: var(--pad-box) var(--pad-panel); }
.panel--search .search-form { max-width: 560px; }
.search-count { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.panel--home { max-width: 760px; padding: var(--pad-panel); }

.entry-title { font-size: clamp(24px, 2.6vw, 32px); margin-block-end: .8em; }

/* ---------- Post media ---------- */
.post-media { background: #f2f2f2; }
.post-media--image img { display: block; width: 100%; max-height: 62vh; object-fit: contain; }
.post-media--embed { background: #000; }
.post-media--embed iframe, .post-media--embed video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; }
.post-media--embed iframe[src*="buzzsprout"], .post-media--embed iframe[height="200"] { aspect-ratio: auto; height: 200px; }

.gallery-carousel { position: relative; }
.gallery-carousel__track {
	display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
	overscroll-behavior-x: contain;
}
.gallery-carousel__track::-webkit-scrollbar { display: none; }
.gallery-carousel__slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; }
.gallery-carousel__slide img { display: block; width: 100%; height: clamp(240px, 46vw, 540px); max-height: 62vh; object-fit: contain; }
.gallery-carousel__prev, .gallery-carousel__next {
	position: absolute; inset-block-start: calc(50% - 40px); width: 44px; height: 44px;
	display: flex; align-items: center; justify-content: center;
	border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--navy);
	box-shadow: 0 2px 8px rgba(0, 0, 0, .2); cursor: pointer;
}
.gallery-carousel__prev { inset-inline-start: 12px; }
.gallery-carousel__next { inset-inline-end: 12px; }
.gallery-carousel__prev .icon { transform: rotate(90deg); }
.gallery-carousel__next .icon { transform: rotate(-90deg); }
[dir="rtl"] .gallery-carousel__prev .icon { transform: rotate(-90deg); }
[dir="rtl"] .gallery-carousel__next .icon { transform: rotate(90deg); }
.gallery-carousel__count { padding: 10px 14px; background: var(--navy); color: #fff; font-size: 13px; font-variant-numeric: tabular-nums; }
.gallery-carousel__dots { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px 14px; background: var(--navy); }
.gallery-carousel__dots button {
	width: 24px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
}
.gallery-carousel__dots button::before { content: ""; width: 9px; height: 9px; background: rgba(255, 255, 255, .45); }
.gallery-carousel__dots button[aria-current="true"]::before { background: #fff; }

/* ---------- Entry content ---------- */
.entry-layout { display: block; }
.entry-layout.has-aside {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); gap: 0 clamp(28px, 4vw, 48px); align-items: start;
}
.entry-content { max-width: var(--measure); overflow-wrap: break-word; }
.entry-layout.has-aside .entry-content { max-width: none; }
.entry-content > *:last-child { margin-block-end: 0; }
.entry-content h2 { font-size: 24px; margin-block-start: 1.4em; }
.entry-content h3 { font-size: 20px; margin-block-start: 1.3em; }
.entry-content h4 { font-size: 17px; font-weight: bold; }
.entry-content ul, .entry-content ol { padding-inline-start: 1.4em; margin: 0 0 1em; }
.entry-content li { margin-block-end: .35em; }
.entry-content blockquote { margin: 1.2em 0; padding-inline-start: 1em; border-inline-start: 3px solid var(--orange); color: #555; }
.entry-content iframe[src*="youtube"], .entry-content iframe[src*="vimeo"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 14px; }
.entry-content th, .entry-content td { padding: 6px 8px; border-bottom: 1px solid #e3e3e3; text-align: start; vertical-align: top; }
.entry-content .wp-caption { max-width: 100%; }
.entry-content .wp-caption.alignnone { margin-inline: 0; } /* default figure margins otherwise push a full-width caption outside its column */
.entry-content .wp-caption-text { color: var(--muted); font-size: 13px; }
.entry-content .alignleft { float: inline-start; margin-inline-end: 1.2em; margin-block-end: .6em; }
.entry-content .alignright { float: inline-end; margin-inline-start: 1.2em; margin-block-end: .6em; }
.entry-content .aligncenter { display: block; margin-inline: auto; }
.entry-content::after { content: ""; display: table; clear: both; }

/* Side boxes written into the content for the old layout move into .entry-aside (see amar.js). */
.entry-aside { display: grid; gap: var(--gap-grid); font-size: 14px; }
.entry-aside[hidden] { display: none; }
.entry-aside > * { margin: 0; padding: var(--pad-box); background: #fff; border: 1px solid var(--line); }
.entry-aside > * > *:last-child { margin-block-end: 0; }

.entry-details {
	display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 0; margin-block-start: 2.2em; padding-block-start: 1em;
	border-top: 1px solid #e5e5e5; color: var(--muted); font-size: 13px;
}
.entry-details > span:not(:last-child)::after { content: "/"; margin-inline: 8px; opacity: .6; } /* the "/" ends a line instead of starting the next (responsive QA) */

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-grid); }
.post-nav__item {
	display: flex; align-items: center; gap: 14px; padding: 12px; background: var(--paper);
	color: var(--ink); text-decoration: none; box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}
.post-nav__item--older { flex-direction: row-reverse; text-align: end; }
.post-nav__item img { width: 64px; height: 64px; object-fit: cover; flex: 0 0 auto; }
.post-nav__item small { display: block; color: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.post-nav__item:hover { color: var(--navy); }
.post-nav__text { line-height: 1.4; }


/* Single pages without side boxes use a narrower, centred column so text and media line up. */
body.single:not(.has-side-boxes):not(.is-podcast-episode) .site-main,
body.page:not(.has-side-boxes):not(.home):not(.page-template-page_full_timeline):not(.page-template-page_main):not(.is-podcast) .site-main { width: min(900px, 100% - 2 * var(--edge)); }
body:not(.has-side-boxes) .entry-content { max-width: none; }
/* Maps and other fixed-width embeds fit their column. */
.entry-content .mapp-layout, .entry-content .mapp-wrapper, .entry-content .mapp-main { width: auto !important; max-width: 100% !important; }
.entry-content [style*="width:"] { max-width: 100%; }
/* Boxes that bring their own frame (e.g. the latest-episodes block) don't get a second one. */
.entry-aside > #main-podcast { padding: 0; border: 0; background: none; }


/* A parent link and its dropdown button read as one menu item. */
.site-nav .menu > li.menu-item-has-children > a { padding-inline-end: 4px; }
.site-nav .menu > li.menu-item-has-children > a + .submenu-toggle { padding-inline: 2px 10px; }

/* Narrow message panels (404, no results) line up with the column they sit in. */
body.error404 .site-main { width: min(900px, 100% - 2 * var(--edge)); }
.error404 .panel--narrow, .site-main--listing .panel--narrow { max-width: none; }

/* ---------- Listings ---------- */
.listing-head { margin-block-end: 0; }
.card-grid {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: var(--gap-grid); align-items: start;
}
.card { background: var(--paper); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); display: flex; flex-direction: column; }
.card__media { display: block; line-height: 0; background: #f2f2f2; }
.card__media img { display: block; width: 100%; height: auto; }
.card__body { padding: var(--pad-box); }
.card__title { margin: 0 0 .6em; font-size: 17px; font-weight: bold; line-height: 1.35; }
.card__title a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(51, 51, 51, .35); }
.card__title a:hover { color: var(--navy); text-decoration-color: currentColor; }
.card__excerpt { margin: 0 0 1em; font-size: 14px; color: #555; }
.card__meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0; font-size: 13px; color: var(--muted); }
.card__more { font-weight: bold; text-decoration: none; white-space: nowrap; }
.card__more::after { content: " \2192"; }
[dir="rtl"] .card__more::after { content: " \2190"; }

.pagination { margin: 0; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px;
	background: var(--paper); color: var(--ink); text-decoration: none; box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}
.pagination .page-numbers.current { background: var(--navy); color: #fff; }
.pagination a.page-numbers:hover { background: var(--navy-deep); color: #fff; }

.button-link { display: inline-block; padding: 10px 18px; background: var(--navy); color: #fff; text-decoration: none; }
.button-link:hover { background: var(--navy-deep); color: #fff; }

/* ---------- Gift-bag pages ---------- */
.panel--bags { margin-inline: auto; text-align: center; }
.bags__artist { margin: 0 0 .2em; color: #c71717; font-size: 30px; font-weight: bold; }
.bags__title { font-size: 26px; margin-block-end: 1.4em; }
.bags__art { display: block; width: 100%; margin-block-start: 32px; }

/* ---------- Footer: the credit bar ---------- */
.site-footer {
	display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
	width: fit-content; max-width: calc(100% - 2 * var(--edge));
	margin: 0 var(--edge) 16px; padding: 8px 16px;
	background: var(--tab); color: #fff; font-size: 12px;
}
.site-footer p { margin: 0; }
.site-footer a { color: #fff; }
.social-links { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.social-links a { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; color: #fff; }
.social-links .icon { width: 20px; height: 20px; }
#fabrika a { text-decoration: none; }
#fabrika a:hover::after { content: ".cc"; }

/* The bar floats bottom-left only where nothing sits under it (home); elsewhere it follows the content
   (on the timeline page it closes the window-tall layout, see timeline.css). */
@media (min-width: 1024px) and (min-height: 640px) {
	.home .site-footer, .page-template-page_main .site-footer {
		position: fixed; z-index: 50; inset-block-end: 0; inset-inline-start: 0; margin: 0; max-width: none;
	}
}

/* ---------- Carried over from the stored custom CSS ---------- */
/* Section artwork (previously in the "backgrounds" and "podcasts" snippets). */
body.category-events, body.category-events-ar,
body.category-documents, body.category-documents-ar,
body.category-products, body.category-products-ar {
	background: #2c2a28 url("/_res/bg/odeon.jpg") center / cover fixed no-repeat;
}
body.category-artists-and-music, body.category-artists-and-music-ar,
body.category-timeline, body.category-timeline-ar {
	background-image: url("/_res/patterns/contemporary_china2.png");
}
body.page-id-2038, body.page-id-2043 { background: #41291c url("/_res/bg/podcast.jpg") no-repeat fixed; }
/* Buzzsprout episode lists: the episode page already shows these details. */
div.episode h3, div.episode p.description, div.episode p.download, div.episode p.artist, div.episode p.date { display: none; }
/* Notes from Shortcodes Ultimate keep the plain white look. */
.entry-content div.su-note { border-color: #fff !important; }
.entry-content div.su-note-inner { background: #fff !important; border-color: #fff !important; border-radius: 0 !important; color: inherit !important; }
/* The language flags inside old content blocks repeat the header switch. */
.entry-content .amar-language-flags, .entry-content #flags_language_selector { display: none; }
.display-posts-listing .listing-item { display: block; padding-block-end: 4px; }
.uber-audio-widget-wrapper ol.audio-playlist { padding-inline-start: 0; }

/* ---------- Narrow screens: compact bar and dropdown menu ---------- */
@media (max-width: 1023px) {
	:root { --bar: 52px; --header-space: calc(var(--bar) + 10px + 22px); }
	.masthead { position: relative; }
	.navbar { flex: 1 1 auto; justify-content: flex-start; }
	.menu-toggle { display: flex; }
	.search-toggle { margin-inline-start: auto; }
	.site-nav {
		position: absolute; inset-block-start: 100%; inset-inline: 0; z-index: 3;
		max-height: calc(100vh - var(--bar) - 20px); overflow-y: auto;
		background: var(--navy); box-shadow: 0 10px 24px rgba(0, 0, 0, .3);
		display: none;
	}
	.site-nav.is-open { display: block; }
	.site-nav .menu { display: block; height: auto; padding: 8px 0; }
	.site-nav .menu > li { display: block; }
	.site-nav .menu > li > a, .site-nav .menu > li > .submenu-toggle {
		width: 100%; min-height: 48px; padding: 0 20px; font-size: 15px; border: 0; justify-content: space-between;
	}
	.site-nav .menu > li > a:hover, .site-nav .menu > li > .submenu-toggle:hover,
	.site-nav .menu > li.current-menu-item > a { background: var(--navy-deep); }
	/* A parent that is also a link: link and expand button share one row. */
	.site-nav .menu > li.menu-item-has-children { display: flex; flex-wrap: wrap; }
	.site-nav .menu > li.menu-item-has-children > a { flex: 1 1 0; width: auto; }
	.site-nav .menu > li.menu-item-has-children > a + .submenu-toggle {
		flex: 0 0 56px; width: 56px; padding: 0; justify-content: center; border-inline-start: 1px solid rgba(255, 255, 255, .15);
	}
	.site-nav .menu > li.menu-item-has-children > .sub-menu { flex-basis: 100%; }
	.site-nav .sub-menu { position: static; box-shadow: none; border: 0; padding: 0 0 8px; background: var(--navy-deep); min-width: 0; }
	.site-nav li:hover > .sub-menu { display: none; }
	.site-nav li.is-open > .sub-menu, .site-nav li:focus-within > .sub-menu { display: block; }
	.site-nav .sub-menu a { padding: 12px 20px 12px 36px; font-size: 14px; padding-inline-start: 36px; }
	.lang-tab { min-height: var(--bar); font-size: 13px; }
	.site-search {
		position: absolute; inset-block-start: 100%; inset-inline: 0; z-index: 3;
		padding: 12px; background: var(--paper); box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
		opacity: 0; transform: translateY(-6px); transition: opacity .2s, transform .2s;
	}
	.navbar.is-searching .site-search { opacity: 1; transform: none; }
}
@media (max-width: 760px) {
	.entry-layout.has-aside { display: block; }
	.entry-aside { margin-block-start: 28px; }
	.post-nav { grid-template-columns: 1fr; }
	.post-nav__item--older { flex-direction: row; text-align: start; }
	.entry-content table { display: block; overflow-x: auto; height: auto !important; } /* responsive QA 2026-11-05: old inline table heights made tiny scroll boxes */
	.entry-content td:has(> a > img) { font-size: 0; } /* disc pairs: the &nbsp; around the pictures pushed one disc down */
	.entry-content .alignleft, .entry-content .alignright { float: none; margin-inline: 0; }
	.breadcrumbs [aria-current] { max-width: 26ch; }
}
@media (max-width: 420px) {
	:root { --edge: 8px; --bar: 46px; }
	/* Visually hidden, but still the button's accessible name ("Menu" / "القائمة"). */
	.menu-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* =========================================================
 * Podcast — "Rawdat al-Balabel"
 * ========================================================= */
:root {
	--prog-sama: #b5451b;
	--prog-nizamuna: #276b6a;
	--prog-min-al-tarikh: #7d2b45;
	--prog-durub-al-nagham: #7a5a10;
	--prog-other: #555;
}
.eyebrow { margin: 0 0 .4em; color: var(--muted); font-size: 12px; font-weight: bold; letter-spacing: .08em; text-transform: uppercase; }
.section-title { font-size: 22px; margin: 0 0 .8em; }
.section-title__count { color: var(--muted); font-size: 16px; font-weight: normal; }
.section-title--light { display: inline-block; padding: 8px 16px; background: var(--tab); color: #fff; font-size: 15px; font-weight: bold; margin: 0; }
.section-intro { color: var(--muted); margin-block-start: -.4em; }

.button-primary, .button-secondary {
	display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 20px;
	font-size: 15px; font-weight: bold; text-decoration: none; cursor: pointer; border-radius: var(--radius);
}
.button-primary { border: 0; background: var(--navy); color: #fff; }
.button-primary:hover { background: var(--navy-deep); color: #fff; }
.button-secondary { border: 2px solid var(--navy); background: #fff; color: var(--navy); }
.button-secondary:hover { background: var(--navy); color: #fff; }

/* Play / pause icon drawn in CSS */
.play-icon { display: inline-block; width: 0; height: 0; border-block: 7px solid transparent; border-inline-start: 11px solid currentColor; margin-inline-start: 3px; }
.is-playing > .play-icon, .is-playing .player-card__play .play-icon, .podcast-bar.is-playing .podcast-bar__play .play-icon {
	width: 12px; height: 14px; border: 0; margin: 0; transform: none;
	background: linear-gradient(to right, currentColor 0 4px, transparent 4px 8px, currentColor 8px 12px);
}

/* Badges per programme */
.badge { display: inline-block; padding: 2px 8px; border-radius: 2px; background: var(--prog-other); color: #fff; font-size: 12px; font-weight: bold; line-height: 1.5; text-decoration: none; white-space: nowrap; }
a.badge:hover { color: #fff; filter: brightness(1.15); }
.badge--sama { background: var(--prog-sama); }
.badge--nizamuna { background: var(--prog-nizamuna); }
.badge--min-al-tarikh { background: var(--prog-min-al-tarikh); }
.badge--durub-al-nagham { background: var(--prog-durub-al-nagham); }

/* Hero */
.podcast-hero { display: grid; grid-template-columns: minmax(160px, 300px) minmax(0, 1fr); gap: var(--pad-panel); align-items: center; padding: var(--pad-panel); }
.podcast-hero__cover { width: 100%; height: auto; border-radius: 50%; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.podcast-hero__title { margin: 0 0 .4em; font-size: clamp(30px, 4vw, 44px); line-height: 1.15; }
.podcast-hero__title span { display: block; margin-block-start: .15em; color: var(--muted); font-size: .62em; }
.podcast-hero__title span[lang="ar"] { font-family: var(--font-ar); }
.podcast-hero__lede { font-size: 17px; max-width: 60ch; }
.stat-row { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 0 0 1.4em; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.stat-row strong { color: var(--ink); font-size: 22px; margin-inline-end: 4px; }
.podcast-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block-end: 1.2em; }
.subscribe-row { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin: 0; font-size: 14px; }
.subscribe-row span { color: var(--muted); }

/* Latest episode */
.podcast-latest { padding: var(--pad-panel); }
.podcast-latest__grid { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 24px; align-items: start; }
.podcast-latest__art { width: 140px; height: 140px; object-fit: cover; }
.podcast-latest__title { font-size: 22px; margin: 0 0 .3em; }
.podcast-latest__title a { color: var(--ink); }

/* Programmes */
.programme-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: var(--gap-grid); }
.programme-card { display: flex; flex-direction: column; padding: var(--pad-box); background: var(--paper); border-top: 5px solid var(--prog-other); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.programme-card--sama { border-top-color: var(--prog-sama); }
.programme-card--nizamuna { border-top-color: var(--prog-nizamuna); }
.programme-card--min-al-tarikh { border-top-color: var(--prog-min-al-tarikh); }
.programme-card--durub-al-nagham { border-top-color: var(--prog-durub-al-nagham); }
.programme-card__name { margin: 0; font-size: 20px; font-weight: bold; }
.programme-card__subtitle { margin: 0 0 .8em; color: var(--muted); font-size: 14px; }
.programme-card__text { flex: 1; font-size: 15px; }
.programme-card__meta { color: var(--muted); font-size: 13px; margin-block-end: .6em; }
.programme-card__link { font-weight: bold; text-decoration: none; }
.programme-card__link::after { content: " \2193"; }

/* Multi-part stories */
.series-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: var(--gap-grid); }
.series-card { display: flex; align-items: center; gap: 14px; padding: 12px; background: var(--paper); color: var(--ink); text-decoration: none; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.series-card:hover { color: var(--navy); box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.series-card__art { width: 64px; height: 64px; object-fit: cover; flex: 0 0 auto; }
.series-card__body { display: grid; gap: 2px; }
.series-card__title { font-weight: bold; line-height: 1.3; }
.series-card__meta { color: var(--muted); font-size: 13px; }

/* Episode browser */
.podcast-browser-panel, .podcast-extras { padding: var(--pad-panel); }
.podcast-extras .section-title { margin-block-end: .4em; }
.podcast-extras .section-intro { margin: 0 0 1em; }
.podcast-extras .episode-row { gap: 4px 14px; padding: 12px 6px; }
.podcast-extras .episode-row:last-child { border-bottom: 0; }
.podcast-browser__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; margin-block-end: 14px; }
.podcast-browser__head .section-title { margin: 0; }
.podcast-browser__tools { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 360px; justify-content: flex-end; }
.podcast-browser__search { flex: 1 1 220px; min-width: 0; min-height: 44px; padding: 8px 12px; font: inherit; font-size: 15px; border: 1px solid #bbb; border-radius: 0; }
.podcast-browser__sort { min-height: 44px; padding: 0 14px; border: 1px solid #bbb; background: #fff; color: var(--ink); cursor: pointer; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: 10px; }
.chip { min-height: 38px; padding: 0 14px; border: 1px solid #ccc; border-radius: 19px; background: #fff; color: var(--ink); font-size: 14px; cursor: pointer; }
.chip[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: #fff; }
.chip__count { opacity: .7; font-size: 12px; margin-inline-start: 2px; }
.podcast-browser__status { min-height: 1.2em; margin: 0 0 6px; color: var(--muted); font-size: 13px; }
.episode-list { margin: 0; padding: 0; list-style: none; }
.episode-row { display: grid; grid-template-columns: 44px 3.2em minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 10px 6px; border-bottom: 1px solid #ececec; }
.episode-row[hidden] { display: none; }
.episode-list--compact .episode-row { grid-template-columns: 40px minmax(0, 1fr); padding: 8px 0; }
.episode-row.is-current { background: #f4f5fa; }
.episode-row__play, .player-card__play, .podcast-bar__play {
	display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
	width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--navy); color: #fff; cursor: pointer;
}
.episode-row__play:hover, .player-card__play:hover { background: var(--orange-text-bg); }
.episode-row__play.is-current { background: var(--orange-text-bg); }
.episode-row__num { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.episode-row__main { display: grid; gap: 3px; min-width: 0; }
.episode-row__title { color: var(--ink); font-weight: bold; line-height: 1.35; text-decoration: none; }
a.episode-row__title:hover { color: var(--navy); text-decoration: underline; }
.episode-row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: var(--muted); font-size: 13px; }
/* Shown when an episode was found through the glossary terms heard in it (podcast.js). */
.episode-row__terms { color: var(--muted); font-size: 13px; }
.podcast-browser__more { margin: 18px 0 0; text-align: center; }
.podcast-browser__more[hidden] { display: none; }
.podcast-browser__empty { padding: 24px 0; color: var(--muted); text-align: center; }

/* Large player */
.player-card { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: center; margin: 1.2em 0; padding: 16px; background: #f4f5fa; border: 1px solid #e1e3ee; }
.player-card__play { width: 64px; height: 64px; }
.player-card__play .play-icon { border-block-width: 11px; border-inline-start-width: 17px; }
.player-card.is-playing .player-card__play .play-icon { width: 16px; height: 20px; background: linear-gradient(to right, currentColor 0 6px, transparent 6px 10px, currentColor 10px 16px); }
.player-card__time { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.player-card__seek, .podcast-bar__seek { width: 100%; accent-color: var(--orange-text-bg); }
.player-card__controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-block-start: 6px; }
.player-card__controls button, .player-card__download {
	min-height: 36px; padding: 0 12px; border: 1px solid #cdd0de; background: #fff; color: var(--ink); font-size: 13px; cursor: pointer; text-decoration: none;
	display: inline-flex; align-items: center;
}
.player-card__controls button:hover, .player-card__download:hover { border-color: var(--navy); color: var(--navy); }
.player-card__download { margin-inline-start: auto; }
.player-card__resume { margin: 8px 0 0; }
.player-card__resume[hidden] { display: none; }
.player-card__resume button { padding: 0; border: 0; background: none; color: var(--link); font-weight: bold; text-decoration: underline; cursor: pointer; }

/* Floating bar */
.podcast-bar {
	position: fixed; z-index: 90; inset-inline: 0; inset-block-end: 0;
	display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto auto auto; gap: 10px; align-items: center;
	padding: 10px max(var(--edge), env(safe-area-inset-left, 0px)) calc(10px + env(safe-area-inset-bottom, 0px));
	background: var(--navy); color: #fff; box-shadow: 0 -6px 20px rgba(0, 0, 0, .25);
	transition: transform .25s ease;
}
.podcast-bar[hidden] { display: none; }
.podcast-bar.is-tucked { transform: translateY(110%); }
.podcast-bar__play { background: #fff; color: var(--navy); }
.podcast-bar__info { min-width: 0; display: grid; gap: 2px; }
.podcast-bar__title { color: #fff; font-weight: bold; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
a.podcast-bar__title:hover { text-decoration: underline; color: #fff; }
.podcast-bar__progress { display: flex; align-items: center; gap: 10px; }
.podcast-bar__time { flex: 0 0 auto; font-size: 12px; opacity: .85; font-variant-numeric: tabular-nums; }
.podcast-bar__btn { min-width: 44px; min-height: 40px; padding: 0 8px; border: 1px solid rgba(255, 255, 255, .3); background: transparent; color: #fff; font-size: 13px; cursor: pointer; }
.podcast-bar__btn:hover { background: var(--navy-deep); }
.podcast-bar__close { font-size: 20px; line-height: 1; }
body.has-podcast-bar { padding-block-end: 76px; }
@media (max-width: 640px) {
	.podcast-bar { grid-template-columns: 44px minmax(0, 1fr) auto auto; }
	.podcast-bar [data-bar="back"], .podcast-bar__speed { display: none; }
}

/* Episode page */
.episode-hero { display: grid; grid-template-columns: minmax(120px, 220px) minmax(0, 1fr); gap: var(--pad-panel); align-items: start; padding: var(--pad-panel); }
.episode-hero__art { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.episode-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 0 0 .6em; color: var(--muted); font-size: 14px; }
.episode-hero__title { font-size: clamp(24px, 3vw, 34px); margin: 0 0 .3em; }
.episode-hero__part { margin: 0; color: var(--muted); font-weight: bold; }
.episode-hero__lang { margin: 0; font-size: 15px; }
.episode-hero__lang a[lang="ar"] { font-family: var(--font-ar); font-size: 16px; }
.episode-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 320px); gap: var(--gap-grid); align-items: start; }
.episode-layout > * { min-width: 0; }
.episode-transcript { padding: var(--pad-panel); }
.episode-transcript .entry-content { max-width: 72ch; overflow-wrap: anywhere; }
.episode-transcript .entry-content li:empty { display: none; } /* legacy empty RTL items can place their markers outside an English column */
.episode-aside { display: grid; gap: var(--gap-grid); position: sticky; top: calc(var(--bar) + 30px); }
.aside-box { padding: var(--pad-box); background: var(--paper); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); font-size: 14px; }
.aside-box__title { font-size: 16px; font-weight: bold; margin: 0 0 .6em; }
.aside-box__text { color: var(--muted); }
.parts-list { margin: 0; padding: 0; list-style: none; counter-reset: none; }
.parts-list li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid #eee; }
.parts-list [aria-current] { font-weight: bold; color: var(--orange-text-bg); }
.parts-list__time { color: var(--muted); font-size: 12px; }
.link-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }

/* About the broadcast */
.podcast-about { padding: 0; }
.podcast-about summary { padding: var(--pad-box) var(--pad-panel); font-weight: bold; cursor: pointer; list-style-position: inside; }
.podcast-about .entry-content { padding: 0 var(--pad-panel) var(--pad-panel); }

@media (max-width: 860px) {
	.episode-layout { grid-template-columns: minmax(0, 1fr); }
	.episode-aside { position: static; }
}
@media (max-width: 640px) {
	.podcast-hero, .episode-hero { grid-template-columns: minmax(0, 1fr); }
	.podcast-hero__cover { width: min(220px, 60vw); margin-inline: auto; }
	.episode-hero__art { width: 120px; }
	.podcast-latest__grid { grid-template-columns: minmax(0, 1fr); }
	.podcast-latest__art { width: 96px; height: 96px; }
	.episode-row { grid-template-columns: 40px minmax(0, 1fr); }
	.episode-row__num { display: none; }
	.player-card { grid-template-columns: 56px minmax(0, 1fr); padding: 12px; }
	.player-card__play { width: 56px; height: 56px; }
	.player-card__download { margin-inline-start: 0; }
}

/* Podcast pages use the full width for their grids and side column. */
body.is-podcast .site-main, body.is-podcast-episode .site-main { width: min(var(--wide), 100% - 2 * var(--edge)); }

/* Media controls keep the universal left-to-right layout in both languages (play points right, time runs left to right). */
.player-card, .podcast-bar { direction: ltr; }
.play-icon { border-inline: 0; border-left: 11px solid currentColor; margin: 0 0 0 3px; }
.player-card__play .play-icon { border-left-width: 17px; }
.podcast-bar__title, .player-card__resume { unicode-bidi: plaintext; }
[dir="rtl"] .player-card__download, [dir="rtl"] .player-card__resume button, [dir="rtl"] .podcast-bar__btn { font-family: var(--font-ar); }

/* ---------- QA pass, 2 October ---------- */
/* Short pages: the credit bar sits at the bottom of the window instead of floating mid-screen. */
body { display: flex; flex-direction: column; }
.site-main { flex: 1 0 auto; }
.site-footer { margin-block-start: auto; }
/* Touch targets of at least 24 px for small links. */
.breadcrumbs a, .site-footer a:not(.social-links a), .subscribe-row a { display: inline-block; padding-block: 4px; }
.breadcrumbs { padding-block: 5px; }
.listing-head .breadcrumbs { padding-block: 0; }
.episode-row__title { padding-block: 2px; }
/* Native audio and video players fill their column. */
.entry-content audio, .panel audio { display: block; width: 100%; margin: .6em 0 1em; }
.entry-content video { width: 100%; height: auto; }
/* Full-screen artwork (WP-Backgrounds) covers the window without distortion on any screen shape. */
#supersized, #supersized li { position: fixed !important; inset: 0 !important; width: 100% !important; height: 100% !important; margin: 0 !important; }
#supersized img { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; }
/* A search box inside a panel keeps its distance from what follows. */
.panel .search-form { margin-block-end: 1.2em; }
.panel .search-form:last-child { margin-block-end: 0; }
/* Text links in cards and details, form fields in content, and seek bars reach 24 px targets. */
.card__title a, .card__more, .entry-details a, .series-card__title { display: inline-block; padding-block: 3px; }
.player-card__seek, .podcast-bar__seek { min-height: 24px; }
.entry-content input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), .entry-content select, .entry-content textarea {
	min-height: 40px; padding: 6px 10px; font: inherit; font-size: 16px; border: 1px solid #bbb; border-radius: 0; max-width: 100%; /* 16px: iOS does not zoom on focus (responsive QA 2026-11-05) */
}
.entry-content input[type="submit"], .entry-content button { min-height: 40px; padding: 0 16px; border: 0; background: var(--navy); color: #fff; font: inherit; font-weight: bold; cursor: pointer; }
.entry-content input[type="submit"]:hover, .entry-content button:hover { background: var(--navy-deep); }
/* Last short targets: programme badges, episode parts, transcript language link, one-word detail links. */
a.badge { padding-block: 3px; }
.parts-list a, .episode-hero__lang a { display: inline-block; padding-block: 3px; }
.episode-row__title { padding-block: 3px; }
.entry-details a { min-width: 24px; text-align: center; }
.link-list a, .aside-box p > a { display: inline-block; padding-block: 4px; }
.breadcrumbs a { min-width: 24px; text-align: center; }

/* Classic [gallery] shortcode (html5 markup, WordPress default styles are off): a responsive thumbnail grid. */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 18px 16px; margin: 1.2em 0; }
.gallery-item { margin: 0; min-width: 0; }
.gallery-icon a { display: block; }
.gallery-item img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: var(--paper); }
.gallery-caption { margin: 6px 0 0; font-size: 13px; line-height: 1.4; text-align: center; overflow-wrap: anywhere; }

/* =========================================================
 * Glossary of the podcast — the term wheel, the term card, the podcast strip, term pages
 * ========================================================= */
:root {
	--sec-maqam: #2b5d8a;
	--sec-concept: #32365f;
	--sec-form: #b0522d;
	--sec-structure: #876812;
	--sec-rhythm: #8a3557;
	--sec-instrument: #3d7848;
	--sec-performance: #6a4c93;
	--sec-poetry: #1c747b;
	--draft-bg: #fff6df;
	--draft-line: #c99a1a;
}
.sector-maqam { --sec: var(--sec-maqam); }
.sector-concept { --sec: var(--sec-concept); }
.sector-form { --sec: var(--sec-form); }
.sector-structure { --sec: var(--sec-structure); }
.sector-rhythm { --sec: var(--sec-rhythm); }
.sector-instrument { --sec: var(--sec-instrument); }
.sector-performance { --sec: var(--sec-performance); }
.sector-poetry { --sec: var(--sec-poetry); }
.glossary-sector__dot { display: inline-block; width: .7em; height: .7em; margin-inline-end: .45em; border-radius: 50%; background: var(--sec, var(--navy)); vertical-align: baseline; }

.glossary-home > * + *, .glossary-entry > * + * { margin-block-start: var(--stack); }
.glossary-home > .breadcrumbs + *, .glossary-entry > .breadcrumbs + * { margin-block-start: 0; }

/* Hero */
.glossary-hero { padding: var(--pad-panel); }
.glossary-hero__title { margin: 0 0 .35em; font-size: clamp(30px, 4vw, 44px); line-height: 1.15; }
.glossary-hero__title span { display: block; margin-block-start: .15em; color: var(--muted); font-size: .6em; }
.glossary-hero__title span[lang="ar"] { font-family: var(--font-ar); }
.glossary-hero__lede { max-width: 62ch; font-size: 17px; }
.glossary-draft-note { margin: 1em 0 0; padding: 12px 16px; background: var(--draft-bg); border-inline-start: 4px solid var(--draft-line); font-size: 14px; max-width: 80ch; }

/* Explorer: search, families, wheel */
.glossary-explorer { padding: var(--pad-panel); }
.glossary-explorer__tools { position: relative; display: grid; gap: 12px; margin-block-end: 8px; }
.glossary-search { width: min(100%, 520px); min-height: 46px; padding: 8px 14px; font: inherit; font-size: 16px; border: 1px solid #bbb; border-radius: 0; }
.glossary-suggest { position: absolute; z-index: 5; inset-block-start: 48px; inset-inline-start: 0; width: min(100%, 520px); margin: 0; padding: 4px 0; list-style: none; background: #fff; border: 1px solid #bbb; box-shadow: 0 8px 24px rgba(0, 0, 0, .15); }
.glossary-suggest button { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 4px 10px; align-items: baseline; width: 100%; padding: 8px 14px; border: 0; background: none; color: var(--ink); font: inherit; text-align: start; cursor: pointer; }
.glossary-suggest button:hover, .glossary-suggest button:focus { background: #f1f2f8; outline: none; }
.glossary-suggest__word { font-weight: bold; }
.glossary-suggest__sub, .glossary-suggest__gloss { color: var(--muted); font-size: 14px; }
.glossary-suggest__gloss { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.glossary-suggest__none { padding: 8px 14px; color: var(--muted); }
.glossary-sectors { margin: 0; }
.glossary-sector { --sec: var(--navy); display: inline-flex; align-items: center; }
.glossary-sector[aria-pressed="true"] { border-color: var(--sec); background: var(--sec); color: #fff; }
.glossary-sector[aria-pressed="true"] .glossary-sector__dot { background: #fff; }

.glossary-map { position: relative; container-type: inline-size; font-family: var(--font); }
body.lang-ar .glossary-map { font-family: var(--font-ar); }
.glossary-wheel { display: block; width: 100%; height: auto; overflow: visible; user-select: none; }
.wheel-wedge { fill: color-mix(in srgb, var(--sec) 6%, #fff); stroke: color-mix(in srgb, var(--sec) 22%, #fff); stroke-width: 1; }
.wheel-family { fill: var(--sec); font-weight: bold; letter-spacing: .02em; }
.wheel-hub__disc { fill: #fff; stroke: #e2e4ee; stroke-width: 1.5; }
.wheel-hub__star { fill: none; stroke: color-mix(in srgb, var(--navy) 14%, #fff); stroke-width: 1.5; }
.wheel-term { cursor: pointer; outline: none; transition: opacity .2s; }
.wheel-term__pill { fill: transparent; transition: fill .2s; }
.wheel-term__label { fill: var(--sec); }
.wheel-term:hover .wheel-term__pill, .wheel-term.is-preview .wheel-term__pill, .wheel-term:focus-visible .wheel-term__pill { fill: color-mix(in srgb, var(--sec) 14%, #fff); }
.wheel-term:focus-visible .wheel-term__pill { stroke: var(--sec); stroke-width: 2; }
.wheel-term.is-related .wheel-term__pill { fill: color-mix(in srgb, var(--sec) 16%, #fff); }
.wheel-term.is-related .wheel-term__label { font-weight: bold; }
.wheel-term.is-selected .wheel-term__pill { fill: var(--sec); }
.wheel-term.is-selected .wheel-term__label { fill: #fff; font-weight: bold; }
.wheel-term.is-dim { opacity: .22; }
.wheel-link { fill: none; stroke: var(--sec); stroke-width: 2; stroke-linecap: round; opacity: .7; }
@media (prefers-reduced-motion: no-preference) {
	.wheel-link { stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: wheel-draw .7s ease-out forwards; }
	@keyframes wheel-draw { to { stroke-dashoffset: 0; } }
}

/* The card of the chosen term: in the hub of the wheel, or under the tapped word on narrow screens */
.glossary-card { display: grid; gap: .45em; align-content: center; font-size: 15px; }
.glossary-card.in-hub {
	position: absolute; inset-block-start: 50%; inset-inline-start: 50%; transform: translate(-50%, -50%);
	width: 32%; max-height: 35%; overflow: hidden; text-align: center; justify-items: center;
	font-size: clamp(11px, 1.38cqi, 15px);
}
[dir="rtl"] .glossary-card.in-hub { transform: translate(50%, -50%); }
.glossary-card > * { margin: 0; }
.glossary-card__count { font-size: 1.1em; color: var(--muted); }
.glossary-card__count strong { display: block; color: var(--navy); font-size: 3.2em; line-height: 1; }
.glossary-card__hint { color: var(--muted); }
.glossary-card__head { display: grid; gap: .1em; }
.glossary-card__word { color: var(--ink); font-size: 2em; font-weight: bold; line-height: 1.15; }
.glossary-card__word[lang="ar"] { font-family: var(--font-ar); font-size: 2.2em; }
.glossary-card__sub { color: var(--muted); font-size: 1.05em; }
.glossary-card__sub[lang="ar"] { font-family: var(--font-ar); font-size: 1.2em; }
.glossary-card__gloss { color: var(--ink); font-style: italic; }
.glossary-card__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; font-size: .85em; }
.glossary-card__cat { color: var(--sec); font-weight: bold; }
.glossary-card__draft { padding: 0 8px; background: var(--draft-bg); border: 1px solid var(--draft-line); color: #6b4f00; }
.glossary-card__def { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.45; text-align: start; }
.glossary-card__ep { display: flex; gap: 10px; align-items: center; text-align: start; }
.glossary-card__ep .episode-row__play { width: 34px; height: 34px; }
.glossary-card__ep-text { display: grid; min-width: 0; font-size: .9em; line-height: 1.3; }
.glossary-card__ep-label { color: var(--muted); font-size: .85em; }
.glossary-card__ep-text a { color: var(--ink); font-weight: bold; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.glossary-card__ep-text a:hover { text-decoration: underline; }
.glossary-card__heard { color: var(--muted); font-size: .85em; }
.glossary-card__more { font-weight: bold; }
.glossary-card:not(.in-hub) { margin-block-start: 14px; padding: 16px 18px; background: #f6f7fb; border-inline-start: 4px solid var(--navy); }

/* Word clouds by family (narrow screens) */
.glossary-cloud { margin-block-start: 18px; }
.glossary-cloud__title { margin: 0 0 8px; color: var(--sec); font-size: 15px; }
.glossary-cloud__words { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.glossary-word { padding: 4px 10px; border: 1px solid color-mix(in srgb, var(--sec) 28%, #fff); border-radius: 999px; background: color-mix(in srgb, var(--sec) 6%, #fff); color: var(--sec); font-family: inherit; line-height: 1.3; cursor: pointer; }
.glossary-word.is-related { background: color-mix(in srgb, var(--sec) 18%, #fff); font-weight: bold; }
.glossary-word.is-selected { background: var(--sec); color: #fff; font-weight: bold; }
.glossary-word.is-dim { opacity: .35; }

/* Podcast strip */
.glossary-strip-wrap { margin-block-start: 24px; }
.glossary-strip__title { margin: 0 0 4px; font-size: 18px; }
.glossary-strip__hint { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.glossary-strip { position: relative; padding-block-end: 22px; }
.glossary-strip__bars { display: flex; align-items: flex-end; gap: 1px; height: 64px; }
.glossary-strip__ep { flex: 1 1 0; min-width: 1px; height: 100%; padding: 0; border: 0; background: var(--prog-other); cursor: pointer; transition: height .3s, background-color .3s, opacity .3s; }
.strip-sama { background: var(--prog-sama); }
.strip-nizamuna { background: var(--prog-nizamuna); }
.strip-min-al-tarikh { background: var(--prog-min-al-tarikh); }
.strip-durub-al-nagham { background: var(--prog-durub-al-nagham); }
.glossary-strip.has-term .glossary-strip__ep:not(.is-on) { height: 18%; background: #d8dae4; }
.glossary-strip__ep:hover, .glossary-strip__ep:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; height: 100%; }
.glossary-strip__ep.is-current { background: var(--orange-text-bg); }
.glossary-strip__years { position: absolute; inset-inline: 0; inset-block-end: 0; height: 18px; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.glossary-strip__years span { position: absolute; inset-block-start: 2px; padding-inline-start: 3px; border-inline-start: 1px solid #c9cbd6; }
.glossary-legend { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 8px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 13px; }
.glossary-legend__swatch { display: inline-block; width: 12px; height: 12px; margin-inline-end: 6px; vertical-align: -1px; }

/* All terms (list) */
.glossary-list { padding: var(--pad-panel); }
.glossary-list__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px 32px; }
.glossary-family__title { margin: 0 0 8px; color: var(--sec); font-size: 16px; }
.glossary-family__terms { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.glossary-family__terms li { display: grid; line-height: 1.35; }
.glossary-family__terms a { color: var(--ink); text-decoration: none; }
.glossary-family__terms a:hover .glossary-term__tr, .glossary-family__terms a:hover .glossary-term__ar:first-child { text-decoration: underline; }
.glossary-term__tr { font-weight: bold; }
.glossary-term__ar { font-family: var(--font-ar); color: var(--muted); }
body.lang-ar .glossary-term__ar:first-child { color: var(--ink); font-weight: bold; }
body.lang-ar .glossary-term__tr { font-family: var(--font); color: var(--muted); font-weight: normal; font-size: 14px; }
.glossary-term__gloss { color: var(--muted); font-size: 13px; }

/* Term page */
.glossary-term { padding: var(--pad-panel); }
.glossary-term__head { padding-block-end: 1em; border-block-end: 1px solid #ececec; }
.glossary-term__title { display: grid; gap: .1em; margin: 0 0 .3em; line-height: 1.15; }
.glossary-term__tr-big { font-size: clamp(32px, 4.4vw, 48px); }
.glossary-term__ar-big { font-family: var(--font-ar); font-size: clamp(38px, 5vw, 56px); }
.glossary-term__ar-sub { font-family: var(--font-ar); color: var(--muted); font-size: clamp(24px, 2.6vw, 30px); font-weight: normal; }
.glossary-term__tr-sub { color: var(--muted); font-family: var(--font); font-size: clamp(18px, 2vw, 22px); font-weight: normal; }
.glossary-term__gloss { margin: 0; font-size: 18px; font-style: italic; }
.glossary-badge--draft { display: inline-block; margin: .8em 0 0; padding: 4px 12px; background: var(--draft-bg); border-inline-start: 4px solid var(--draft-line); color: #6b4f00; font-size: 14px; }
.glossary-term__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.4em; padding-block-start: 1.2em; }
.glossary-term__body > * { min-width: 0; overflow-wrap: anywhere; }
.glossary-term__definition { max-width: var(--measure); font-size: 18px; line-height: 1.7; }
body.lang-ar .glossary-term__definition { font-size: 20px; line-height: 1.9; }
.glossary-term__h2 { margin: 0 0 .5em; font-size: 16px; }
.glossary-heard .glossary-strip { margin-block-end: 14px; }
.glossary-heard__list { margin-block-start: 6px; }
.glossary-term__aside { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--stack); align-items: start; }
.glossary-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.glossary-chip { display: inline-block; padding: 6px 12px; border: 1px solid color-mix(in srgb, var(--sec) 30%, #fff); border-radius: 999px; background: color-mix(in srgb, var(--sec) 7%, #fff); color: var(--sec); font-weight: bold; text-decoration: none; }
.glossary-chip:hover { background: var(--sec); color: #fff; }
.glossary-chip__sub { font-weight: normal; }
.glossary-chip [lang="ar"], .glossary-chip__sub[lang="ar"] { font-family: var(--font-ar); }
.glossary-term__spelled { margin: 0; color: var(--muted); }
.glossary-sources__intro { margin: 0 0 .8em; color: var(--muted); font-size: 14px; }
.glossary-sources__list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.glossary-sources__list > li { min-width: 0; overflow-wrap: anywhere; }
.glossary-sources__list blockquote { margin: 6px 0 0; padding-inline-start: 12px; border-inline-start: 3px solid #dfe1ea; font-size: 15px; line-height: 1.75; }
.glossary-sources__list blockquote[lang="ar"] { font-family: var(--font-ar); }
.glossary-sources__en { color: var(--muted); }
.glossary-editor { border: 1px dashed #b9bccb; background: #fafbfd; font-size: 14px; }
.glossary-back { margin-block-start: var(--stack); }
@media (max-width: 640px) {
	.glossary-strip__bars { gap: 0; height: 52px; }
	.glossary-strip__ep { min-width: 0; box-shadow: inset -1px 0 0 rgba(255, 255, 255, .55); }
}

/* Glossary — two ways in: by term (the wheel) and by episode (the record) */
.glossary-modes { display: flex; flex-wrap: wrap; gap: 4px; margin-block-end: 18px; border-block-end: 2px solid var(--navy); }
.glossary-modes button { min-height: 44px; padding: 0 20px; border: 0; background: #eef0f6; color: var(--ink); font: inherit; font-size: 15px; font-weight: bold; cursor: pointer; }
.glossary-modes button[aria-selected="true"] { background: var(--navy); color: #fff; }
.glossary-modes button:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.record-tools { position: relative; display: grid; gap: 12px; margin-block-end: 6px; }
.record-prog { display: inline-flex; align-items: center; }
.record-prog[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: #fff; }
.record-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; font-size: 14px; }
.record-filter__clear { padding: 4px 12px; border: 0; font: inherit; font-size: 13px; cursor: pointer; }
.record { --rec-sama: #e8835a; --rec-nizamuna: #55bcb1; --rec-min-al-tarikh: #d8739a; --rec-durub-al-nagham: #dcb550; --rec-other: #b3b3bb;
	position: relative; width: min(100%, 760px); margin: 6px auto 0; container-type: inline-size; }
.record-disc { display: block; width: 100%; height: auto; overflow: visible; touch-action: manipulation; border-radius: 50%; }
.record-disc:focus-visible { outline: 3px solid var(--orange); outline-offset: 6px; }
.record-disc__shellac { fill: #19191f; }
.record-disc__groove { fill: none; stroke: rgba(255, 255, 255, .055); stroke-width: 1; }
.record-disc__spiral { fill: none; stroke: rgba(255, 255, 255, .17); stroke-width: 1.2; }
.record-dot { stroke: #19191f; stroke-width: 1.5; cursor: pointer; transition: opacity .25s; fill: var(--rec-other); }
.record-dot.prog-sama { fill: var(--rec-sama); }
.record-dot.prog-nizamuna { fill: var(--rec-nizamuna); }
.record-dot.prog-min-al-tarikh { fill: var(--rec-min-al-tarikh); }
.record-dot.prog-durub-al-nagham { fill: var(--rec-durub-al-nagham); }
.record-dot.is-dim { opacity: .16; }
.record-dot.is-hover { stroke: #fff; stroke-width: 2.5; }
.record-dot.is-selected { stroke: #fff; stroke-width: 4; opacity: 1; }
.record-year { fill: rgba(255, 255, 255, .6); font-size: 15px; font-weight: bold; pointer-events: none; }
.record-needle { fill: none; stroke: #d7d8de; stroke-width: 3.5; stroke-linecap: round; pointer-events: none; }
.record-disc__label { fill: #f3e7cb; }
.record-disc__label-ring { fill: none; stroke: rgba(50, 54, 95, .18); stroke-width: 1.5; }
.record-label {
	position: absolute; inset-block-start: 50%; inset-inline-start: 50%; transform: translate(-50%, -50%);
	display: grid; justify-items: center; gap: .35em; width: 32%; text-align: center; font-size: clamp(9px, 1.9cqi, 15px);
}
[dir="rtl"] .record-label { transform: translate(50%, -50%); }
.record-label.is-cover { width: 39%; }
.record-label__cover { display: block; width: 100%; height: auto; border-radius: 50%; }
.record-label .badge { font-size: .8em; }
.record-label__num { color: var(--muted); font-size: .8em; font-weight: bold; letter-spacing: .06em; }
.record-label__title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink); font-size: 1.05em; font-weight: bold; line-height: 1.25; text-decoration: none; }
.record-label__title:hover { text-decoration: underline; }
.record-label__meta, .record-label__count { color: var(--muted); font-size: .8em; }
.record-label__play { display: flex; align-items: center; justify-content: center; width: 3em; height: 3em; border: 0; border-radius: 50%; background: var(--navy); color: #fff; cursor: pointer; }
.record-label__play:hover, .record-label__play.is-current { background: var(--orange-text-bg); }
.record-tip { position: absolute; z-index: 3; max-width: 80%; padding: 4px 9px; transform: translate(-50%, calc(-100% - 10px)); background: var(--ink); color: #fff; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.record-terms { margin-block-start: 22px; }
.record-terms__title { margin: 0 0 6px; font-size: 18px; }
.record-terms .glossary-cloud__title { font-size: 15px; }
@container (max-width: 520px) {
	.record-label .badge, .record-label__count, .record-label__meta { display: none; }
	.record-label__title { -webkit-line-clamp: 2; }
	.record-year { font-size: 22px; }
}

/* Podcast home: the way into the glossary */
.glossary-teaser { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px var(--pad-panel); align-items: center; padding: var(--pad-panel); border-block-start: 5px solid var(--navy); }
.glossary-teaser__title { margin: 0 0 .4em; font-size: clamp(22px, 2.6vw, 28px); }
.glossary-teaser__text > p:not(.eyebrow) { max-width: 52ch; }
.glossary-teaser__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 1em 0 0; }
.glossary-teaser__note { margin: 1em 0 0; padding: 6px 12px; background: var(--draft-bg); border-inline-start: 4px solid var(--draft-line); color: #6b4f00; font-size: 13px; }
.glossary-teaser__terms { justify-content: center; }
.glossary-teaser__terms .glossary-chip { font-size: 15px; }
@media (max-width: 760px) { .glossary-teaser { grid-template-columns: minmax(0, 1fr); } .glossary-teaser__terms { justify-content: flex-start; } }
/* Transliterations inside Arabic pages read left to right (a leading ʿ stays in front of the word) */
:is(.is-glossary, .glossary-teaser, .aside-box--glossary, .search-glossary) [lang="en"] { direction: ltr; unicode-bidi: isolate; }

/* Episode page: terms heard in this episode */
.aside-box--glossary { border-block-start: 4px solid var(--navy); }
.aside-box__count { color: var(--muted); font-weight: normal; }
.aside-box--glossary .glossary-chips { gap: 6px; margin-block-end: 12px; }
.aside-box--glossary .glossary-chip { padding: 3px 10px; font-size: 14px; }
.aside-box--glossary .glossary-chip [lang="ar"] { font-size: 15px; }
.aside-box__note { margin: 10px 0 0; padding: 4px 10px; background: var(--draft-bg); border-inline-start: 3px solid var(--draft-line); color: #6b4f00; font-size: 12px; }

/* ---------- Search results: person cards and filters (template-parts/search-people.php, search-filters.php) ---------- */
.search-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 16px; margin-block-end: var(--stack); }
.person-card { display: flex; gap: 18px; align-items: flex-start; padding: var(--pad-box); background: var(--paper); border: 1px solid var(--line); }
.person-card__img { flex: 0 0 auto; width: 96px; height: 96px; object-fit: cover; object-position: center top; }
.person-card__body { min-width: 0; }
.search-people .person-card__name { margin: 0; font-size: 22px; line-height: 1.25; text-transform: none; letter-spacing: 0; }
.person-card__name a { color: inherit; text-decoration: none; }
.person-card__name a:hover { text-decoration: underline; }
.person-card__meta { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 4px 0 12px; color: var(--muted); font-size: 14px; }
.person-card__alt[lang="ar"] { font-family: var(--font-ar); font-size: 16px; }
.person-card__links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.person-card__links a {
	display: inline-flex; align-items: center; min-height: 36px; padding: 4px 12px;
	border: 1px solid var(--ink); color: var(--ink); font-size: 14px; line-height: 1.3; text-decoration: none;
}
.person-card__links a:hover { background: var(--ink); color: var(--paper); }
.search-filters { margin-block-end: var(--stack); }
.search-filters__row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; padding: 0; list-style: none; }
.search-filter {
	display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px;
	border: 1px solid var(--line); color: var(--ink); font-size: 14px; line-height: 1.3; text-decoration: none;
}
.search-filter:hover { border-color: var(--ink); }
.search-filter.is-current { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.search-filter__n { opacity: .7; font-variant-numeric: tabular-nums; }
.search-filters__row--sub .search-filter { min-height: 36px; font-size: 13px; }
.search-filters__langs { margin: 2px 0 0; font-size: 14px; }
.search-filters__langs a { color: var(--link); }
/* A result in the other language ("Also show … in Arabic"): written its own way, marked with its language. */
.card.card--lang-ar .card__body { direction: rtl; font-family: var(--font-ar); }
.card.card--lang-en .card__body { direction: ltr; font-family: var(--font); }
.card.is-other-language .card__meta::before {
	content: "English"; display: inline-block; margin-inline-end: 10px; padding: 0 8px;
	border: 1px solid currentColor; font-size: 12px; line-height: 1.6;
}
.card.card--lang-ar .card__meta::before { content: "العربية"; }
@media (max-width: 560px) {
	.person-card { gap: 14px; }
	.person-card__img { width: 72px; height: 72px; }
	.search-people .person-card__name { font-size: 19px; }
}

/* ---------- Search results: matching glossary terms (template-parts/glossary-search.php) ---------- */
.search-glossary { padding: var(--pad-panel); }
.search-glossary .section-title { margin-block-end: .6em; }
.search-glossary__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px 32px; margin: 0; padding: 0; list-style: none; }
.search-glossary__item { display: grid; gap: 2px; align-content: start; }
.search-glossary__link { color: var(--ink); text-decoration: none; }
.search-glossary__link:hover .search-glossary__word, .search-glossary__link:focus-visible .search-glossary__word { text-decoration: underline; }
.search-glossary__word { font-size: 18px; font-weight: bold; }
.search-glossary__word[lang="ar"] { font-family: var(--font-ar); font-size: 20px; }
.search-glossary__sub { color: var(--muted); }
.search-glossary__sub[lang="ar"] { font-family: var(--font-ar); }
.search-glossary__gloss { font-size: 14px; }
.search-glossary__meta { color: var(--muted); font-size: 13px; }
.search-glossary__more { margin-block-start: 16px; }
.search-glossary__more summary { color: var(--link); cursor: pointer; font-size: 14px; }
.search-glossary__more[open] summary { margin-block-end: 16px; }
.search-glossary__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 18px 0 0; font-size: 14px; }
.search-glossary__note { padding: 4px 10px; background: var(--draft-bg); border-inline-start: 3px solid var(--draft-line); color: #6b4f00; font-size: 12px; }

/* responsive QA 2026-11-05: episode transcripts keep the theme's size and face (pasted inline styles made 13px Arabic);
   Arabic pictures aligned right in table cells stay on the right */
.episode-transcript .entry-content [style*="font-size"] { font-size: inherit !important; }
.episode-transcript .entry-content [style*="font-family"] { font-family: inherit !important; }
@media (min-width: 761px) { [dir="rtl"] .entry-content td img.alignright { float: inline-start; margin-inline: 0 1.2em; } }

/* responsive QA 2026-11-05, polish */
@media (max-width: 400px) { .gallery-carousel__dots { gap: 2px; padding-inline: 8px; } }
