/*
 * AleMohamed Noha — main stylesheet (Phase 2).
 * Original clean-room CSS based on the recovered website layout and visual patterns.
 * Mobile-first, CSS Grid/Flexbox, logical properties (RTL-ready), system fonts only.
 */

/* ---------- 1. Design Tokens ---------- */
:root {
	--anh-bg: #efede8;
	--anh-surface: #ffffff;
	--anh-surface-alt: #faf9f6;
	--anh-ink: #22201e;
	--anh-muted: #66615b;
	--anh-line: #e3dfd7;
	--anh-accent: #9e1f14;
	--anh-accent-strong: #7a160d;
	--anh-accent-ink: #ffffff;
	--anh-amber: #f88c00;
	--anh-amber-dark: #9b4d00;
	--anh-header: #1d1b19;
	--anh-nav-top: #2c2a28;
	--anh-nav-bottom: #1b1917;
	--anh-header-ink: #f5f2ec;
	--anh-focus: #1a5fb4;
	--anh-radius: 4px;
	--anh-radius-sm: 3px;
	--anh-shadow: 0 1px 3px rgb(0 0 0 / 7%);
	--anh-gap: clamp(1rem, 2vw, 1.5rem);
	--anh-container: 1360px;
	--anh-sidebar: 310px;
	--anh-font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
	--anh-font-display: "Arial Narrow", "Roboto Condensed", "Segoe UI", system-ui, sans-serif;
	--anh-font-urdu: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Urdu Typesetting", var(--anh-font);
	--anh-step-0: clamp(0.9375rem, 0.91rem + 0.15vw, 1rem);
	--anh-step-1: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
	--anh-step-2: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
	--anh-step-3: clamp(1.45rem, 1.25rem + 1vw, 1.95rem);
}

/* ---------- 2. Base & Reset ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	overflow-x: hidden;
}

body {
	margin: 0;
	background-color: var(--anh-bg);
	background-image:
		linear-gradient(45deg, rgb(0 0 0 / 2%) 25%, transparent 25%),
		linear-gradient(-45deg, rgb(0 0 0 / 2%) 25%, transparent 25%),
		linear-gradient(45deg, transparent 75%, rgb(0 0 0 / 2%) 75%),
		linear-gradient(-45deg, transparent 75%, rgb(0 0 0 / 2%) 75%);
	background-size: 16px 16px;
	background-position: 0 0, 0 8px, 8px -8px, -8px 0;
	color: var(--anh-ink);
	font-family: var(--anh-font);
	font-size: var(--anh-step-0);
	line-height: 1.55;
	overflow-wrap: break-word;
	overflow-x: hidden;
}

:lang(ur),
[lang="ur"] {
	font-family: var(--anh-font-urdu);
	line-height: 2;
}

img,
video,
iframe,
embed,
object,
svg {
	max-width: 100%;
}

img,
video {
	height: auto;
}

a {
	color: var(--anh-ink);
	text-decoration: none;
	transition: color 0.15s ease, background-color 0.15s ease;
}

a:hover {
	color: var(--anh-amber-dark);
}

:focus-visible {
	outline: 3px solid var(--anh-focus);
	outline-offset: 2px;
}

h1,
h2,
h3,
h4 {
	line-height: 1.25;
	margin-block: 0 0.5em;
}

button,
input,
select,
textarea {
	font: inherit;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	margin: 0;
	inset-block-start: 0.5rem;
	inset-inline-start: 0.5rem;
	z-index: 1000;
	padding: 0.75rem 1rem;
	background: var(--anh-surface);
	color: var(--anh-ink);
	border-radius: var(--anh-radius-sm);
	box-shadow: var(--anh-shadow);
}

.container {
	width: 100%;
	max-width: var(--anh-container);
	margin-inline: auto;
	padding-inline: clamp(0.65rem, 2.5vw, 1.25rem);
}

.site {
	width: 100%;
	max-width: var(--anh-container);
	margin-inline: auto;
	background: var(--anh-surface);
	box-shadow: 0 0 10px rgb(0 0 0 / 10%);
}

/* Signature diagonal hatch stripe bar next to section and widget headings */
.stripe-line {
	flex: 1 1 2rem;
	height: 12px;
	min-width: 1.5rem;
	background-image: repeating-linear-gradient(
		-45deg,
		#dad6cd 0,
		#dad6cd 2px,
		transparent 2px,
		transparent 6px
	);
}

/* ---------- 3. Header ---------- */
.site-header {
	background: var(--anh-surface);
	border-block-end: 1px solid var(--anh-line);
}

.topbar {
	background: var(--anh-surface-alt);
	color: var(--anh-muted);
	border-block-start: 3px solid var(--anh-header);
	border-block-end: 1px solid var(--anh-line);
	font-size: 0.8125rem;
}

.topbar__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.4rem 1rem;
	padding-block: 0.35rem;
}

.topbar__nav {
	display: none;
	flex: 1 1 320px;
	min-width: 0;
}

.menu--top {
	display: flex;
	flex-wrap: wrap;
	gap: 0.15rem 0.65rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.menu--top li {
	position: relative;
}

.menu--top a {
	display: inline-block;
	padding: 0.2rem 0.3rem;
	color: var(--anh-muted);
	text-decoration: none;
}

.menu--top a:hover {
	color: var(--anh-ink);
}

.menu--top .sub-menu {
	display: none;
	position: absolute;
	inset-block-start: 100%;
	inset-inline-start: 0;
	z-index: 60;
	min-width: 210px;
	list-style: none;
	margin: 0;
	padding: 0.3rem 0;
	background: var(--anh-surface);
	border: 1px solid var(--anh-line);
	box-shadow: var(--anh-shadow);
}

.menu--top li:hover > .sub-menu,
.menu--top li:focus-within > .sub-menu {
	display: block;
}

.menu--top .sub-menu a {
	display: block;
	padding: 0.35rem 0.75rem;
}

.topbar__search {
	flex: 1 1 200px;
	max-width: 100%;
	margin-inline-start: auto;
}

.masthead {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	padding-block: 0.9rem;
	text-align: center;
}

.site-branding {
	min-width: 0;
	max-width: 100%;
}

.site-branding .custom-logo {
	display: block;
	max-width: min(100%, 260px);
	max-height: 98px;
	width: auto;
	height: auto;
	margin-inline: auto;
}

.site-title {
	margin: 0;
	font-family: var(--anh-font-display);
	font-size: var(--anh-step-2);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.site-title a {
	color: var(--anh-ink);
	text-decoration: none;
}

.header-promo {
	flex: 0 1 auto;
	max-width: 100%;
	text-align: center;
	font-size: 0.75rem;
	color: var(--anh-muted);
}

.header-promo .wp-caption {
	margin: 0 auto;
	padding: 0.35rem;
	max-width: 100%;
	background: var(--anh-surface-alt);
	border: 1px solid var(--anh-line);
	border-radius: var(--anh-radius-sm);
}

.header-promo img {
	display: block;
	margin-inline: auto;
	max-height: 110px;
	width: auto;
}

.header-promo .wp-caption-text {
	margin: 0.2rem 0 0;
	font-size: 0.75rem;
}

/* ---------- 4. Primary Navigation ---------- */
.menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.menu--inline {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.9rem;
}

.menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	min-height: 42px;
	padding: 0.45rem 0.85rem;
	border: 1px solid var(--anh-line);
	border-radius: var(--anh-radius-sm);
	background: var(--anh-header);
	color: var(--anh-header-ink);
	font-weight: 600;
	cursor: pointer;
}

.menu-toggle__icon,
.menu-toggle__icon::before,
.menu-toggle__icon::after {
	display: block;
	width: 18px;
	height: 2px;
	background: currentColor;
	content: "";
	position: relative;
}

.menu-toggle__icon::before {
	position: absolute;
	inset-block-start: -6px;
}

.menu-toggle__icon::after {
	position: absolute;
	inset-block-start: 6px;
}

.primary-nav {
	background: linear-gradient(180deg, var(--anh-nav-top), var(--anh-nav-bottom));
	border-block-end: 3px solid var(--anh-amber);
}

.primary-nav a {
	display: block;
	padding: 0.6rem 0.75rem;
	color: #f3f1ec;
	font-family: var(--anh-font-display);
	font-size: 0.92rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	text-decoration: none;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a {
	background: var(--anh-amber);
	color: #16120d;
}

.js .primary-nav {
	display: none;
}

.js .primary-nav.is-open {
	display: block;
}

.menu--primary li {
	position: relative;
	border-block-end: 1px solid rgb(255 255 255 / 7%);
}

.menu--primary .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	padding-inline-start: 0.75rem;
	background: #171513;
}

.js .menu--primary .sub-menu {
	display: none;
}

.js .menu--primary li.is-open > .sub-menu {
	display: block;
}

.menu--primary .menu-item-has-children {
	display: flex;
	flex-wrap: wrap;
}

.menu--primary .menu-item-has-children > a {
	flex: 1 1 auto;
}

.menu--primary .menu-item-has-children > .sub-menu {
	flex: 1 0 100%;
}

.submenu-toggle {
	min-width: 42px;
	min-height: 40px;
	border: 0;
	background: transparent;
	color: var(--anh-header-ink);
	cursor: pointer;
}

.submenu-toggle::before {
	content: "";
	display: inline-block;
	width: 0.45em;
	height: 0.45em;
	border-inline-end: 2px solid currentColor;
	border-block-end: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.15s ease;
}

li.is-open > .submenu-toggle::before {
	transform: rotate(-135deg);
}

/* ---------- 5. Search Form ---------- */
.search-form {
	display: flex;
	gap: 0.35rem;
	width: 100%;
}

.search-form__field {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 34px;
	padding: 0.3rem 0.6rem;
	border: 1px solid var(--anh-line);
	border-radius: var(--anh-radius-sm);
	background: var(--anh-surface);
	color: var(--anh-ink);
	font-size: 0.85rem;
}

.search-form__submit {
	min-height: 34px;
	padding: 0.3rem 0.75rem;
	border: 0;
	border-radius: var(--anh-radius-sm);
	background: var(--anh-amber);
	color: #18130a;
	font-size: 0.85rem;
	font-weight: 700;
	cursor: pointer;
}

.search-form__submit:hover {
	background: var(--anh-amber-dark);
	color: #ffffff;
}

/* ---------- 6. Page Layout ---------- */
.site-body {
	padding-block: var(--anh-gap);
}

.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--anh-gap);
	align-items: start;
}

.site-main {
	min-width: 0;
}

.breadcrumbs {
	margin-block-end: 1rem;
	padding: 0.45rem 0.75rem;
	background: var(--anh-surface);
	border: 1px solid var(--anh-line);
	border-radius: var(--anh-radius-sm);
	font-size: 0.825rem;
	color: var(--anh-muted);
}

.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.breadcrumbs li + li::before {
	content: "\00BB";
	margin-inline-end: 0.25rem;
	color: var(--anh-muted);
}

.page-header {
	margin-block-end: 1rem;
}

.page-title,
.entry-title {
	font-family: var(--anh-font-display);
	font-size: var(--anh-step-3);
	text-transform: uppercase;
	letter-spacing: 0.01em;
}

/* ---------- 7. Featured Content Slider ---------- */
.featured-slider {
	position: relative;
	margin-block-end: var(--anh-gap);
	background: var(--anh-header);
	border: 1px solid var(--anh-line);
	border-block-end: 3px solid var(--anh-amber);
	border-radius: var(--anh-radius);
	overflow: hidden;
	box-shadow: var(--anh-shadow);
}

.featured-slider__header {
	position: absolute;
	inset-block-start: 0.6rem;
	inset-inline-end: 0.6rem;
	z-index: 10;
}

.featured-slider__controls {
	display: inline-flex;
	gap: 0.25rem;
	background: rgb(0 0 0 / 65%);
	padding: 0.2rem;
	border-radius: var(--anh-radius-sm);
}

.featured-slider__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	min-height: 32px;
	padding: 0 0.4rem;
	border: 1px solid rgb(255 255 255 / 25%);
	border-radius: var(--anh-radius-sm);
	background: transparent;
	color: #ffffff;
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
}

.featured-slider__btn:hover {
	background: var(--anh-amber);
	border-color: var(--anh-amber);
	color: #16120d;
}

.featured-slider__btn--toggle {
	font-size: 0.72rem;
}

.featured-slider__stage {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 100%;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.featured-slider__stage::-webkit-scrollbar {
	display: none;
}

.featured-slide {
	position: relative;
	scroll-snap-align: start;
	aspect-ratio: 620 / 330;
	min-height: 190px;
	background: #141210;
	overflow: hidden;
}

.featured-slide__media {
	display: block;
	width: 100%;
	height: 100%;
}

.featured-slide__img,
.featured-slide__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.featured-slide__caption {
	position: absolute;
	inset-inline: 0;
	inset-block-end: 0;
	padding: 2rem 1rem 0.85rem;
	background: linear-gradient(to top, rgb(0 0 0 / 88%) 0%, rgb(0 0 0 / 55%) 60%, transparent 100%);
	color: #ffffff;
}

.featured-slide__title {
	margin: 0 0 0.2rem;
	font-family: var(--anh-font-display);
	font-size: clamp(1.05rem, 0.9rem + 0.8vw, 1.5rem);
	text-transform: uppercase;
}

.featured-slide__title a {
	color: #ffffff;
	text-decoration: none;
}

.featured-slide__title a:hover {
	color: var(--anh-amber);
}

.featured-slide__subtitle {
	display: inline-block;
	margin: 0;
	padding: 0.15rem 0.5rem;
	background: var(--anh-amber);
	color: #16120d;
	font-size: 0.8rem;
	font-weight: 700;
	border-radius: 2px;
}

.featured-slider__thumbs {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(42px, 1fr);
	list-style: none;
	margin: 0;
	padding: 0;
	background: #23211f;
	border-block-start: 1px solid rgb(255 255 255 / 12%);
	overflow-x: auto;
	scrollbar-width: none;
}

.featured-slider__thumbs::-webkit-scrollbar {
	display: none;
}

.featured-slider__thumb-item {
	min-width: 0;
}

.featured-slider__thumb {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 36px;
	padding: 0.3rem 0.25rem;
	border: 0;
	border-block-start: 3px solid transparent;
	border-inline-end: 1px solid rgb(255 255 255 / 8%);
	background: transparent;
	color: #cfc9bf;
	font-size: 0.72rem;
	cursor: pointer;
	overflow: hidden;
}

.featured-slider__thumb:hover,
.featured-slider__thumb.is-active {
	border-block-start-color: var(--anh-amber);
	background: rgb(255 255 255 / 8%);
	color: #ffffff;
}

.featured-slider__thumb-num {
	font-weight: 700;
}

.featured-slider__thumb-label {
	display: none;
	max-width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ---------- 8. Homepage Category & Recent Boxes ---------- */
.home-section {
	margin-block-end: var(--anh-gap);
}

.home-section__head {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin-block-end: 0.65rem;
}

.home-section__title {
	margin: 0;
	font-family: var(--anh-font-display);
	font-size: 1.25rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--anh-ink);
	white-space: nowrap;
}

.home-section__title a {
	color: inherit;
	text-decoration: none;
}

.home-section__title a:hover {
	color: var(--anh-amber-dark);
}

.home-section__more {
	flex: 0 0 auto;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--anh-accent);
	white-space: nowrap;
}

.cat-box-content {
	background: var(--anh-surface);
	border: 1px solid var(--anh-line);
	border-block-end: 3px solid var(--anh-amber);
	border-radius: var(--anh-radius);
	padding: clamp(0.75rem, 2vw, 1.2rem);
	box-shadow: var(--anh-shadow);
}

/* New Albums (72-item recent grid) */
.recent-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 185px), 1fr));
	gap: 1rem;
}

.recent-item {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.recent-item .post-thumbnail,
.cat-box__lead .post-thumbnail {
	display: block;
	aspect-ratio: 272 / 125;
	background: var(--anh-line);
	border-radius: var(--anh-radius-sm);
	overflow: hidden;
	margin-block-end: 0.45rem;
}

.recent-item .post-thumbnail img,
.cat-box__lead .post-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.post-box-title {
	margin: 0 0 0.2rem;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.35;
}

.post-box-title a {
	color: var(--anh-ink);
	text-decoration: none;
}

.post-box-title a:hover {
	color: var(--anh-accent);
	text-decoration: underline;
}

.post-meta {
	margin: 0;
	font-size: 0.75rem;
	color: var(--anh-muted);
}

/* Category Section 2-column split (`first-news` lead + `other-news` list) */
.cat-box__items {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.85rem 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.cat-box__lead {
	min-width: 0;
	padding-block-end: 0.75rem;
	border-block-end: 1px solid var(--anh-line);
}

.cat-box__lead .post-box-title {
	font-size: 1.05rem;
}

.cat-box__excerpt p {
	margin: 0.4rem 0 0;
	font-size: 0.875rem;
	color: var(--anh-muted);
}

.more-link {
	display: inline-block;
	margin-inline-start: 0.35rem;
	padding: 0.2rem 0.55rem;
	border-radius: var(--anh-radius-sm);
	background: var(--anh-amber);
	color: #16120d;
	font-size: 0.78rem;
	font-weight: 700;
	text-decoration: none;
}

.more-link:hover {
	background: var(--anh-accent);
	color: #ffffff;
}

.cat-box__other {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	min-width: 0;
	padding-block-end: 0.6rem;
	border-block-end: 1px dotted var(--anh-line);
}

.cat-box__other:last-child {
	padding-block-end: 0;
	border-block-end: 0;
}

.cat-box__other .post-thumbnail {
	flex: 0 0 55px;
	width: 55px;
	height: 55px;
	border-radius: var(--anh-radius-sm);
	overflow: hidden;
	background: var(--anh-line);
}

.cat-box__other .post-thumbnail img {
	width: 55px;
	height: 55px;
	object-fit: cover;
	display: block;
}

.cat-box__other-body {
	flex: 1 1 auto;
	min-width: 0;
}

/* ---------- 9. Archive & Search Cards ---------- */
.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
	gap: 1rem;
}

.card:not(.card--recent) {
	display: flex;
	flex-direction: column;
	background: var(--anh-surface);
	border: 1px solid var(--anh-line);
	border-block-end: 3px solid var(--anh-amber);
	border-radius: var(--anh-radius);
	overflow: hidden;
	box-shadow: var(--anh-shadow);
}

.card:not(.card--recent) .post-thumbnail {
	display: block;
	aspect-ratio: 1 / 1;
	background: var(--anh-line);
}

.card:not(.card--recent) .post-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.card__body {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding: 0.8rem 0.9rem 1rem;
}

.card__title {
	margin: 0;
	font-size: 1rem;
}

.card__excerpt {
	color: var(--anh-muted);
	font-size: 0.875rem;
}

.card__excerpt p {
	margin: 0;
}

.term-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem;
}

.term-chip {
	display: inline-block;
	padding: 0.1rem 0.5rem;
	border-radius: 999px;
	background: rgb(248 140 0 / 15%);
	color: #8a4b00;
	font-size: 0.75rem;
	font-weight: 700;
	text-decoration: none;
}

/* ---------- 10. Single Entry & Responsive Tables ---------- */
.entry {
	background: var(--anh-surface);
	border: 1px solid var(--anh-line);
	border-block-end: 3px solid var(--anh-amber);
	border-radius: var(--anh-radius);
	padding: clamp(0.9rem, 2.5vw, 1.75rem);
	box-shadow: var(--anh-shadow);
}

.entry-header {
	margin-block-end: 1rem;
}

.entry-meta {
	color: var(--anh-muted);
	font-size: 0.85rem;
}

.entry > .post-thumbnail {
	margin: 0 0 1.25rem;
	text-align: center;
}

.entry > .post-thumbnail img {
	border-radius: var(--anh-radius-sm);
}

.entry-content > * {
	max-width: 100%;
}

.entry-content .wp-caption {
	max-width: 100%;
}

.entry-content .aligncenter {
	display: block;
	margin-inline: auto;
}

.entry-content .alignleft {
	float: left;
	margin: 0.3rem 1rem 0.6rem 0;
}

.entry-content .alignright {
	float: right;
	margin: 0.3rem 0 0.6rem 1rem;
}

.entry-content table {
	display: block;
	width: auto !important;
	max-width: 100%;
	height: auto !important;
	overflow-x: auto;
	border-collapse: collapse;
	margin-block: 1rem;
	font-size: 0.92rem;
}

.entry-content .table-scroll {
	max-width: 100%;
	overflow-x: auto;
	margin-block: 1rem;
	border-radius: var(--anh-radius-sm);
}

.entry-content .table-scroll > table {
	display: table;
	width: 100% !important;
	min-width: min(100%, 32rem);
	margin: 0;
	overflow: visible;
}

.entry-content tr,
.entry-content td,
.entry-content th {
	height: auto !important;
}

.entry-content th,
.entry-content td {
	padding: 0.5rem 0.65rem;
	border: 1px solid var(--anh-line);
	vertical-align: middle;
	text-align: start;
}

.entry-content th {
	background: var(--anh-header);
	color: var(--anh-header-ink);
	font-weight: 700;
}

.entry-content th p {
	margin: 0;
}

.entry-content tbody tr:nth-child(even) {
	background: var(--anh-surface-alt);
}

.entry-content td a[href] {
	display: inline-block;
	padding: 0.25rem 0.6rem;
	border-radius: var(--anh-radius-sm);
	background: var(--anh-accent);
	color: var(--anh-accent-ink);
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.entry-content td a[href]:hover {
	background: var(--anh-accent-strong);
	color: #ffffff;
}

.entry-content td .wp-caption a[href] {
	display: inline;
	padding: 0;
	background: none;
	color: var(--anh-accent);
	white-space: normal;
}

.entry-footer {
	margin-block-start: 1.5rem;
	padding-block-start: 1rem;
	border-block-start: 1px solid var(--anh-line);
	font-size: 0.875rem;
}

.post-navigation .nav-links,
.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem;
	margin-block: var(--anh-gap);
}

.post-navigation a {
	display: block;
	padding: 0.75rem 1rem;
	background: var(--anh-surface);
	border: 1px solid var(--anh-line);
	border-radius: var(--anh-radius-sm);
	text-decoration: none;
}

.nav-label {
	display: block;
	font-size: 0.75rem;
	color: var(--anh-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.pagination .nav-links {
	justify-content: center;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	min-height: 40px;
	padding: 0 0.55rem;
	border: 1px solid var(--anh-line);
	border-radius: var(--anh-radius-sm);
	background: var(--anh-surface);
	text-decoration: none;
}

.pagination .page-numbers.current {
	background: var(--anh-amber);
	border-color: var(--anh-amber);
	color: #16120d;
	font-weight: 700;
}

/* ---------- 11. Sidebar & Legacy Widgets ---------- */
.site-sidebar {
	display: grid;
	gap: 1.15rem;
	align-content: start;
	min-width: 0;
}

.widget {
	min-width: 0;
}

.widget-top {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	margin-block-end: 0.5rem;
}

.widget-title,
.widget-top h4 {
	margin: 0;
	font-family: var(--anh-font-display);
	font-size: 1.05rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--anh-ink);
}

.widget > :not(.widget-top),
.widget-container {
	background: var(--anh-surface);
	border: 1px solid var(--anh-line);
	border-block-end: 3px solid var(--anh-amber);
	border-radius: var(--anh-radius);
	padding: 0.75rem;
	box-shadow: var(--anh-shadow);
	overflow: hidden;
}

.widget ul {
	margin: 0;
	padding-inline-start: 1.1rem;
}

.widget iframe {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	border: 0;
	background: #ebe8e1;
}

/* Social icons widget (`social-2`) */
.social-icons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.4rem;
}

.social-icons a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 3px;
	background: #44403c;
	color: #ffffff;
	text-decoration: none;
}

.social-icons.icon_24 a {
	width: 28px;
	height: 28px;
}

.social-icons a[title*="Rss" i],
.social-icon--rss {
	background: #f59e0b;
}

.social-icons a[title*="Facebook" i],
.social-icon--facebook {
	background: #3b5998;
}

.social-icons a[title*="Twitter" i],
.social-icon--twitter {
	background: #1da1f2;
}

.social-icons a[title*="Youtube" i],
.social-icon--youtube {
	background: #cc181e;
}

.social-icons a[title*="instagram" i],
.social-icon--instagram {
	background: #3f729b;
}

.social-icons a:hover {
	opacity: 0.88;
	color: #ffffff;
}

/* 250x250 Album Thumbnail Sidebar Widgets (`ads250_250-widget-*`) */
.ads250-250 {
	display: grid;
	gap: 0.5rem;
	justify-items: center;
}

.ad-cell {
	width: 100%;
	max-width: 250px;
	text-align: center;
}

.ad-cell a {
	display: block;
	border: 1px solid var(--anh-line);
	border-radius: var(--anh-radius-sm);
	background: var(--anh-surface-alt);
	overflow: hidden;
	text-decoration: none;
}

.ad-cell img {
	display: block;
	width: 100%;
	max-width: 250px;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	margin-inline: auto;
	background: #ebe7df;
}

.ad-cell__caption {
	display: block;
	padding: 0.35rem 0.5rem;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--anh-ink);
	border-block-start: 1px solid var(--anh-line);
}

/* ---------- 12. Footer ---------- */
.site-footer {
	margin-block-start: calc(var(--anh-gap) * 1.5);
	background: var(--anh-header);
	color: var(--anh-header-ink);
	border-block-start: 4px solid var(--anh-amber);
}

.site-footer a {
	color: #ffffff;
}

.site-footer a:hover {
	color: var(--anh-amber);
}

.footer-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
	gap: var(--anh-gap);
	padding-block: var(--anh-gap);
}

.footer-widgets .widget > :not(.widget-top),
.footer-widgets .widget-container {
	background: rgb(255 255 255 / 5%);
	border-color: rgb(255 255 255 / 12%);
	color: inherit;
}

.footer-widgets .widget-title {
	color: var(--anh-header-ink);
}

.footer-bottom {
	background: #141210;
	border-block-start: 1px solid rgb(255 255 255 / 10%);
	font-size: 0.85rem;
}

.footer-bottom__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1rem;
	padding-block: 0.9rem;
}

.footer-bottom__start,
.footer-bottom__end {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
}

.site-credit {
	margin: 0;
	color: #cfc9bf;
}

.back-to-top {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: var(--anh-radius-sm);
	background: var(--anh-amber);
	color: #16120d !important;
	font-weight: 700;
	text-decoration: none;
}

/* ---------- 13. Empty & 404 States ---------- */
.no-results,
.error-404 {
	background: var(--anh-surface);
	border: 1px solid var(--anh-line);
	border-block-end: 3px solid var(--anh-amber);
	border-radius: var(--anh-radius);
	padding: clamp(1rem, 3vw, 2rem);
}

.term-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	padding: 0;
}

.comments-area {
	margin-block-start: var(--anh-gap);
}

/* ---------- 14. Responsive Breakpoints (320, 390, 768, 1024, 1280) ---------- */
@media (min-width: 390px) {
	.recent-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 640px) {
	.topbar__nav {
		display: block;
	}

	.masthead {
		flex-direction: row;
		justify-content: space-between;
		text-align: start;
	}

	.site-branding .custom-logo {
		max-width: 300px;
		margin-inline: 0;
	}

	.menu-toggle {
		width: auto;
	}

	.recent-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.cat-box__items {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	}

	.cat-box__lead {
		grid-column: 1;
		grid-row: 1 / span 6;
		padding-block-end: 0;
		padding-inline-end: 1rem;
		border-block-end: 0;
		border-inline-end: 1px solid var(--anh-line);
	}

	.cat-box__other {
		grid-column: 2;
	}

	.featured-slider__thumb-label {
		display: block;
	}
}

@media (min-width: 1024px) {
	.topbar__search {
		flex: 0 0 260px;
	}

	.menu-toggle {
		display: none;
	}

	.js .primary-nav,
	.primary-nav {
		display: block;
	}

	.menu--primary {
		display: flex;
		flex-wrap: wrap;
	}

	.menu--primary > li {
		border-block-end: 0;
		border-inline-end: 1px solid rgb(255 255 255 / 8%);
	}

	.menu--primary .menu-item-has-children {
		flex-wrap: nowrap;
	}

	.menu--primary .sub-menu,
	.js .menu--primary .sub-menu {
		position: absolute;
		inset-block-start: 100%;
		inset-inline-start: 0;
		z-index: 50;
		display: none;
		min-width: 240px;
		max-height: 70vh;
		overflow-y: auto;
		padding: 0.25rem 0;
		background: #1d1b19;
		border-block-start: 2px solid var(--anh-amber);
		box-shadow: var(--anh-shadow);
	}

	.menu--primary .sub-menu .sub-menu {
		inset-block-start: 0;
		inset-inline-start: 100%;
	}

	.menu--primary li:hover > .sub-menu,
	.menu--primary li:focus-within > .sub-menu,
	.js .menu--primary li.is-open > .sub-menu {
		display: block;
	}

	.submenu-toggle {
		min-width: 28px;
	}

	.has-sidebar .layout:not(.layout--single-column) {
		grid-template-columns: minmax(0, 1fr) var(--anh-sidebar);
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition: none !important;
		animation: none !important;
	}
}

@media print {
	.site-header,
	.site-footer,
	.site-sidebar,
	.post-navigation,
	.breadcrumbs {
		display: none !important;
	}

	body {
		background: #ffffff;
	}

	.entry {
		border: 0;
		box-shadow: none;
	}
}

/* Phase 3 — album overview and original table presentation. */
.album-hero { display: grid; gap: 1.5rem; margin-block: 1rem 1.75rem; align-items: start; }
.album-hero > *, .album-hero__details { min-width: 0; }
.album-hero .post-thumbnail { margin: 0; }
.album-hero .post-thumbnail img { display: block; width: 100%; height: auto; object-fit: contain; border-radius: var(--anh-radius-sm); }
.album-hero .entry-title { margin-block: 0 .75rem; overflow-wrap: anywhere; }
.album-facts { margin: 1rem 0 0; display: grid; gap: .6rem; }
.album-facts > div { padding-block-end: .6rem; border-block-end: 1px solid var(--anh-line); }
.album-facts dt { color: var(--anh-muted); font-size: .8rem; }
.album-facts dd { margin: .15rem 0 0; font-weight: 600; overflow-wrap: anywhere; }
.entry-content .album-tracks { table-layout: auto; }
.entry-content .album-tracks td { width: auto !important; overflow-wrap: anywhere; }
.entry-content .album-tracks td:first-child { min-width: 2.5rem; }
.entry-content .album-tracks td:nth-child(2) { min-width: 8rem; }
.entry-content .album-tracks td:last-child { min-width: 12rem; }
.entry-content .table-scroll:focus-visible { outline: 3px solid var(--anh-accent); outline-offset: 3px; }
.noha-audio, audio[data-noha-audio] { width: 100%; max-width: 100%; min-width: 0; margin-block: .6rem; }
.noha-audio audio { display: block; width: 100%; }
.noha-audio-note, .noha-audio-status, .noha-download-unavailable { display: block; font-size: .8rem; color: var(--anh-muted); line-height: 1.5; margin-block: .4rem; }
@media (min-width: 640px) { .album-hero { grid-template-columns: minmax(160px, .85fr) minmax(0, 1.3fr); } }
@media (max-width: 639px) { .entry-content .table-scroll > .album-tracks { min-width: 28rem; } }

/* Phase 4 — bounded read-only browsing controls. */
.year-navigation ul, .alphabet-navigation ul, .category-children ul { display:flex; flex-wrap:wrap; gap:.45rem; list-style:none; padding:0; margin:1rem 0; }
.year-navigation a, .alphabet-navigation a, .alphabet-navigation span { display:block; padding:.4rem .65rem; border:1px solid var(--anh-line); border-radius:var(--anh-radius-sm); text-decoration:none; }
.year-navigation a[aria-current], .alphabet-navigation a[aria-current] { background:var(--anh-header); color:var(--anh-header-ink); border-color:var(--anh-accent); }
.alphabet-navigation span { opacity:.45; }
.advanced-search, .reciter-directory, .reciter-collection { margin-block:1.5rem; min-width:0; }
.advanced-search fieldset { display:grid; gap:.85rem; padding:1rem; border:1px solid var(--anh-line); min-width:0; }
.advanced-search legend { font-size:1.1rem; font-weight:700; padding-inline:.4rem; }
.advanced-search label, .directory-search label { display:block; font-size:.9rem; font-weight:600; margin-block-end:.3rem; }
.advanced-search input, .advanced-search select, .directory-search input, .archive-sort select { max-width:100%; width:100%; min-width:0; padding:.6rem; }
.advanced-search fieldset>div, .advanced-search fieldset>button { min-width:0; }
.archive-sort, .directory-search { display:flex; flex-wrap:wrap; align-items:end; gap:.65rem; margin-block:1rem; }
.directory-search label { width:100%; }
.directory-search input { flex:1 1 12rem; }
.archive-sort select { width:auto; }
.reciter-grid { display:grid; gap:1rem; grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr)); }
.reciter-card { min-width:0; padding:1rem; border:1px solid var(--anh-line); border-block-end:3px solid var(--anh-accent); border-radius:var(--anh-radius-sm); background:var(--anh-surface); }
.reciter-card h2 { font-size:1.1rem; line-height:1.6; overflow-wrap:anywhere; margin-block:.6rem; }
.reciter-card p, .browse-count { color:var(--anh-muted); font-size:.9rem; }
.reciter-initial { display:grid; place-items:center; width:3rem; height:3rem; border-radius:50%; background:var(--anh-surface-alt); font-size:1.5rem; font-weight:700; }
.legacy-browse-source { margin-block:2rem; border-block-start:1px solid var(--anh-line); padding-block-start:1rem; }
.legacy-browse-source summary { cursor:pointer; font-weight:600; padding:.6rem 0; }
.search-result-count { margin-block:1rem; }
@media(min-width:640px) { .advanced-search fieldset { grid-template-columns:repeat(3,minmax(0,1fr)); } .advanced-search .search-words { grid-column:1/-1; } }

/* Phase 6: focus contrast, touch controls and wrapping without masking overflow. */
:focus-visible { outline:3px solid var(--anh-focus); outline-offset:3px; box-shadow:0 0 0 2px #fff; }
.menu-toggle, .submenu-toggle, .featured-slider__btn, .featured-slider__thumb, .alphabet-navigation a, .year-navigation a, .pagination a, .pagination span, .advanced-search button, .directory-search button { min-height:44px; }
.submenu-toggle, .featured-slider__btn { min-width:44px; }
.home-section__head { flex-wrap:wrap; }
.home-section__title { white-space:normal; overflow-wrap:anywhere; }
.site-branding, .header-promo, .entry-header, .album-hero__details { min-width:0; }
.entry-title, .card__title, .post-box-title, .reciter-card h2, .widget-title, .site-title { overflow-wrap:anywhere; }
.album-facts dd { overflow-wrap:anywhere; min-width:0; }
.entry-content .table-scroll { scroll-margin-block:1rem; }
.entry-content [role="columnheader"], .entry-content [role="rowheader"] { font-weight:700; }
.recent-item .post-thumbnail > .anh-media, .cat-box__lead .post-thumbnail > .anh-media, .cat-box__other .post-thumbnail > .anh-media { width:100%; height:100%; }
.featured-slide__caption { background:linear-gradient(to top,#141210 0%,#141210 60%,transparent 100%); }
.entry-content font[color="#ff0000"], .entry-content span[style*="#ff0000"] { color:var(--anh-accent) !important; }
[dir="auto"] { unicode-bidi:plaintext; }
@media (prefers-reduced-motion:reduce) { .featured-slider__stage { scroll-behavior:auto; } }

.featured-slider__thumbs { grid-auto-columns:minmax(44px,1fr); }
input[type=search], input[type=text], input[type=url], input[type=number], select, textarea { border-color:#8a8177; }

/* Phase 7: reserve the recovered masthead images before decoding. */
.site-branding .custom-logo { width:260px; max-width:100%; }
.header-promo .wp-caption img { height:110px; width:110px; object-fit:contain; }
@media (min-width:640px) { .site-branding .custom-logo { width:300px; } }

/* Reserve desktop submenu controls before the deferred script creates them. */
@media (min-width:1024px) {
    .js .menu--primary > li > a { min-height:44px; }
    .js .menu--primary .menu-item-has-children { padding-inline-end:44px; }
    .js .menu--primary .menu-item-has-children > .submenu-toggle { position:absolute; inset-inline-end:0; inset-block-start:0; width:44px; height:44px; }
}

.anh-views { display: inline-block; margin-inline-start: .5rem; }
.anh-audio-compact .noha-audio audio { max-width: 16rem; width: 100%; }
.noha-track-controls { display: flex; gap: .35rem; flex-wrap: wrap; }
[data-transition="none"] .featured-slide { transition: none; }
.recent-grid.anh-home-list { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) {
	.has-sidebar .layout { direction: ltr; }
	.has-sidebar .layout > :dir(rtl) { direction: rtl; }
	.has-sidebar.anh-sidebar-left .layout:not(.layout--single-column) { grid-template-columns: var(--anh-sidebar) minmax(0, 1fr); }
	.has-sidebar.anh-sidebar-left .layout .site-sidebar { grid-column: 1; grid-row: 1; }
	.has-sidebar.anh-sidebar-left .layout .site-main { grid-column: 2; grid-row: 1; }
}

.anh-layout-fluid .container { padding-inline: min(var(--anh-fluid-padding, 24px), 5vw); }
.masthead { padding-block: var(--anh-header-padding, 16px); background-color: var(--anh-masthead-bg, transparent); color: var(--anh-masthead-fg, inherit); }
.masthead .site-title a { color: var(--anh-masthead-fg, var(--anh-header-ink)); }
.site-branding .custom-logo { width: var(--anh-logo-width, 260px); height: auto; }
.anh-mobile-logo { display: none; }
@media (max-width: 639px) {
	.anh-desktop-logo.anh-has-mobile-logo { display: none; }
	.anh-mobile-logo { display: inline-block; }
}
.anh-views--badge {
	display: table;
	margin: .5rem 0 .65rem;
	padding: .2rem .65rem;
	border: 1px solid #dcbb83;
	border-radius: 1rem;
	background: #fff6e7;
	color: #59411d;
	font-weight: 600;
}
.anh-views--badge::before {
	content: "";
	display: inline-block;
	width: .9em;
	height: .55em;
	margin-inline-end: .4em;
	border: 1px solid currentColor;
	border-radius: 60% 60% 60% 60% / 85% 85% 85% 85%;
	background: radial-gradient(circle, currentColor 25%, transparent 29%);
	vertical-align: .07em;
}
.anh-footer-brand { font-weight: 700; }

.anh-social-links { display: flex; flex-wrap: wrap; gap: .4rem .85rem; list-style: none; padding: 0; margin: .45rem 0; }
.anh-social-icon { display: inline-block; min-width: 1em; text-align: center; }
