/**
 * Inner pages — extends landing.css (same tokens, typography, chrome).
 * Version: 1.4.0
 */

/* Fixed nav clearance (landing nav is position:fixed) */
body.bayyinah-inner {
	display: flex;
	flex-direction: column;
	padding-top: 5.25rem;
	min-height: 100vh;
}

.site-chrome-nav {
	position: fixed;
}

.footer-logo__text {
	font-family: 'Cormorant Garamond', serif;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--gold);
}

.site-main {
	position: relative;
	z-index: 1;
	flex: 1 0 auto;
	width: 100%;
	max-width: 52rem;
	margin: 0 auto;
	padding: 2.5rem 5vw 3rem;
	box-sizing: border-box;
}

.page-header {
	margin: 0 0 2rem;
}

.page-header h1 {
	margin-bottom: 0.35rem;
}

.page-header .page-intro {
	margin-bottom: 0;
}

.page-header--single .page-header__meta {
	margin: 0.5rem 0 0;
}

.site-main .page-intro {
	color: var(--muted);
	font-size: 1.05rem;
	max-width: 40rem;
	margin: 0.75rem 0 2rem;
}

.site-main h1 {
	font-family: 'Cormorant Garamond', serif;
	font-size: clamp(2rem, 4.5vw, 2.75rem);
	font-weight: 700;
	color: var(--white);
	line-height: 1.15;
	margin-bottom: 0.5rem;
}

.site-main h1 em {
	color: var(--gold);
	font-style: italic;
}

.site-main .entry-content h2 {
	font-family: 'Cormorant Garamond', serif;
	font-size: clamp(1.35rem, 3vw, 1.75rem);
	font-weight: 700;
	color: var(--white);
	margin: 2.25rem 0 0.85rem;
}

.site-main .entry-content h3 {
	font-family: 'Cormorant Garamond', serif;
	font-size: 1.2rem;
	color: var(--gold-2);
	margin: 1.5rem 0 0.65rem;
}

.site-main .entry-content p,
.site-main .entry-content li {
	color: var(--muted);
	font-size: 0.95rem;
	line-height: 1.75;
}

.site-main .entry-content p {
	margin-bottom: 1rem;
}

.site-main .entry-content strong {
	color: var(--white);
	font-weight: 500;
}

.site-main .entry-content a {
	color: var(--gold);
	text-decoration: none;
	border-bottom: 1px solid rgba(212, 175, 55, 0.35);
	transition: color 0.2s, border-color 0.2s;
}

.site-main .entry-content a:hover {
	color: var(--gold-2);
	border-bottom-color: var(--gold-2);
}

.site-main .entry-content ul {
	margin: 0 0 1.25rem 1.25rem;
}

.site-main .entry-content li {
	margin-bottom: 0.5rem;
}

.site-main .entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.25rem 0 1.5rem;
	font-size: 0.95rem;
}

.site-main .entry-content th,
.site-main .entry-content td {
	padding: 0.65rem 0.85rem;
	border-bottom: 1px solid rgba(212, 175, 55, 0.2);
	text-align: left;
	vertical-align: top;
}

.site-main .entry-content tr:last-child td {
	border-bottom: none;
}

.case-study-disclaimer {
	font-size: 0.9rem;
	color: var(--muted);
	border-left: 3px solid var(--gold);
	padding-left: 0.85rem;
	margin-bottom: 1.25rem;
}

.site-main .entry-content th {
	width: 38%;
	color: var(--gold-2);
	font-weight: 600;
}

.site-main .entry-content hr {
	border: none;
	border-top: 1px solid var(--border);
	margin: 2rem 0;
}

/* Breadcrumbs */
.bayyinah-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	list-style: none;
	padding: 0;
	margin: 0 0 1.75rem;
	font-size: 0.8rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.bayyinah-breadcrumbs a {
	color: var(--gold-2);
	text-decoration: none;
	opacity: 0.85;
}

.bayyinah-breadcrumbs a:hover {
	opacity: 1;
	color: var(--gold);
}

.bayyinah-breadcrumbs span[aria-current] {
	color: var(--muted);
}

.bayyinah-breadcrumbs li:not(:last-child)::after {
	content: '›';
	margin-left: 0.35rem;
	color: var(--border);
}

/* Archive lists */
.archive-list {
	list-style: none;
	padding: 0;
	margin: 1.5rem 0 0;
}

.archive-list li {
	margin-bottom: 0;
	padding: 1.35rem 0;
	border-bottom: 1px solid var(--border);
}

.archive-list li:first-child {
	border-top: 1px solid var(--border);
}

.archive-list a {
	font-family: 'Cormorant Garamond', serif;
	font-size: 1.35rem;
	font-weight: 600;
	color: var(--white);
	text-decoration: none;
	transition: color 0.2s;
}

.archive-list a:hover {
	color: var(--gold);
}

.archive-meta {
	font-size: 0.88rem;
	color: var(--muted);
	margin-top: 0.35rem;
}

/* Related / explore cards */
.bayyinah-related {
	margin-top: 3rem;
	padding-top: 2.5rem;
	border-top: 1px solid var(--border);
}

.bayyinah-related h2 {
	font-family: 'Cormorant Garamond', serif;
	font-size: 1.5rem;
	color: var(--white);
	margin-bottom: 1.25rem;
}

.bayyinah-card-grid {
	display: grid;
	gap: 1rem;
}

@media (min-width: 640px) {
	.bayyinah-card-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.bayyinah-card {
	background: rgba(15, 30, 46, 0.65);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 1.25rem 1.35rem;
	transition: border-color 0.2s, background 0.2s;
}

.bayyinah-card:hover {
	border-color: rgba(212, 175, 55, 0.35);
	background: rgba(21, 37, 54, 0.85);
}

.bayyinah-card h3 {
	margin: 0 0 0.5rem;
	font-family: 'Cormorant Garamond', serif;
	font-size: 1.15rem;
	font-weight: 600;
}

.bayyinah-card h3 a {
	color: var(--gold);
	text-decoration: none;
	border: none;
}

.bayyinah-card h3 a:hover {
	color: var(--gold-2);
}

.insights-featured {
	position: relative;
	z-index: 1;
	max-width: 72rem;
	margin: 0 auto;
	padding: 4rem 5vw;
}

.insights-featured__more {
	text-align: center;
	margin-top: 2rem;
}

.bayyinah-card p {
	margin: 0;
	font-size: 0.88rem;
	color: var(--muted);
}

/* WP pagination */
.site-main .nav-links,
.site-main .pagination {
	margin-top: 2rem;
	color: var(--muted);
}

.site-main .nav-links a,
.site-main .page-numbers {
	color: var(--gold);
}

.site-chrome-footer {
	position: relative;
	z-index: 2;
	flex-shrink: 0;
	width: 100%;
	margin-top: 0;
}

.site-chrome-footer .footer-sitemap a {
	position: relative;
	z-index: 1;
	pointer-events: auto;
	cursor: pointer;
}

/* WordPress pagination / nav (hide accessible headings that looked like stray lines) */
.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;
	width: 1px;
	word-wrap: normal !important;
}

.navigation.pagination,
.posts-navigation,
.post-navigation {
	margin: 2rem 0 0;
	padding-top: 1.5rem;
	border-top: 1px solid var(--border);
}

.navigation.pagination .nav-links,
.posts-navigation .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	justify-content: center;
	align-items: center;
}

.navigation.pagination .page-numbers {
	display: inline-block;
	padding: 0.35rem 0.65rem;
	border: 1px solid var(--border);
	border-radius: 4px;
	text-decoration: none;
	color: var(--muted);
	font-size: 0.88rem;
}

.navigation.pagination .page-numbers.current {
	color: var(--gold);
	border-color: rgba(212, 175, 55, 0.45);
	background: rgba(212, 175, 55, 0.08);
}

.navigation.pagination .page-numbers:hover {
	color: var(--gold);
	border-color: var(--gold-2);
}
