/* ==========================================================================
   PureCode Blog — magazine-style bilingual blog stylesheet
   - CSS variables for light/dark
   - Mobile-first responsive
   - Full RTL support via logical properties
   ========================================================================== */

/* PureCode brand palette — blue brand accent (from PureCode logo) on neutral surfaces.
   Override the accent via Customizer → PureCode Branding. */
:root {
	--pc-bg:            #ffffff;
	--pc-surface:       #f6f8fb;
	--pc-surface-2:     #eef2f7;
	--pc-text:          #0f172a;
	--pc-text-muted:    #64748b;
	--pc-border:        #e2e8f0;
	--pc-accent:        #2FC0B0; /* PureCode brand teal */
	--pc-accent-hover:  #22a596;
	--pc-accent-soft:   rgba(47, 192, 176, 0.12);
	--pc-accent-ink:    #06231f; /* dark text/icons on teal surfaces (readable) */
	--pc-accent-2:      #344254; /* PureCode brand navy (secondary) */
	--pc-accent-2-soft: rgba(52, 66, 84, 0.10);
	--pc-accent-2-ink:  #ffffff;
	--pc-shadow:        0 30px 60px -28px rgba(15, 23, 42, 0.25), 0 8px 16px -8px rgba(15, 23, 42, 0.10);
	--pc-shadow-sm:     0 4px 12px -2px rgba(15, 23, 42, 0.08);
	--pc-shadow-glow:   0 0 0 1px rgba(47, 192, 176, 0.20), 0 20px 50px -18px rgba(47, 192, 176, 0.40);
	--pc-radius:        12px;
	--pc-radius-lg:     22px;
	--pc-radius-pill:   999px;

	--pc-font-en:       'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
	--pc-font-ar:       'Tajawal', 'Cairo', system-ui, -apple-system, Segoe UI, sans-serif;

	--pc-header-h:      68px;
}

[data-theme="dark"] {
	--pc-bg:            #0b1220;
	--pc-surface:       #111a2e;
	--pc-surface-2:     #18233b;
	--pc-text:          #e5edf8;
	--pc-text-muted:    #94a3b8;
	--pc-border:        #243149;
	--pc-accent:        #34cdbb; /* brighter teal for dark UI */
	--pc-accent-hover:  #4ad9c8;
	--pc-accent-soft:   rgba(52, 205, 187, 0.16);
	--pc-accent-ink:    #06231f;
	--pc-accent-2:      #2FC0B0; /* teal badge on dark (navy would blend) */
	--pc-accent-2-soft: rgba(47, 192, 176, 0.16);
	--pc-accent-2-ink:  #06231f;
	--pc-shadow:        0 30px 60px -24px rgba(0, 0, 0, 0.7), 0 8px 16px -8px rgba(0, 0, 0, 0.5);
	--pc-shadow-glow:   0 0 0 1px rgba(52, 205, 187, 0.25), 0 20px 50px -18px rgba(52, 205, 187, 0.45);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--pc-bg);
	background-image:
		radial-gradient(1200px circle at 8% -5%, color-mix(in srgb, var(--pc-accent) 14%, transparent), transparent 55%),
		radial-gradient(900px circle at 95% 8%, color-mix(in srgb, var(--pc-accent) 10%, transparent), transparent 55%),
		radial-gradient(800px circle at 50% 110%, color-mix(in srgb, var(--pc-accent) 8%, transparent), transparent 60%);
	background-attachment: fixed;
	color: var(--pc-text);
	font-family: var(--pc-font-en);
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	transition: background-color .3s ease, color .3s ease;
	position: relative;
}

/* Subtle grid texture overlay — adds premium feel without distracting */
body::before {
	content: '';
	position: fixed;
	inset: 0;
	pointer-events: none;
	background-image:
		linear-gradient(to right, color-mix(in srgb, var(--pc-text) 4%, transparent) 1px, transparent 1px),
		linear-gradient(to bottom, color-mix(in srgb, var(--pc-text) 4%, transparent) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent 80%);
	-webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent 80%);
	opacity: .5;
	z-index: 0;
}
body > * { position: relative; z-index: 1; }

html[lang^="ar"] body, .is-rtl, html[data-pc-lang="ar"] body { font-family: var(--pc-font-ar); }

/* Hard-force layout direction from the pre-paint JS attribute. This wins
   over any stale `dir="rtl"` the server may have emitted from a cached
   render. */
html[data-pc-lang="en"] { direction: ltr; }
html[data-pc-lang="en"] body { direction: ltr; }
html[data-pc-lang="ar"] { direction: rtl; }
html[data-pc-lang="ar"] body { direction: rtl; }

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--pc-accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--pc-accent-hover); }

h1, h2, h3, h4 { color: var(--pc-text); line-height: 1.18; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.015em; }

.screen-reader-text { position: absolute !important; left: -9999px; }

/* Skip link */
.pc-skip { position: absolute; inset-inline-start: -9999px; top: 0; background: var(--pc-accent); color: var(--pc-accent-ink); padding: 10px 16px; z-index: 9999; }
.pc-skip:focus { inset-inline-start: 8px; top: 8px; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.pc-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: 8px;
	font-weight: 700;
	font-size: 15px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
	text-decoration: none;
}
.pc-btn svg { width: 16px; height: 16px; }
.pc-btn--primary {
	background: var(--pc-accent);
	color: var(--pc-accent-ink);
	box-shadow:
		0 4px 12px -2px color-mix(in srgb, var(--pc-accent) 50%, transparent),
		inset 0 1px 0 color-mix(in srgb, white 20%, transparent);
	position: relative;
}
.pc-btn--primary::before {
	content: '';
	position: absolute;
	inset: -2px;
	border-radius: 10px;
	background: linear-gradient(135deg, var(--pc-accent), color-mix(in srgb, var(--pc-accent) 40%, white));
	opacity: 0;
	z-index: -1;
	transition: opacity .25s ease;
	filter: blur(8px);
}
.pc-btn--primary:hover {
	background: var(--pc-accent-hover);
	color: var(--pc-accent-ink);
	transform: translateY(-2px);
	box-shadow:
		0 12px 28px -8px color-mix(in srgb, var(--pc-accent) 70%, transparent),
		inset 0 1px 0 color-mix(in srgb, white 20%, transparent);
	text-decoration: none;
}
.pc-btn--primary:hover::before { opacity: .55; }
.pc-btn--ghost {
	background: transparent;
	border-color: var(--pc-border);
	color: var(--pc-text);
}
.pc-btn--ghost:hover { background: var(--pc-surface); }

/* ==========================================================================
   Header
   ========================================================================== */
.pc-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: color-mix(in srgb, var(--pc-bg) 78%, transparent);
	backdrop-filter: saturate(180%) blur(20px);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	border-bottom: 1px solid color-mix(in srgb, var(--pc-border) 70%, transparent);
	box-shadow: 0 1px 0 0 color-mix(in srgb, var(--pc-text) 4%, transparent);
}
/* Single-row header: brand | nav (next to brand) | tools (other end) */
.pc-header__top {
	display: flex;
	align-items: center;
	gap: 32px;
	padding: 16px 40px;
}
.pc-header__brand { flex: 0 0 auto; }
.pc-header__tools { flex: 0 0 auto; margin-inline-start: auto; }

/* Brand logo (the PureCode calligraphy mark) — large and confident */
.pc-brand-logo {
	display: inline-flex;
	align-items: center;
	transition: opacity .2s ease;
}
.pc-brand-logo img {
	height: 110px;
	width: auto;
	display: block;
}
.pc-brand-logo:hover { opacity: .9; }
.custom-logo { max-height: 110px; width: auto; }
.pc-header__brand { display: flex; align-items: center; flex: 0 0 auto; }
.pc-header__title { font-weight: 800; font-size: 22px; color: var(--pc-text); }
.custom-logo { max-height: 44px; width: auto; }

/* Fallback wordmark — shown when no custom logo is set in the Customizer */
.pc-wordmark {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--pc-text);
}
.pc-wordmark:hover { text-decoration: none; }
.pc-wordmark__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px; height: 40px;
	border-radius: 10px;
	background: linear-gradient(135deg, var(--pc-accent), var(--pc-accent-hover));
	color: var(--pc-accent-ink);
	font-weight: 800;
	font-size: 20px;
	letter-spacing: -0.02em;
	box-shadow: 0 6px 14px -4px color-mix(in srgb, var(--pc-accent) 60%, transparent);
}
.pc-wordmark__text {
	display: inline-flex;
	flex-direction: column;
	line-height: 1.1;
}
.pc-wordmark__brand {
	font-size: 17px;
	font-weight: 800;
	color: var(--pc-text);
	letter-spacing: -0.01em;
}
.pc-wordmark__sub {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--pc-accent);
	margin-top: 2px;
}

/* Menu lives inside the top header row, next to the brand */
.pc-nav { flex: 1 1 auto; min-width: 0; }
.pc-nav__list, .pc-nav .menu {
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-wrap: wrap; gap: 4px;
	align-items: center;
	justify-content: flex-start;
}
.pc-nav__list li, .pc-nav .menu li { position: relative; }
.pc-nav__list a, .pc-nav .menu a {
	display: inline-block;
	padding: 8px 16px;
	border-radius: var(--pc-radius-pill);
	color: var(--pc-text);
	font-weight: 700;
	font-size: 15px;
	letter-spacing: -0.005em;
	border: 1px solid transparent;
	transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
	white-space: nowrap;
}
.pc-nav__list a:hover, .pc-nav .menu a:hover {
	background: var(--pc-accent-soft);
	border-color: color-mix(in srgb, var(--pc-accent) 30%, transparent);
	color: var(--pc-accent);
	transform: translateY(-1px);
	text-decoration: none;
}
.pc-nav__list .current-menu-item > a,
.pc-nav .menu .current-menu-item > a,
.pc-nav__list .current_page_item > a,
.pc-nav .menu .current_page_item > a {
	background: var(--pc-accent);
	color: var(--pc-accent-ink);
	border-color: var(--pc-accent);
	box-shadow: 0 4px 12px -4px color-mix(in srgb, var(--pc-accent) 60%, transparent);
}

.pc-nav .sub-menu, .pc-nav .children {
	position: absolute; top: 100%; inset-inline-start: 0;
	min-width: 220px;
	background: var(--pc-bg);
	border: 1px solid var(--pc-border);
	border-radius: var(--pc-radius);
	box-shadow: var(--pc-shadow);
	padding: 6px;
	display: none;
	flex-direction: column;
	z-index: 50;
}
.pc-nav li:hover > .sub-menu, .pc-nav li:focus-within > .sub-menu { display: flex; }
.pc-nav .sub-menu .sub-menu { top: 0; inset-inline-start: 100%; }

.pc-header__tools { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.pc-search-toggle, .pc-theme-toggle, .pc-mobile-toggle {
	background: transparent;
	border: 1px solid var(--pc-border);
	color: var(--pc-text);
	width: 54px; height: 54px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.pc-search-toggle:hover, .pc-theme-toggle:hover, .pc-mobile-toggle:hover {
	background: var(--pc-accent-soft);
	border-color: color-mix(in srgb, var(--pc-accent) 40%, transparent);
	color: var(--pc-accent);
	transform: translateY(-1px);
}
.pc-search-toggle svg, .pc-theme-toggle svg, .pc-mobile-toggle svg { width: 24px !important; height: 24px !important; }
.pc-theme-toggle .pc-icon-moon { display: none; }
[data-theme="dark"] .pc-theme-toggle .pc-icon-sun { display: none; }
[data-theme="dark"] .pc-theme-toggle .pc-icon-moon { display: block; }
.pc-mobile-toggle { display: none; border-radius: 8px; border-color: var(--pc-border); }

.pc-langs {
	list-style: none;
	display: inline-flex;
	gap: 0;
	margin: 0 8px;
	padding: 5px;
	background: var(--pc-surface);
	border: 1px solid var(--pc-border);
	border-radius: var(--pc-radius-pill);
}
.pc-langs li { display: inline-flex; }
.pc-langs a {
	display: inline-flex;
	align-items: center;
	padding: 11px 22px;
	border-radius: var(--pc-radius-pill);
	font-size: 16px;
	font-weight: 800;
	color: var(--pc-text-muted);
	letter-spacing: .08em;
	transition: color .15s ease, background .15s ease;
}
.pc-langs a:hover { color: var(--pc-text); text-decoration: none; }
.pc-langs .current-lang a {
	color: var(--pc-accent-ink);
	background: var(--pc-accent);
	box-shadow: 0 2px 6px -1px var(--pc-accent-soft);
}

.pc-search { border-top: 1px solid var(--pc-border); padding: 16px; background: var(--pc-surface); }
.pc-searchform { display: flex; gap: 8px; max-width: 720px; margin: 0 auto; }
.pc-searchform input[type="search"] {
	flex: 1 1 auto;
	border: 1px solid var(--pc-border);
	background: var(--pc-bg);
	color: var(--pc-text);
	border-radius: 10px;
	padding: 12px 14px;
	font: inherit;
}
.pc-searchform input[type="search"]:focus {
	outline: 2px solid var(--pc-accent);
	outline-offset: 0;
	border-color: transparent;
}
.pc-searchform button {
	background: var(--pc-accent); color: var(--pc-accent-ink);
	border: 0; border-radius: 10px;
	width: 44px; height: 44px;
	cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center;
}
.pc-searchform button svg { width: 18px; height: 18px; }

/* ==========================================================================
   Main
   ========================================================================== */
.pc-main { min-height: 60vh; padding-block-end: 64px; }

/* ==========================================================================
   Featured hero
   ========================================================================== */
.pc-featured {
	position: relative;
	padding: 72px 24px 48px;
	overflow: hidden;
	isolation: isolate;
}
.pc-featured--text {
	padding: 88px 24px 96px;
	min-height: 60vh;
	display: flex;
	align-items: center;
}
.pc-featured__bg {
	position: absolute;
	inset: -120px -10% auto -10%;
	height: 560px;
	background:
		radial-gradient(closest-side at 30% 50%, color-mix(in srgb, var(--pc-accent) 22%, transparent), transparent 75%),
		radial-gradient(closest-side at 75% 30%, color-mix(in srgb, var(--pc-accent) 14%, transparent), transparent 70%);
	filter: blur(10px);
	z-index: -1;
	pointer-events: none;
	animation: pc-float 16s ease-in-out infinite alternate;
}
@keyframes pc-float {
	from { transform: translate3d(-2%, 0, 0); }
	to   { transform: translate3d(2%, -8px, 0); }
}

/* Architectural skyline silhouette behind text-only hero */
.pc-featured__skyline {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	width: 100%;
	height: 38%;
	color: var(--pc-accent);
	z-index: -1;
	pointer-events: none;
	opacity: .55;
}
[data-theme="dark"] .pc-featured__skyline { opacity: .65; }
/* VERTICAL hero layout — image on top, content centered below.
   Replaces the previous 2-column horizontal hero per client request. */
.pc-featured__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 36px;
	max-width: 980px;
	margin: 0 auto;
	text-align: center;
}
.pc-featured__media {
	width: 100%;
	max-width: 980px;
	aspect-ratio: 16/9;
}
.pc-featured__body { width: 100%; max-width: 820px; }
.pc-featured__meta, .pc-featured__footer { justify-content: center; }
.pc-featured--text .pc-featured__inner {
	padding: 32px 0 16px;
}

.pc-featured__tag {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 18px;
	border-radius: var(--pc-radius-pill);
	background: var(--pc-accent-soft);
	border: 1px solid color-mix(in srgb, var(--pc-accent) 22%, transparent);
	color: var(--pc-accent);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	margin-bottom: 22px;
	position: relative;
}
.pc-featured__tag::before {
	content: '';
	display: inline-block;
	width: 6px; height: 6px;
	border-radius: 50%;
	background: var(--pc-accent);
	box-shadow: 0 0 0 4px var(--pc-accent-soft);
	animation: pc-pulse 2s ease-in-out infinite;
}
@keyframes pc-pulse {
	0%, 100% { transform: scale(1); opacity: 1; }
	50%      { transform: scale(1.4); opacity: .55; }
}

.pc-featured__media {
	display: block;
	border-radius: var(--pc-radius-lg);
	overflow: hidden;
	aspect-ratio: 4/3;
	background: var(--pc-surface);
	box-shadow: var(--pc-shadow);
	position: relative;
}
.pc-featured__media::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 60%, color-mix(in srgb, var(--pc-text) 30%, transparent));
	pointer-events: none;
	opacity: 0;
	transition: opacity .3s ease;
}
.pc-featured__media:hover::after { opacity: 1; }
.pc-featured__media img {
	width: 100%; height: 100%; object-fit: cover;
	transition: transform .6s ease;
}
.pc-featured__media:hover img { transform: scale(1.05); }

.pc-featured__body { padding: 8px 0; }
.pc-featured__title {
	font-size: clamp(38px, 5.4vw, 76px);
	font-weight: 800;
	line-height: 1.04;
	letter-spacing: -0.025em;
	margin: 18px 0 24px;
}
.pc-featured__title a {
	background: linear-gradient(
		135deg,
		var(--pc-text) 0%,
		var(--pc-text) 50%,
		color-mix(in srgb, var(--pc-accent) 80%, var(--pc-text)) 100%
	);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
	transition: filter .25s ease;
}
.pc-featured__title a:hover {
	filter: brightness(1.15);
	text-decoration: none;
}
.pc-featured--text .pc-featured__title {
	font-size: clamp(40px, 6.5vw, 88px);
}
.pc-featured__excerpt {
	color: var(--pc-text-muted);
	font-size: 18px;
	line-height: 1.65;
	margin: 0 0 32px;
}
.pc-featured__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

/* ==========================================================================
   Meta line (date + reading time)
   ========================================================================== */
.pc-meta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--pc-text-muted);
	font-size: 14px;
	flex-wrap: wrap;
}
.pc-meta a { color: var(--pc-text-muted); }
.pc-meta a:hover { color: var(--pc-accent); }
.pc-meta__date { display: inline-flex; align-items: center; gap: 6px; }
.pc-meta__icon { width: 16px; height: 16px; opacity: .8; }
.pc-meta__sep { opacity: .4; }

/* ==========================================================================
   Author byline
   ========================================================================== */
.pc-author {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--pc-text-muted);
	font-size: 14px;
}
.pc-author__avatar {
	width: 32px !important; height: 32px !important;
	border-radius: 50% !important;
	object-fit: cover;
}
.pc-author__by { opacity: .7; }
.pc-author__name {
	color: var(--pc-text);
	font-weight: 600;
}
.pc-author__name:hover { color: var(--pc-accent); text-decoration: none; }

/* ==========================================================================
   Tabs + search row
   ========================================================================== */
.pc-tabs {
	padding: 40px 24px 8px;
}
.pc-tabs__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	border-bottom: 1px solid var(--pc-border);
	max-width: 1320px;
	margin: 0 auto;
}
.pc-tabs__nav {
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
}
.pc-tab {
	position: relative;
	display: inline-flex;
	align-items: center;
	padding: 10px 18px;
	margin-inline-end: 4px;
	border-radius: var(--pc-radius-pill);
	color: var(--pc-text-muted);
	font-weight: 700;
	font-size: 15px;
	transition: color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.pc-tab::after {
	content: '';
	position: absolute;
	inset-inline: 18px;
	bottom: -1px;
	height: 2px;
	background: var(--pc-accent);
	border-radius: 2px;
	transform: scaleX(0);
	transform-origin: center;
	transition: transform .3s cubic-bezier(.2, .9, .3, 1);
}
.pc-tab:hover {
	color: var(--pc-accent);
	background: var(--pc-accent-soft);
	text-decoration: none;
}
.pc-tab:hover::after { transform: scaleX(0); }
.pc-tab.is-active {
	color: var(--pc-accent);
	background: var(--pc-accent-soft);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pc-accent) 30%, transparent);
}
.pc-tab.is-active::after { transform: scaleX(1); }
/* Tab-bar search removed per client feedback — header search drawer remains */
.pc-tabs__search { display: none; }

/* ==========================================================================
   Card grid (homepage / archives)
   ========================================================================== */
/* Horizontal-rectangle list (clutch.co style):
   single column of full-width rows; each row has image left, content right.
   Items stack vertically. */
.pc-grid {
	display: flex;
	flex-direction: column;
	gap: 28px;
	padding: 48px 24px 64px;
	max-width: 1320px;
	margin: 0 auto;
}

.pc-card {
	background: color-mix(in srgb, var(--pc-bg) 70%, transparent);
	backdrop-filter: blur(12px) saturate(140%);
	-webkit-backdrop-filter: blur(12px) saturate(140%);
	border: 1px solid var(--pc-border);
	border-radius: var(--pc-radius-lg);
	overflow: hidden;
	display: flex;
	flex-direction: row;
	align-items: stretch;
	min-height: 230px;
	transition: transform .3s cubic-bezier(.2, .9, .3, 1), box-shadow .3s ease, border-color .3s ease;
	position: relative;
}
.pc-card::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	pointer-events: none;
	box-shadow: 0 0 0 0 var(--pc-accent-soft);
	transition: box-shadow .25s ease;
}
.pc-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--pc-shadow);
	border-color: color-mix(in srgb, var(--pc-accent) 40%, var(--pc-border));
}
.pc-card:hover::after { box-shadow: 0 0 0 4px var(--pc-accent-soft); }
.pc-card::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	pointer-events: none;
	box-shadow: 0 0 0 0 var(--pc-accent-soft);
	transition: box-shadow .25s ease;
}
.pc-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--pc-shadow);
	border-color: color-mix(in srgb, var(--pc-accent) 40%, var(--pc-border));
}
.pc-card:hover::after { box-shadow: 0 0 0 4px var(--pc-accent-soft); }
.pc-card__media {
	display: block;
	flex: 0 0 420px;
	overflow: hidden;
	background: var(--pc-surface);
	position: relative;
	min-height: 100%;
}
.pc-card__media::after {
	/* Subtle gradient overlay so the badge stays legible on bright photos */
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(26, 19, 24, 0) 55%, rgba(26, 19, 24, 0.45) 100%);
	pointer-events: none;
	opacity: 0;
	transition: opacity .3s ease;
}
.pc-card:hover .pc-card__media::after { opacity: 1; }
.pc-card__badge {
	position: absolute;
	top: 16px;
	inset-inline-start: 16px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	border-radius: var(--pc-radius-pill);
	background: var(--pc-accent-2); /* PureCode navy badge */
	color: var(--pc-accent-2-ink);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--pc-accent) 70%, transparent);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	max-width: calc(100% - 32px);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: transform .25s ease;
}
.pc-card:hover .pc-card__badge { transform: translateY(-2px); }
.pc-card__media img {
	width: 100%; height: 100%; object-fit: cover;
	transition: transform .5s ease;
	display: block;
}
.pc-card:hover .pc-card__media img { transform: scale(1.05); }
.pc-card:hover .pc-card__media img { transform: scale(1.07); }
.pc-card__media-fallback {
	width: 100%; height: 100%;
	background:
		linear-gradient(135deg, color-mix(in srgb, var(--pc-accent) 25%, var(--pc-surface-2)), var(--pc-surface)),
		linear-gradient(45deg, transparent 48%, color-mix(in srgb, var(--pc-accent) 8%, transparent) 50%, transparent 52%);
	color: var(--pc-accent);
	display: flex;
	align-items: center;
	justify-content: center;
}
.pc-card__media-fallback svg { width: 100%; height: 100%; }

.pc-card__body {
	padding: 32px 40px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1 1 auto;
	min-width: 0;
}
.pc-card__meta { font-size: 13px; }
.pc-card__title {
	font-size: 26px;
	font-weight: 800;
	margin: 0;
	line-height: 1.25;
}
.pc-card__title a { color: var(--pc-text); }
.pc-card__title a:hover { color: var(--pc-accent); text-decoration: none; }
.pc-card__excerpt {
	color: var(--pc-text-muted);
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.pc-card__footer {
	margin-top: auto;
	padding-top: 12px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	flex-wrap: wrap;
}
.pc-card__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--pc-accent);
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	transition: gap .15s ease;
}
.pc-card__more svg { width: 14px; height: 14px; }
.pc-card__more:hover { gap: 10px; color: var(--pc-accent-hover); text-decoration: none; }

/* ==========================================================================
   Article
   ========================================================================== */
.pc-article {
	max-width: 760px;
	margin: 0 auto;
	padding: 48px 16px 24px;
}
.pc-article__header { margin-bottom: 28px; }
.pc-article__meta { margin-bottom: 16px; }

.pc-article__title {
	font-size: clamp(28px, 4vw, 48px);
	font-weight: 800;
	line-height: 1.12;
	margin: 0 0 16px;
}
.pc-article__lede {
	font-size: 20px;
	color: var(--pc-text-muted);
	line-height: 1.5;
	margin: 0 0 20px;
}
.pc-article__author { margin-top: 18px; }

.pc-article__hero {
	margin: 32px -16px;
	border-radius: var(--pc-radius-lg);
	overflow: hidden;
}
.pc-article__hero img { width: 100%; }

.pc-article__body {
	font-size: 18px;
	line-height: 1.85;
}
.pc-article__body h2 { font-size: 30px; margin: 1.6em 0 .5em; }
.pc-article__body h3 { font-size: 24px; margin: 1.4em 0 .4em; }
.pc-article__body h4 { font-size: 20px; }
.pc-article__body p, .pc-article__body ul, .pc-article__body ol { margin: 0 0 1.1em; }
.pc-article__body img { border-radius: var(--pc-radius); margin: 1em 0; }
.pc-article__body blockquote {
	margin: 1.5em 0;
	padding: 16px 20px;
	border-inline-start: 4px solid var(--pc-accent);
	background: var(--pc-surface);
	border-radius: 8px;
	font-style: italic;
}
.pc-article__body pre {
	background: var(--pc-surface);
	border: 1px solid var(--pc-border);
	border-radius: var(--pc-radius);
	padding: 16px;
	overflow-x: auto;
	font-size: 14px;
}
.pc-article__body code { background: var(--pc-surface); padding: 2px 6px; border-radius: 6px; font-size: .9em; }

.pc-article__footer {
	margin-top: 36px;
	padding-top: 24px;
	border-top: 1px solid var(--pc-border);
}

/* Social share */
.pc-share { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pc-share__label { font-weight: 700; color: var(--pc-text-muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.pc-share__list { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; }
.pc-share__btn {
	width: 40px; height: 40px;
	border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--pc-surface);
	border: 1px solid var(--pc-border);
	color: var(--pc-text);
	transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.pc-share__btn svg { width: 18px; height: 18px; fill: currentColor; }
.pc-share__btn:hover {
	background: var(--pc-accent);
	color: var(--pc-accent-ink);
	border-color: var(--pc-accent);
	transform: translateY(-2px);
	text-decoration: none;
}

/* Tags */
.pc-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0 0; padding: 0; }
.pc-tags li a {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--pc-surface);
	border: 1px solid var(--pc-border);
	color: var(--pc-text-muted);
	font-size: 13px;
}
.pc-tags li a:hover { color: var(--pc-accent); text-decoration: none; }

/* Post nav */
.pc-postnav {
	max-width: 760px;
	margin: 24px auto 0;
	padding: 0 16px;
	display: flex;
	justify-content: space-between;
	gap: 16px;
}
.pc-postnav a { color: var(--pc-text); font-weight: 600; }

/* Archive header */
.pc-archive-header { padding: 56px 16px 0; text-align: center; }
.pc-archive-header__inner { }
.pc-archive__title { font-size: clamp(28px, 3.5vw, 42px); }
.pc-archive__desc { color: var(--pc-text-muted); max-width: 640px; margin: 0 auto; }

/* Pagination */
.pc-pagination {
	display: flex;
	justify-content: center;
	padding: 32px 16px 48px;
}
.pc-pagination .nav-links {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
}
.pc-pagination a, .pc-pagination span {
	min-width: 44px;
	height: 44px;
	padding: 0 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--pc-radius-pill);
	background: var(--pc-bg);
	border: 1px solid var(--pc-border);
	color: var(--pc-text);
	font-weight: 700;
	font-size: 15px;
	transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.pc-pagination .current {
	background: var(--pc-accent);
	color: var(--pc-accent-ink);
	border-color: var(--pc-accent);
	box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--pc-accent) 60%, transparent);
}
.pc-pagination a:hover {
	text-decoration: none;
	border-color: var(--pc-accent);
	color: var(--pc-accent);
	background: var(--pc-accent-soft);
	transform: translateY(-1px);
}
.pc-pagination .prev,
.pc-pagination .next {
	padding: 0 22px;
	font-weight: 700;
}
.pc-pagination .dots {
	background: transparent;
	border-color: transparent;
	color: var(--pc-text-muted);
}

/* Empty / 404 */
.pc-empty, .pc-404 {
	text-align: center;
	padding: 72px 24px;
	color: var(--pc-text-muted);
	max-width: 520px;
	margin: 0 auto;
}
.pc-empty__icon {
	width: 64px; height: 64px;
	margin: 0 auto 14px;
	color: var(--pc-accent);
	opacity: .8;
	animation: pc-bob 3s ease-in-out infinite;
}
@keyframes pc-bob {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-6px); }
}
.pc-empty h2 { color: var(--pc-text); font-size: 22px; margin-bottom: 6px; font-weight: 700; }
.pc-empty p { margin: 0; font-size: 14px; }
.pc-404 h1 { font-size: 96px; color: var(--pc-accent); margin: 0; }

/* ==========================================================================
   Footer (Croster-style multi-column)
   ========================================================================== */
.pc-footer {
	margin-top: 80px;
	background: var(--pc-surface);
	border-top: 2px solid var(--pc-accent);
	position: relative;
}

/* ==========================================================================
   Podcast — list (archive) + single episode
   ========================================================================== */

.pc-pod-list {
	display: flex;
	flex-direction: column;
	gap: 28px;
	padding: 48px 24px 64px;
	max-width: 1320px;
	margin: 0 auto;
}
.pc-pod-card {
	background: color-mix(in srgb, var(--pc-bg) 70%, transparent);
	backdrop-filter: blur(12px) saturate(140%);
	-webkit-backdrop-filter: blur(12px) saturate(140%);
	border: 1px solid var(--pc-border);
	border-radius: var(--pc-radius-lg);
	overflow: hidden;
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 0;
	transition: transform .3s cubic-bezier(.2, .9, .3, 1), box-shadow .3s ease, border-color .3s ease;
}
.pc-pod-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--pc-shadow);
	border-color: color-mix(in srgb, var(--pc-accent) 40%, var(--pc-border));
}
.pc-pod-card__media {
	display: block;
	position: relative;
	background: var(--pc-surface);
	overflow: hidden;
}
.pc-pod-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .5s ease;
}
.pc-pod-card:hover .pc-pod-card__media img { transform: scale(1.05); }
.pc-pod-card__media-fallback {
	width: 100%; height: 100%;
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, color-mix(in srgb, var(--pc-accent) 18%, var(--pc-surface-2)), var(--pc-surface));
	color: var(--pc-accent);
}
.pc-pod-card__media-fallback svg { width: 64px; height: 64px; }
.pc-pod-card__type-chip {
	position: absolute;
	top: 14px;
	inset-inline-start: 14px;
	padding: 5px 12px;
	border-radius: var(--pc-radius-pill);
	background: rgba(0, 0, 0, 0.7);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.pc-pod-card__body {
	padding: 26px 32px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
}
.pc-pod-card__head {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.pc-pod-card__ep {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	border-radius: 6px;
	background: var(--pc-accent-soft);
	color: var(--pc-accent);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	align-self: flex-start;
}
.pc-pod-card__title {
	font-size: 24px;
	font-weight: 800;
	margin: 0;
	line-height: 1.25;
}
.pc-pod-card__title a { color: var(--pc-text); }
.pc-pod-card__title a:hover { color: var(--pc-accent); text-decoration: none; }
.pc-pod-card__excerpt {
	color: var(--pc-text-muted);
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.pc-pod-card__footer {
	margin-top: auto;
	padding-top: 6px;
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}
.pc-pod-card__play {
	width: 52px; height: 52px;
	border-radius: 50%;
	background: var(--pc-accent);
	color: var(--pc-accent-ink);
	border: 0;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: transform .2s ease, box-shadow .2s ease;
	box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--pc-accent) 60%, transparent);
}
.pc-pod-card__play:disabled { opacity: 0.5; cursor: not-allowed; }
.pc-pod-card__play svg { width: 22px; height: 22px; }
.pc-pod-card__play .pc-pod-card__icon-play  { margin-inline-start: 2px; display: block; }
.pc-pod-card__play .pc-pod-card__icon-pause { display: none; margin-inline-start: 0; }
.pc-pod-card.is-playing .pc-pod-card__play .pc-pod-card__icon-play  { display: none; }
.pc-pod-card.is-playing .pc-pod-card__play .pc-pod-card__icon-pause { display: block; }
.pc-pod-card.is-playing .pc-pod-card__play { animation: pc-pod-pulse 2s ease-in-out infinite; }
.pc-pod-card__play:hover { transform: scale(1.06); text-decoration: none; }
@keyframes pc-pod-pulse {
	0%, 100% { box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--pc-accent) 60%, transparent); }
	50%      { box-shadow: 0 10px 28px -6px color-mix(in srgb, var(--pc-accent) 80%, transparent); }
}

/* Inline mini player slot inside each archive card */
.pc-pod-card__inline {
	grid-column: 1 / -1;
	border-top: 1px solid color-mix(in srgb, var(--pc-border) 60%, transparent);
	padding: 16px 32px 18px;
	background: color-mix(in srgb, var(--pc-accent) 6%, transparent);
}
.pc-pod-card__inline[hidden] { display: none; }
.pc-pod-card__inline audio { display: none !important; }
.pc-pod-card__inline-bar {
	display: flex;
	align-items: center;
	gap: 14px;
}
.pc-pod-card__inline-progress {
	flex: 1 1 auto;
	height: 6px;
	background: color-mix(in srgb, var(--pc-text) 12%, transparent);
	border-radius: var(--pc-radius-pill);
	position: relative;
	cursor: pointer;
}
.pc-pod-card__inline-fill {
	position: absolute;
	inset-inline-start: 0;
	top: 0; bottom: 0;
	width: 0%;
	background: linear-gradient(90deg, var(--pc-accent), var(--pc-accent-hover));
	border-radius: inherit;
	transition: width .1s linear;
}
.pc-pod-card__inline-time {
	font-weight: 700;
	font-size: 13px;
	color: var(--pc-text-muted);
	font-variant-numeric: tabular-nums;
	flex-shrink: 0;
}
.pc-pod-card__video-wrap {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%; /* 16:9 */
	height: 0;
	overflow: hidden;
	border-radius: var(--pc-radius);
	background: #000;
}
.pc-pod-card__video-wrap iframe {
	position: absolute;
	top: 0; left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
.pc-pod-card__duration {
	font-weight: 700;
	color: var(--pc-text);
	font-size: 15px;
	font-variant-numeric: tabular-nums;
}
.pc-pod-card__platforms {
	margin-inline-start: auto;
}
.pc-pod-platforms {
	display: inline-flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
}
/* Compact icon-only style for use inside cards */
.pc-pod-card__platforms .pc-pod-platform {
	width: 36px;
	height: 36px;
	padding: 0;
	border-radius: 10px;
	gap: 0;
}
.pc-pod-card__platforms .pc-pod-platform__label { display: none; }

.pc-pod-platform {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 14px 9px 12px;
	border-radius: var(--pc-radius-pill);
	background: var(--pc-surface);
	border: 1px solid var(--pc-border);
	color: var(--pc-text);
	font-size: 13px;
	font-weight: 700;
	transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.pc-pod-platform svg { width: 18px; height: 18px; flex: 0 0 18px; }
.pc-pod-platform__label { line-height: 1; }
.pc-pod-platform.is-active:hover {
	background: var(--pc-accent);
	color: var(--pc-accent-ink);
	border-color: var(--pc-accent);
	transform: translateY(-2px);
	box-shadow: 0 10px 22px -8px color-mix(in srgb, var(--pc-accent) 60%, transparent);
	text-decoration: none;
}
/* "Listen on PureCode" tile — always active, fills with brand cyan so it
   visually anchors the row as the primary listen-here destination. */
.pc-pod-platform--website.is-active {
	background: var(--pc-accent);
	border-color: var(--pc-accent);
	color: var(--pc-accent-ink);
	box-shadow: 0 6px 16px -6px rgba(7, 137, 255, 0.45);
}
.pc-pod-platform--website.is-active:hover {
	background: var(--pc-accent-hover);
	border-color: var(--pc-accent-hover);
	color: var(--pc-accent-ink);
	box-shadow: 0 12px 24px -8px rgba(7, 137, 255, 0.6);
	transform: translateY(-1px);
}
/* Each platform tile picks up its brand color on hover */
.pc-pod-platform--youtube.is-active:hover { background: #ff0000; border-color: #ff0000; color: #fff; box-shadow: 0 10px 22px -8px rgba(255, 0, 0, 0.5); }
.pc-pod-platform--spotify.is-active:hover { background: #1db954; border-color: #1db954; color: #fff; box-shadow: 0 10px 22px -8px rgba(29, 185, 84, 0.5); }
.pc-pod-platform--apple.is-active:hover   { background: #9933cc; border-color: #9933cc; color: #fff; box-shadow: 0 10px 22px -8px rgba(153, 51, 204, 0.5); }
.pc-pod-platform--amazon.is-active.is-active:hover { background: #25d1da; border-color: #25d1da; color: #1a1a1a; box-shadow: 0 10px 22px -8px rgba(37, 209, 218, 0.5); }
/* Active state — when a URL is set, give it the brand tint by default too */
.pc-pod-platform--youtube.is-active { color: #ff0000; }
.pc-pod-platform--spotify.is-active { color: #1db954; }
.pc-pod-platform--apple.is-active   { color: #9933cc; }
.pc-pod-platform--amazon.is-active  { color: #25d1da; }
[data-theme="dark"] .pc-pod-platform.is-active { background: color-mix(in srgb, var(--pc-bg) 60%, transparent); }
/* Keep the "Listen on PureCode" tile filled with brand cyan in dark mode too —
   the generic rule above would otherwise wash it out. */
[data-theme="dark"] .pc-pod-platform--website.is-active {
	background: var(--pc-accent);
	color: var(--pc-accent-ink);
}
/* Disabled tile = grey, non-clickable, but still visible */
.pc-pod-platform.is-disabled {
	opacity: 0.45;
	cursor: not-allowed;
	color: var(--pc-text-muted);
}
.pc-pod-platform.is-disabled:hover { transform: none; box-shadow: none; }

/* ----- Custom audio player ----- */
.pc-audio {
	display: grid;
	grid-template-columns: 96px 1fr;
	gap: 18px;
	align-items: center;
	padding: 18px 22px;
	background: linear-gradient(135deg, color-mix(in srgb, var(--pc-accent) 14%, var(--pc-bg)), var(--pc-surface));
	border-radius: var(--pc-radius);
	position: relative;
}
.pc-audio audio { display: none !important; }
.pc-audio__cover {
	width: 96px;
	height: 96px;
	border-radius: 14px;
	overflow: hidden;
	background: var(--pc-surface-2);
	box-shadow: var(--pc-shadow-sm);
	flex-shrink: 0;
}
.pc-audio__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-audio__body {
	display: grid;
	grid-template-columns: 64px 1fr 44px;
	gap: 14px;
	align-items: center;
	min-width: 0;
}
.pc-audio__play {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--pc-accent);
	color: var(--pc-accent-ink);
	border: 0;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: transform .2s ease, box-shadow .2s ease;
	box-shadow: 0 12px 24px -8px color-mix(in srgb, var(--pc-accent) 60%, transparent);
	flex-shrink: 0;
}
.pc-audio__play:hover { transform: scale(1.05); }
.pc-audio__play svg { width: 26px; height: 26px; }
.pc-audio__play .pc-audio__icon-play { margin-inline-start: 3px; }
.pc-audio__play .pc-audio__icon-pause { display: none; }
.pc-audio.is-playing .pc-audio__play .pc-audio__icon-play  { display: none; }
.pc-audio.is-playing .pc-audio__play .pc-audio__icon-pause { display: block; }
.pc-audio__track { min-width: 0; }
.pc-audio__title-row {
	display: flex;
	gap: 10px;
	align-items: baseline;
	margin-bottom: 8px;
	min-width: 0;
}
.pc-audio__eyebrow {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--pc-accent);
	flex-shrink: 0;
}
.pc-audio__title {
	font-size: 15px;
	font-weight: 700;
	color: var(--pc-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
}
.pc-audio__progress {
	position: relative;
	height: 6px;
	background: color-mix(in srgb, var(--pc-text) 12%, transparent);
	border-radius: var(--pc-radius-pill);
	cursor: pointer;
	margin-bottom: 8px;
	overflow: visible;
}
.pc-audio__progress:focus { outline: 2px solid var(--pc-accent); outline-offset: 4px; }
.pc-audio__progress-fill {
	position: absolute;
	inset-inline-start: 0;
	top: 0;
	bottom: 0;
	width: 0%;
	background: linear-gradient(90deg, var(--pc-accent), var(--pc-accent-hover));
	border-radius: inherit;
	transition: width .1s linear;
}
.pc-audio__progress-thumb {
	display: none;
}
.pc-audio__times {
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	font-weight: 600;
	color: var(--pc-text-muted);
	font-variant-numeric: tabular-nums;
}
.pc-audio__mute {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: transparent;
	border: 1px solid transparent;
	color: var(--pc-text);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background .2s ease, border-color .2s ease;
}
.pc-audio__mute:hover {
	background: var(--pc-surface);
	border-color: var(--pc-border);
}
.pc-audio__mute svg { width: 22px; height: 22px; }
.pc-audio__mute .pc-audio__icon-mute { display: none; }
.pc-audio.is-muted .pc-audio__mute .pc-audio__icon-vol  { display: none; }
.pc-audio.is-muted .pc-audio__mute .pc-audio__icon-mute { display: block; }

@media (max-width: 640px) {
	.pc-audio { grid-template-columns: 1fr; gap: 14px; padding: 16px; }
	.pc-audio__cover { width: 80px; height: 80px; }
	.pc-audio__body { grid-template-columns: 56px 1fr 40px; gap: 10px; }
	.pc-audio__play { width: 56px; height: 56px; }
	.pc-audio__play svg { width: 22px; height: 22px; }
}

.pc-pod-player--empty {
	padding: 32px;
	text-align: center;
	color: var(--pc-text-muted);
	background: var(--pc-surface);
	border-radius: var(--pc-radius);
}

/* Single episode page */
.pc-pod-single {
	max-width: 980px;
	margin: 0 auto;
	padding: 48px 24px 32px;
}
.pc-pod-single__header { margin-bottom: 32px; text-align: center; }
.pc-pod-single__ep {
	display: inline-flex;
	align-items: center;
	padding: 6px 16px;
	border-radius: 6px;
	background: var(--pc-accent-soft);
	color: var(--pc-accent);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 16px;
}
.pc-pod-single__title {
	font-size: clamp(28px, 4vw, 44px);
	font-weight: 800;
	line-height: 1.15;
	margin: 0 0 16px;
}
.pc-pod-single__meta {
	display: inline-flex;
	gap: 8px;
	color: var(--pc-text-muted);
	font-size: 14px;
	align-items: center;
}
.pc-pod-single__player {
	margin: 0 auto 32px;
}
.pc-pod-player { display: block; width: 100%; }
.pc-pod-player--video {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	height: 0;
	overflow: hidden;
	border-radius: var(--pc-radius-lg);
	box-shadow: var(--pc-shadow);
}
.pc-pod-player--video iframe,
.pc-pod-player--video video {
	position: absolute;
	top: 0; left: 0;
	width: 100%; height: 100%;
	border: 0;
	display: block;
}
.pc-pod-single__platforms-row {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
	margin: 0 auto 40px;
	padding: 20px 24px;
	background: var(--pc-surface);
	border: 1px solid var(--pc-border);
	border-radius: var(--pc-radius);
}
.pc-pod-single__platforms-label {
	font-weight: 800;
	color: var(--pc-text);
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	flex-shrink: 0;
}
.pc-pod-single__platforms-row .pc-pod-platforms {
	gap: 8px;
}
.pc-pod-single__notes {
	margin-top: 12px;
	padding-top: 32px;
	border-top: 1px solid var(--pc-border);
}
.pc-pod-single__notes-title {
	font-size: 22px;
	font-weight: 800;
	margin: 0 0 18px;
	color: var(--pc-text);
}

.pc-pod-single__share {
	margin-top: 32px;
	padding-top: 28px;
	border-top: 1px solid var(--pc-border);
	display: flex;
	justify-content: center;
}
.pc-pod-single__share .pc-share { justify-content: center; }

.pc-audio--standalone { margin: 28px 0; }

/* Responsive — collapse podcast card to single column on small screens */
@media (max-width: 900px) {
	.pc-pod-card { grid-template-columns: 1fr; }
	.pc-pod-card__media { aspect-ratio: 16/9; }
	.pc-pod-card__body { padding: 22px 22px; }
	.pc-pod-card__title { font-size: 20px; }
}
@media (max-width: 540px) {
	.pc-pod-list { padding: 28px 14px 48px; gap: 20px; }
	.pc-pod-card__footer { gap: 10px; }
	.pc-pod-card__platforms { margin-inline-start: 0; width: 100%; }
}

.pc-footer::before {
	content: '';
	position: absolute;
	top: -2px; left: 0; right: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--pc-accent), transparent);
	opacity: .6;
}
.pc-footer__inner {
	padding: 64px 32px 0;
	max-width: 1180px;
	margin: 0 auto;
}

.pc-footer__grid {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 48px;
	padding-bottom: 40px;
	align-items: start;
}
@media (max-width: 900px) {
	.pc-footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 540px) {
	.pc-footer__grid { grid-template-columns: 1fr; gap: 28px; }
	.pc-footer__inner { padding: 48px 20px 0; }
}
.pc-footer__col { min-width: 0; }
.pc-footer__col--links { padding-block-start: 4px; }
.pc-footer__title {
	font-size: 17px;
	font-weight: 800;
	margin: 0 0 18px;
	color: var(--pc-text);
	letter-spacing: -0.005em;
}
.pc-footer__title::after {
	content: '';
	display: block;
	width: 32px;
	height: 2px;
	background: var(--pc-accent);
	margin-top: 8px;
	border-radius: 2px;
}
.pc-footer__brand-title { font-size: 22px; margin: 0 0 12px; font-weight: 800; }
.pc-footer__brand-desc {
	color: var(--pc-text-muted);
	font-size: 15px;
	line-height: 1.7;
	margin: 0;
}
.pc-footer__logo {
	display: inline-block;
	margin-bottom: 16px;
	transition: opacity .2s ease;
}
.pc-footer__logo:hover { opacity: .85; }
.pc-footer__logo img { max-height: 88px; width: auto; display: block; }

.pc-footer__list, .pc-footer__contact, .pc-footer__social {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
/* Footer link pills (Home / PureCode etc.) */
.pc-footer__col--links .pc-footer__list {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 8px;
}
.pc-footer__col--links .pc-footer__list a {
	display: inline-flex;
	align-items: center;
	padding: 9px 20px;
	border-radius: var(--pc-radius-pill);
	background: var(--pc-bg);
	border: 1px solid var(--pc-border);
	color: var(--pc-text);
	font-size: 14px;
	font-weight: 600;
	transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.pc-footer__col--links .pc-footer__list a:hover {
	background: var(--pc-accent);
	border-color: var(--pc-accent);
	color: var(--pc-accent-ink);
	transform: translateY(-2px);
	box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--pc-accent) 60%, transparent);
	text-decoration: none;
}
.pc-footer__list a {
	color: var(--pc-text-muted);
	font-size: 14px;
	font-weight: 500;
}
.pc-footer__list a:hover { color: var(--pc-accent); text-decoration: none; }

.pc-footer__contact li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: var(--pc-text-muted);
	font-size: 14px;
}
.pc-footer__contact svg { width: 16px; height: 16px; margin-top: 3px; flex: 0 0 16px; color: var(--pc-accent); fill: currentColor; }
.pc-footer__contact a { color: var(--pc-text-muted); }
.pc-footer__contact a:hover { color: var(--pc-accent); text-decoration: none; }

.pc-footer__social {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 10px;
}
.pc-social {
	width: 44px; height: 44px;
	border-radius: 12px;
	background: var(--pc-bg);
	border: 1px solid var(--pc-border);
	color: var(--pc-text);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.pc-social svg { width: 18px; height: 18px; fill: currentColor; }
.pc-social:hover {
	background: var(--pc-accent);
	color: var(--pc-accent-ink);
	border-color: var(--pc-accent);
	transform: translateY(-2px);
	box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--pc-accent) 50%, transparent);
	text-decoration: none;
}

.pc-footer__bottom {
	border-top: 1px solid var(--pc-border);
	padding: 22px 0;
	text-align: center;
}
.pc-footer__text {
	color: var(--pc-text-muted);
	font-size: 14px;
	margin: 0;
	font-weight: 500;
}

/* Newsletter (footer) */
.pc-newsletter {
	max-width: 640px;
	margin: 0 auto 40px;
	padding: 28px 24px;
	background: var(--pc-bg);
	border: 1px solid var(--pc-border);
	border-radius: var(--pc-radius-lg);
	text-align: center;
}
.pc-newsletter__title { font-size: 22px; margin: 0 0 8px; }
.pc-newsletter__sub { color: var(--pc-text-muted); margin: 0 0 16px; font-size: 14px; }
.pc-newsletter__form { display: flex; gap: 8px; }
.pc-newsletter__form input {
	flex: 1;
	border: 1px solid var(--pc-border);
	background: var(--pc-bg);
	color: var(--pc-text);
	padding: 12px 14px;
	border-radius: 10px;
	font: inherit;
}
.pc-newsletter__form button {
	background: var(--pc-accent);
	color: var(--pc-accent-ink);
	border: 0;
	border-radius: 10px;
	padding: 0 22px;
	font-weight: 700;
	cursor: pointer;
}
.pc-newsletter__form button:hover { background: var(--pc-accent-hover); }
.pc-newsletter__form button:disabled { opacity: .6; cursor: progress; }

.pc-newsletter__msg {
	margin: 12px 0 0;
	padding: 10px 14px;
	border-radius: 10px;
	font-size: 14px;
	line-height: 1.4;
}
.pc-newsletter.is-success .pc-newsletter__msg {
	background: color-mix(in srgb, #10b981 12%, transparent);
	color: #047857;
	border: 1px solid color-mix(in srgb, #10b981 30%, transparent);
}
.pc-newsletter.is-error .pc-newsletter__msg {
	background: color-mix(in srgb, #ef4444 10%, transparent);
	color: #b91c1c;
	border: 1px solid color-mix(in srgb, #ef4444 30%, transparent);
}
[data-theme="dark"] .pc-newsletter.is-success .pc-newsletter__msg { color: #6ee7b7; }
[data-theme="dark"] .pc-newsletter.is-error   .pc-newsletter__msg { color: #fca5a5; }

/* ==========================================================================
   Responsive
   ========================================================================== */
/* Entrance animation for hero + cards */
@keyframes pc-fade-up {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: translateY(0); }
}
.pc-featured__body, .pc-featured__media { animation: pc-fade-up .6s cubic-bezier(.2, .9, .3, 1) both; }
.pc-featured__media { animation-delay: .08s; }
.pc-card { animation: pc-fade-up .55s cubic-bezier(.2, .9, .3, 1) both; }
.pc-grid .pc-card:nth-child(2) { animation-delay: .05s; }
.pc-grid .pc-card:nth-child(3) { animation-delay: .10s; }
.pc-grid .pc-card:nth-child(4) { animation-delay: .15s; }
.pc-grid .pc-card:nth-child(5) { animation-delay: .20s; }
.pc-grid .pc-card:nth-child(6) { animation-delay: .25s; }

@media (max-width: 1180px) {
	.pc-card__media { flex-basis: 320px; }
	.pc-card { min-height: 200px; }
	.pc-card__body { padding: 26px 32px; }
	.pc-card__title { font-size: 22px; }
}

@media (max-width: 900px) {
	.pc-header__top { padding: 12px 16px; gap: 18px; flex-wrap: wrap; }
	.pc-nav__list, .pc-nav .menu { gap: 4px; }
	.pc-nav__list a, .pc-nav .menu a { font-size: 15px; padding: 8px 14px; }
	.pc-brand-logo img { height: 72px; }
	.custom-logo { max-height: 72px; }
	.pc-search-toggle, .pc-theme-toggle { width: 44px; height: 44px; }
	.pc-langs a { padding: 8px 14px; font-size: 14px; }

	.pc-featured { padding: 32px 16px 8px; }
	.pc-featured__inner { gap: 24px; }
	.pc-featured__title { font-size: clamp(28px, 6vw, 44px); }
	.pc-tabs__inner { gap: 12px; }

	/* Horizontal card rows stay horizontal until small mobile */
	.pc-card { min-height: 150px; }
	.pc-card__media { flex-basis: 200px; }
	.pc-card__body { padding: 18px 20px; gap: 8px; }
	.pc-card__title { font-size: 19px; }
	.pc-card__excerpt { font-size: 14px; }
}
@media (max-width: 600px) {
	/* On phones, stack image on top, content below */
	.pc-card { flex-direction: column; min-height: 0; }
	.pc-card__media { flex: 0 0 auto; aspect-ratio: 16/9; min-height: 0; }
}
.pc-mobile-toggle { display: none; }

@media (max-width: 640px) {
	.pc-header__inner { padding: 8px 12px; gap: 8px; }
	.pc-grid { padding: 24px 12px; gap: 20px; grid-template-columns: 1fr; }
	.pc-article { padding: 28px 14px; }
	.pc-article__hero { margin: 24px -14px; border-radius: 0; }
	.pc-postnav { padding: 0 14px; }
	.pc-featured { padding: 16px 12px 0; }
	.pc-featured__title { font-size: 28px; }
	.pc-featured__excerpt { font-size: 15px; }
	.pc-tabs { padding: 24px 12px 4px; }
	.pc-tab { margin-inline-end: 12px; font-size: 14px; }
	.pc-card__title { font-size: 20px; }
	.pc-footer__inner { padding: 40px 12px 0; }
	.pc-footer__grid { gap: 28px; padding-bottom: 28px; }
}

/* Focus visibility */
:focus-visible {
	outline: 2px solid var(--pc-accent);
	outline-offset: 2px;
	border-radius: 4px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation: none !important; }
}

/* Print */
@media print {
	.pc-header, .pc-footer, .pc-share, .pc-postnav, .pc-pagination, .pc-tabs { display: none; }
	body { background: #fff; color: #000; }
}

/* ==========================================================================
   PureCode OVERRIDES
   Everything below this block is specific to the PureCode magazine theme
   and supersedes any earlier rules with the same selectors.
   ========================================================================== */

/* --- Very small search button (per PureCode spec) --- */
.pc-search-toggle {
	width: 36px !important;
	height: 36px !important;
}
.pc-search-toggle svg {
	width: 16px !important;
	height: 16px !important;
}

/* --- PureCode wordmark logo — wide, transparent-background mark.
       Sized by height; width follows the aspect ratio. No box-shadow or
       radius (it would frame the transparent PNG's bounding box). */
.pc-brand-logo img,
.custom-logo {
	height: 60px !important;
	max-height: 60px !important;
	width: auto !important;
}
@media (max-width: 640px) {
	.pc-brand-logo img,
	.custom-logo {
		height: 46px !important;
		max-height: 46px !important;
	}
}
/* In dark mode the logo's navy wordmark would lose contrast against the dark
   header, so sit it on a clean white chip (keeps the brand colours intact).
   Admin can instead upload a light logo variant in Customize → Site Identity. */
[data-theme='dark'] .pc-brand-logo img,
[data-theme='dark'] .custom-logo {
	background: #ffffff;
	padding: 6px 12px;
	border-radius: 10px;
	box-sizing: content-box;
}

/* --- Edge-to-edge content (no large left/right gutters, per spec) --- */
.pc-main {
	padding-inline: clamp(16px, 4vw, 56px);
}
.pc-mag,
.pc-pagination,
.pc-empty {
	max-width: 1500px;
	margin-inline: auto;
}

/* --- Magazine layout wrapper --- */
.pc-mag {
	display: flex;
	flex-direction: column;
	gap: 56px;
	padding-block: 40px 24px;
}

/* === Tier 1: Hero card === */
.pc-mag__hero {
	display: block;
}
.pc-mag-card--hero {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: clamp(24px, 4vw, 56px);
	align-items: center;
	background: var(--pc-surface);
	border: 1px solid var(--pc-border);
	border-radius: var(--pc-radius-lg);
	overflow: hidden;
	box-shadow: var(--pc-shadow);
	position: relative;
}
.pc-mag-card--hero .pc-mag-card__media {
	display: block;
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--pc-surface-2);
}
.pc-mag-card--hero .pc-mag-card__media img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}
.pc-mag-card--hero:hover .pc-mag-card__media img { transform: scale(1.04); }
.pc-mag-card--hero .pc-mag-card__body {
	padding: clamp(20px, 3vw, 40px);
	padding-inline-end: clamp(20px, 4vw, 56px);
}
.pc-mag-card--hero .pc-mag-card__title {
	font-size: clamp(28px, 3.6vw, 48px);
	line-height: 1.15;
	margin: 12px 0 16px;
	font-weight: 800;
	letter-spacing: -0.01em;
}
.pc-mag-card--hero .pc-mag-card__title a { color: var(--pc-text); text-decoration: none; }
.pc-mag-card--hero .pc-mag-card__title a:hover { color: var(--pc-accent); }
.pc-mag-card--hero .pc-mag-card__excerpt {
	font-size: 17px;
	line-height: 1.7;
	color: var(--pc-text-muted);
	margin: 0 0 22px;
}

/* === Tier 2: Mid strip (2-column) === */
.pc-mag__mid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(20px, 2.5vw, 32px);
}
.pc-mag-card--mid {
	background: var(--pc-surface);
	border: 1px solid var(--pc-border);
	border-radius: var(--pc-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform .25s ease, box-shadow .25s ease;
}
.pc-mag-card--mid:hover {
	transform: translateY(-3px);
	box-shadow: var(--pc-shadow-sm);
}
.pc-mag-card--mid .pc-mag-card__media {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--pc-surface-2);
	position: relative;
}
.pc-mag-card--mid .pc-mag-card__media img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}
.pc-mag-card--mid:hover .pc-mag-card__media img { transform: scale(1.04); }
.pc-mag-card--mid .pc-mag-card__body { padding: 22px 24px 24px; }
.pc-mag-card--mid .pc-mag-card__title {
	font-size: 22px;
	line-height: 1.3;
	margin: 8px 0 10px;
	font-weight: 700;
}
.pc-mag-card--mid .pc-mag-card__title a { color: var(--pc-text); text-decoration: none; }
.pc-mag-card--mid .pc-mag-card__title a:hover { color: var(--pc-accent); }
.pc-mag-card--mid .pc-mag-card__excerpt {
	font-size: 15px;
	color: var(--pc-text-muted);
	line-height: 1.6;
	margin: 0 0 14px;
}

/* === Tier 3: Text-forward list === */
.pc-mag__list {
	display: flex;
	flex-direction: column;
}
.pc-mag-card--list {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 16px 24px;
	align-items: start;
	padding: 22px 0;
	border-block-end: 1px solid var(--pc-border);
}
.pc-mag-card--list:first-child { border-block-start: 1px solid var(--pc-border); }
.pc-mag-card--list .pc-mag-card__body {
	grid-column: 1 / 2;
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}
.pc-mag-card--list .pc-mag-card__title {
	font-size: clamp(20px, 2.2vw, 26px);
	line-height: 1.3;
	margin: 0;
	font-weight: 700;
}
.pc-mag-card--list .pc-mag-card__title a { color: var(--pc-text); text-decoration: none; }
.pc-mag-card--list .pc-mag-card__title a:hover { color: var(--pc-accent); }
.pc-mag-card--list .pc-mag-card__excerpt {
	font-size: 15px;
	color: var(--pc-text-muted);
	line-height: 1.65;
	margin: 0;
}
.pc-mag-card--list .pc-mag-card__more {
	grid-column: 2 / 3;
	white-space: nowrap;
	align-self: center;
}

/* === Shared card pieces === */
.pc-mag-card__badge {
	position: absolute;
	inset-block-start: 14px;
	inset-inline-start: 14px;
	background: var(--pc-accent-2); /* PureCode navy badge */
	color: var(--pc-accent-2-ink);
	font-size: 12px;
	font-weight: 600;
	padding: 6px 12px;
	border-radius: var(--pc-radius-pill);
	text-decoration: none;
	letter-spacing: .02em;
}
.pc-mag-card__badge--inline {
	position: static;
	display: inline-block;
	margin-inline-end: 8px;
	font-size: 11px;
	padding: 4px 10px;
	background: var(--pc-accent-soft);
	color: var(--pc-accent);
}
.pc-mag-card__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 13px;
	color: var(--pc-text-muted);
	margin: 0 0 4px;
}
.pc-mag-card__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--pc-accent);
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	transition: gap .2s ease, color .2s ease;
}
.pc-mag-card__more svg { width: 14px; height: 14px; }
.pc-mag-card__more:hover { gap: 10px; color: var(--pc-accent-hover); }
[dir="rtl"] .pc-mag-card__more svg { transform: scaleX(-1); }
.pc-mag-card__media-fallback {
	width: 100%; height: 100%;
	background: var(--pc-surface-2);
	color: var(--pc-accent);
	display: grid;
	place-items: center;
}
.pc-mag-card__media-fallback svg { width: 100%; height: 100%; }

/* === Magazine layout — responsive collapse === */
@media (max-width: 960px) {
	.pc-mag-card--hero {
		grid-template-columns: 1fr;
	}
	.pc-mag-card--hero .pc-mag-card__body {
		padding: 20px 24px 28px;
	}
	.pc-mag__mid {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 640px) {
	.pc-mag { gap: 36px; padding-block: 24px 16px; }
	.pc-mag-card--hero .pc-mag-card__title { font-size: 26px; }
	.pc-mag-card--list {
		grid-template-columns: 1fr;
	}
	.pc-mag-card--list .pc-mag-card__more {
		grid-column: 1 / 2;
		justify-self: start;
	}
}

/* === Subtle fade-in for magazine cards === */
@keyframes pc-mag-fade {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: none; }
}
.pc-mag-card { animation: pc-mag-fade .5s cubic-bezier(.2, .9, .3, 1) both; }
.pc-mag__mid .pc-mag-card:nth-child(2) { animation-delay: .08s; }
.pc-mag__list .pc-mag-card:nth-child(2) { animation-delay: .04s; }
.pc-mag__list .pc-mag-card:nth-child(3) { animation-delay: .08s; }
.pc-mag__list .pc-mag-card:nth-child(4) { animation-delay: .12s; }

/* ==========================================================================
   purecode.sa — distinct visual identity (appended last so it wins the
   cascade over the inherited magazine theme). Clean multi-column card grid,
   Poppins type, flat surfaces, sharper corners, accent-underline header.
   ========================================================================== */
:root {
	--pc-radius:        8px;
	--pc-radius-lg:     12px;
	--pc-surface:       #f4f7fb;
	--pc-surface-2:     #e9eff6;
	--pc-shadow:        0 18px 40px -24px rgba(10, 25, 41, 0.30), 0 4px 10px -6px rgba(10, 25, 41, 0.10);
	--pc-shadow-sm:     0 2px 8px -2px rgba(10, 25, 41, 0.10);
}
[data-theme="dark"] {
	--pc-accent:        #38bdf8;
	--pc-accent-hover:  #67ccff;
	--pc-accent-soft:   rgba(56, 189, 248, 0.14);
}

/* Flat, clean background — drop the inherited radial glows + grid texture */
body { background: var(--pc-bg); background-image: none; }
body::before { display: none !important; }

/* Header — solid bar, crisp accent underline + animated nav link underlines */
.pc-header {
	background: color-mix(in srgb, var(--pc-bg) 92%, transparent);
	border-bottom: 2px solid var(--pc-accent);
	box-shadow: var(--pc-shadow-sm);
}
.pc-nav__list a::after, .pc-nav .menu a::after {
	content: '';
	position: absolute;
	inset-inline: 12px;
	bottom: 6px;
	height: 2px;
	background: var(--pc-accent);
	transform: scaleX(0);
	transition: transform .2s ease;
}
.pc-nav__list a:hover::after,
.pc-nav__list .current-menu-item > a::after,
.pc-nav .menu .current-menu-item > a::after { transform: scaleX(1); }

/* Homepage intro heading with accent underline */
.pc-home-intro { max-width: 1320px; margin: 0 auto; padding: 48px 24px 0; }
.pc-home-intro__title {
	font-size: clamp(28px, 4vw, 40px);
	margin: 0 0 6px;
	position: relative;
	padding-bottom: 14px;
}
.pc-home-intro__title::after {
	content: '';
	position: absolute;
	inset-inline-start: 0;
	bottom: 0;
	width: 64px;
	height: 4px;
	border-radius: 4px;
	background: var(--pc-accent);
}
.pc-home-intro__sub { color: var(--pc-text-muted); margin: 0; font-size: 16px; }

/* THE GRID — real multi-column grid of vertical cards (image on top) */
.pc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
	gap: 28px;
	padding: 32px 24px 64px;
	max-width: 1320px;
	margin: 0 auto;
}
.pc-card {
	flex-direction: column;
	align-items: stretch;
	min-height: 0;
	background: var(--pc-bg);
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	border: 1px solid var(--pc-border);
	border-radius: var(--pc-radius-lg);
	box-shadow: var(--pc-shadow-sm);
	overflow: hidden;
}
.pc-card::before {
	content: '';
	position: absolute;
	top: 0;
	inset-inline: 0;
	height: 3px;
	background: var(--pc-accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .3s ease;
	z-index: 3;
}
.is-rtl .pc-card::before, html[data-pc-lang="ar"] .pc-card::before { transform-origin: right; }
.pc-card:hover::before { transform: scaleX(1); }
.pc-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--pc-shadow);
	border-color: color-mix(in srgb, var(--pc-accent) 35%, var(--pc-border));
}
.pc-card:hover::after { box-shadow: none; }
.pc-card__media { flex: none; width: 100%; aspect-ratio: 16 / 10; min-height: 0; }
.pc-card__body { padding: 20px 22px 22px; gap: 10px; }
.pc-card__title { font-size: 20px; line-height: 1.3; }
.pc-card__excerpt { font-size: 15px; }
.pc-card__footer { justify-content: flex-start; padding-top: 6px; }
.pc-card__badge {
	border-radius: 6px;
	text-transform: none;
	letter-spacing: 0.01em;
	font-weight: 700;
	top: 12px;
	inset-inline-start: 12px;
}
.pc-card__media-fallback span { font-size: 64px; font-weight: 800; color: var(--pc-accent); opacity: .35; }

/* Single column on small screens (grid auto-fill already collapses; ensure padding) */
@media (max-width: 640px) {
	.pc-grid { padding: 24px 16px 48px; gap: 20px; }
	.pc-home-intro { padding: 32px 16px 0; }
}