/* ==========================================================================
   ANDP FilmStyles — Blog & Lab Notes Styles (Chat 6)
   Container classes are scoped to blog/single-post pages.
   Component classes (.andp-blog-*, .andp-post-*) are already unique prefixes.
   ========================================================================== */

/* ── Containers (scoped to blog pages) ── */
body.blog .andp-container--narrow,
body.single-post .andp-container--narrow {
	max-width: 760px;
	margin: 0 auto;
	padding: 0 24px;
}
body.blog .andp-container--wide,
body.single-post .andp-container--wide {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ── Dark background ── */
body.blog,
body.single-post {
	background-color: var(--andp-bg) !important;
}

/* ── Archive header ── */
.andp-blog-archive__header {
	border-bottom: 1px solid var(--andp-border-dark);
	padding: 64px 0 48px;
	background-color: var(--andp-bg);
}
.andp-blog-archive__title {
	font-size: clamp(2rem, 5vw, 2.75rem);
	font-weight: 300;
	color: var(--andp-white);
	margin: 0 0 12px;
	letter-spacing: -0.01em;
}
.andp-blog-archive__subtitle {
	font-size: 13px;
	color: var(--andp-text-dim);
	max-width: 440px;
	line-height: 1.65;
	margin: 0;
}
.andp-blog-archive__body { padding: 40px 0 80px; }

/* ── Category filter pills ── */
.andp-blog-archive__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 40px;
}
.andp-cat-pill {
	font-family: var(--andp-font-mono);
	font-size: 10px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.3em;
	padding: 8px 16px;
	border: 1px solid var(--andp-border-light);
	color: var(--andp-text-dark);
	text-decoration: none;
	transition: color var(--andp-transition), border-color var(--andp-transition);
	white-space: nowrap;
}
.andp-cat-pill:hover {
	color: var(--andp-gold);
	border-color: rgba(201,146,42,0.4);
}
.andp-cat-pill--active {
	background-color: var(--andp-gold);
	border-color: var(--andp-gold);
	color: #000 !important;
}

/* ── Featured post ── */
.andp-blog-featured {
	display: grid;
	grid-template-columns: 1fr 1fr;
	border: 1px solid var(--andp-border-dark);
	margin-bottom: 40px;
	overflow: hidden;
	transition: border-color 300ms ease;
}
.andp-blog-featured:hover { border-color: rgba(201,146,42,0.3); }
.andp-blog-featured__link {
	display: block;
	overflow: hidden;
	aspect-ratio: 3 / 2;
}
.andp-blog-featured__img-wrap {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background-color: var(--andp-surface-alt);
}
.andp-blog-featured__img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 700ms ease;
}
.andp-blog-featured:hover .andp-blog-featured__img { transform: scale(1.04); }
.andp-blog-featured__img--placeholder { background-color: var(--andp-surface-alt); }
.andp-badge--featured {
	position: absolute;
	top: 14px;
	left: 14px;
	background-color: var(--andp-gold);
	color: #000;
	font-family: var(--andp-font-mono);
	font-size: 9px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.35em;
	padding: 4px 10px;
}
.andp-blog-featured__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 40px 48px;
	background-color: var(--andp-surface);
}
.andp-blog-featured__meta { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.andp-blog-featured__cat {
	font-family: var(--andp-font-mono);
	font-size: 9px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.25em;
	color: var(--andp-gold);
	text-decoration: none;
}
.andp-blog-featured__cat:hover { color: var(--andp-white); }
.andp-blog-featured__sep,
.andp-blog-featured__date,
.andp-blog-featured__read-time { font-family: var(--andp-font-mono); font-size: 9px; color: var(--andp-text-darker); }
.andp-blog-featured__title { font-size: clamp(1.25rem,2.5vw,1.6rem); font-weight: 400; color: var(--andp-white); margin: 0 0 16px; line-height: 1.3; }
.andp-blog-featured__title a { color: inherit; text-decoration: none; transition: color var(--andp-transition); }
.andp-blog-featured:hover .andp-blog-featured__title a { color: var(--andp-gold); }
.andp-blog-featured__excerpt { font-size: 13px; color: var(--andp-text-dim); line-height: 1.7; margin: 0 0 24px; }
.andp-blog-featured__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--andp-font-mono);
	font-size: 10px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.25em;
	color: var(--andp-gold);
	text-decoration: none;
	transition: gap var(--andp-transition);
}
.andp-blog-featured:hover .andp-blog-featured__cta { gap: 12px; }

/* ── Article grid ── */
.andp-blog-archive__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-bottom: 48px;
}

/* ── Blog card ── */
.andp-blog-card {
	background-color: var(--andp-surface);
	border: 1px solid var(--andp-border-dark);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: border-color 300ms ease;
}
.andp-blog-card:hover { border-color: rgba(201,146,42,0.3); }
.andp-blog-card__img-link { display: block; overflow: hidden; }
.andp-blog-card__img-wrap {
	position: relative;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background-color: var(--andp-surface-alt);
}
.andp-blog-card__img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	opacity: 0.85;
	transition: transform 500ms ease, opacity 300ms ease;
}
.andp-blog-card:hover .andp-blog-card__img { transform: scale(1.04); opacity: 1; }
.andp-blog-card__img--placeholder { background-color: var(--andp-surface-alt); width: 100%; height: 100%; }
.andp-blog-card__img-wrap::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, var(--andp-surface) 0%, transparent 55%);
	opacity: 0.6;
	pointer-events: none;
}
.andp-blog-card__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.andp-blog-card__meta { display: flex; align-items: center; gap: 8px; }
.andp-blog-card__cat { font-family: var(--andp-font-mono); font-size: 9px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.2em; color: var(--andp-gold); text-decoration: none; }
.andp-blog-card__cat:hover { color: var(--andp-white); }
.andp-blog-card__title { font-size: 14px; font-weight: 400; color: var(--andp-white); margin: 0; line-height: 1.4; flex: 1; }
.andp-blog-card__title a { color: inherit; text-decoration: none; transition: color var(--andp-transition); }
.andp-blog-card:hover .andp-blog-card__title a { color: var(--andp-gold); }
.andp-blog-card__excerpt { font-size: 12px; color: var(--andp-text-muted); line-height: 1.65; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.andp-blog-card__footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 4px; }
.andp-blog-card__footer-left { display: flex; align-items: center; gap: 6px; }
.andp-blog-card__footer-left svg { color: var(--andp-text-darker); flex-shrink: 0; }
.andp-blog-card__read-time,
.andp-blog-card__date,
.andp-blog-card__sep { font-family: var(--andp-font-mono); font-size: 9px; color: var(--andp-text-darker); }
.andp-blog-card__read-link { display: inline-flex; align-items: center; gap: 5px; font-family: var(--andp-font-mono); font-size: 9px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.15em; color: var(--andp-gold); opacity: 0; transition: opacity var(--andp-transition); }
.andp-blog-card:hover .andp-blog-card__read-link { opacity: 1; }

/* ── Load more ── */
.andp-blog-archive__load-more-wrap { display: flex; justify-content: center; padding-top: 8px; }

/* ── Empty state ── */
.andp-blog-archive__empty { text-align: center; padding: 80px 24px; }
.andp-blog-archive__empty-title { font-size: 18px; font-weight: 300; color: var(--andp-white); margin: 0 0 8px; }
.andp-blog-archive__empty-desc { font-size: 13px; color: var(--andp-text-muted); margin: 0; }

/* ── Single post ── */
.andp-post__header { padding: 56px 0 48px; background-color: var(--andp-bg); border-bottom: 1px solid var(--andp-border-dark); }
.andp-post__breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.andp-post__breadcrumb-link { font-family: var(--andp-font-mono); font-size: 9px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.25em; color: var(--andp-text-dark); text-decoration: none; transition: color var(--andp-transition); }
.andp-post__breadcrumb-link:hover { color: var(--andp-gold); }
.andp-post__breadcrumb-sep { font-family: var(--andp-font-mono); font-size: 9px; color: var(--andp-text-darker); }
.andp-post__breadcrumb-current { font-family: var(--andp-font-mono); font-size: 9px; color: var(--andp-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.andp-post__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.andp-post__cat { font-family: var(--andp-font-mono); font-size: 9px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.25em; color: var(--andp-gold); text-decoration: none; }
.andp-post__cat:hover { color: var(--andp-white); }
.andp-post__meta-sep,
.andp-post__date,
.andp-post__read-time { font-family: var(--andp-font-mono); font-size: 9px; color: var(--andp-text-darker); }
.andp-post__title { font-size: clamp(1.75rem,4vw,2.5rem); font-weight: 300; color: var(--andp-white); margin: 0 0 20px; line-height: 1.2; letter-spacing: -0.02em; }
.andp-post__deck { font-size: 15px; color: var(--andp-text-mid); line-height: 1.7; margin: 0; font-weight: 300; }
.andp-post__hero { padding: 40px 0 0; background-color: var(--andp-bg); }
.andp-post__hero-img { display: block; width: 100%; height: auto; }
.andp-post__hero-credit { margin: 8px 0 0; padding: 0; }
.andp-post__body { padding: 48px 0 80px; background-color: var(--andp-bg); }
.andp-post__content { color: var(--andp-text-mid); font-size: 15px; line-height: 1.8; }
.andp-post__content h2 { font-size: clamp(1.25rem,2.5vw,1.6rem); font-weight: 300; color: var(--andp-white); margin-top: 48px; margin-bottom: 16px; }
.andp-post__content h3 { font-size: 1.1rem; font-weight: 400; color: var(--andp-white); margin-top: 36px; margin-bottom: 12px; }
.andp-post__content p { color: var(--andp-text-mid); font-size: 15px; line-height: 1.8; margin-bottom: 1.4em; }
.andp-post__content a { color: var(--andp-gold); text-decoration: underline; text-underline-offset: 3px; }
.andp-post__content a:hover { color: var(--andp-white); }
.andp-post__content ul, .andp-post__content ol { padding-left: 1.5em; margin-bottom: 1.4em; }
.andp-post__content li { color: var(--andp-text-mid); font-size: 15px; line-height: 1.8; margin-bottom: 0.4em; }
.andp-post__content blockquote { border-left: 2px solid var(--andp-gold); margin: 32px 0; padding: 16px 24px; background-color: var(--andp-surface); }
.andp-post__content blockquote p { color: var(--andp-text-primary); font-size: 16px; font-weight: 300; font-style: italic; margin: 0; }
.andp-post__content code { font-family: var(--andp-font-mono); font-size: 12px; color: var(--andp-gold); background-color: var(--andp-surface); padding: 2px 6px; }
.andp-post__content pre { background-color: var(--andp-surface-alt); border: 1px solid var(--andp-border-light); padding: 20px 24px; overflow-x: auto; margin-bottom: 1.4em; }
.andp-post__content pre code { background: none; padding: 0; font-size: 13px; color: var(--andp-text-primary); }
.andp-post__content figure { margin: 32px 0; }
.andp-post__content figure img { display: block; width: 100%; height: auto; }
.andp-post__content figcaption { font-family: var(--andp-font-mono); font-size: 9px; color: var(--andp-text-dim); margin-top: 8px; }
.andp-post__content hr { border: none; border-top: 1px solid var(--andp-border-dark); margin: 48px 0; }
.andp-post__tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 40px; margin-top: 40px; border-top: 1px solid var(--andp-border-dark); }
.andp-post__tags-label { font-family: var(--andp-font-mono); font-size: 9px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.3em; color: var(--andp-text-dark); margin-right: 4px; }
.andp-badge--tag { font-family: var(--andp-font-mono); font-size: 9px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--andp-text-dark); border: 1px solid var(--andp-border-mid); padding: 4px 10px; text-decoration: none; transition: color var(--andp-transition), border-color var(--andp-transition); }
.andp-badge--tag:hover { color: var(--andp-gold); border-color: rgba(201,146,42,0.4); }
.andp-post__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 40px; margin-top: 40px; border-top: 1px solid var(--andp-border-dark); }
.andp-post__nav-prev, .andp-post__nav-next { display: flex; flex-direction: column; gap: 6px; }
.andp-post__nav-next { text-align: right; align-items: flex-end; }
.andp-post__nav-label { font-family: var(--andp-font-mono); font-size: 9px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.3em; color: var(--andp-text-darker); }
.andp-post__nav-title { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 400; color: var(--andp-text-primary); text-decoration: none; transition: color var(--andp-transition); line-height: 1.4; }
.andp-post__nav-title:hover { color: var(--andp-gold); }
.andp-post__related { background-color: var(--andp-surface-alt); border-top: 1px solid var(--andp-border-light); padding: 64px 0 80px; }
.andp-post__related-header { margin-bottom: 32px; }
.andp-post__related-footer { display: flex; justify-content: center; margin-top: 40px; }

/* ── Image credit (blog context only) ── */
body.blog .andp-img-credit,
body.single-post .andp-img-credit {
	font-family: var(--andp-font-mono);
	font-size: 9px;
	color: var(--andp-text-dim);
	text-align: left;
	line-height: 1.5;
}
body.blog .andp-img-credit:empty,
body.single-post .andp-img-credit:empty { display: none; }
body.blog .andp-img-credit a,
body.single-post .andp-img-credit a { color: var(--andp-gold); text-decoration: none; }
body.blog .andp-img-credit a:hover,
body.single-post .andp-img-credit a:hover { color: var(--andp-white); }

/* ── Responsive ── */
@media (max-width: 1024px) {
	.andp-blog-archive__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
	.andp-blog-archive__header { padding: 40px 0 32px; }
	.andp-blog-archive__body { padding: 28px 0 60px; }
	.andp-blog-featured { grid-template-columns: 1fr; }
	.andp-blog-featured__link, .andp-blog-featured__img-wrap { min-height: 220px; height: 220px; }
	.andp-blog-featured__body { padding: 28px 24px; }
	.andp-blog-archive__grid { grid-template-columns: 1fr; }
	.andp-post__header { padding: 36px 0 32px; }
	.andp-post__breadcrumb-current { max-width: 160px; }
	.andp-post__nav { grid-template-columns: 1fr; }
	.andp-post__nav-next { text-align: left; align-items: flex-start; }
	body.blog .andp-container--narrow,
	body.blog .andp-container--wide,
	body.single-post .andp-container--narrow,
	body.single-post .andp-container--wide { padding: 0 16px; }
}
@media (max-width: 480px) {
	.andp-blog-archive__filters { gap: 6px; }
	.andp-cat-pill { font-size: 9px; padding: 7px 12px; }
}
