/**
 * Blog single (article detail) — mirrors ya DetailHero, DetailFactsBar, sidebar, CTA, related.
 */

.yb-blog-single {
	background: #fff;
	color: #374151;
}

/* ── Hero with image ───────────────────────────────────────────── */

.yb-detail-hero {
	width: 100%;
	overflow: hidden;
	background: #111827;
}

.yb-detail-hero__media {
	position: relative;
	height: clamp(280px, 45vh, 520px);
	width: 100%;
}

.yb-detail-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.yb-detail-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 45%, rgba(0, 0, 0, 0.2) 100%);
}

.yb-detail-hero__content {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding-bottom: 2rem;
	padding-top: 5rem;
}

@media (min-width: 768px) {
	.yb-detail-hero__content {
		padding-bottom: 3rem;
	}
}

.yb-detail-hero__eyebrow {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #c9a868;
}

.yb-detail-hero__title {
	margin: 0.75rem 0 0;
	max-width: 56rem;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.875rem, 4vw, 3rem);
	font-weight: 700;
	line-height: 1.15;
	color: #fff;
}

.yb-detail-hero__excerpt {
	margin: 1rem 0 0;
	max-width: 48rem;
	font-size: 0.875rem;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.8);
}

@media (min-width: 768px) {
	.yb-detail-hero__excerpt {
		font-size: 1rem;
	}
}

.yb-detail-hero__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1.25rem;
}

.yb-detail-hero__pill {
	border-radius: 9999px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: rgba(255, 255, 255, 0.1);
	padding: 0.25rem 0.75rem;
	font-size: 0.75rem;
	font-weight: 600;
	color: #fff;
	backdrop-filter: blur(4px);
}

/* ── Hero fallback (no image) ────────────────────────────────────── */

.yb-detail-hero-fallback {
	border-bottom: 1px solid #f3f4f6;
	background: #f8f8f8;
	padding: 2.5rem 0;
}

@media (min-width: 768px) {
	.yb-detail-hero-fallback {
		padding: 3.5rem 0;
	}
}

.yb-detail-hero-fallback__eyebrow {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #c9a868;
}

.yb-detail-hero-fallback__title {
	margin: 0.75rem 0 0;
	max-width: 56rem;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.875rem, 4vw, 3rem);
	font-weight: 700;
	color: #111827;
}

.yb-detail-hero-fallback__excerpt {
	margin: 1rem 0 0;
	max-width: 48rem;
	font-size: 1.125rem;
	line-height: 1.65;
	color: #4b5563;
}

/* ── Facts bar ───────────────────────────────────────────────────── */

.yb-detail-facts {
	border-bottom: 1px solid #f3f4f6;
	background: #fff;
}

.yb-detail-facts__grid {
	display: grid;
	gap: 2rem;
	padding: 2rem 0;
}

@media (min-width: 640px) {
	.yb-detail-facts__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 768px) {
	.yb-detail-facts__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 2.5rem;
		padding: 2.5rem 0 3rem;
	}
}

.yb-detail-fact {
	display: flex;
	align-items: flex-start;
	gap: 0.875rem;
	min-width: 0;
}

.yb-detail-fact__icon {
	display: flex;
	height: 2.5rem;
	width: 2.5rem;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	border-radius: 0.75rem;
	background: #fff9ef;
	color: #c9a868;
	font-size: 1.125rem;
}

.yb-detail-fact__label {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #6b7280;
}

.yb-detail-fact__value {
	margin: 0.375rem 0 0;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.35;
	color: #111827;
}

@media (min-width: 768px) {
	.yb-detail-fact__value {
		font-size: 1rem;
	}
}

/* ── Main grid: article + sidebar ────────────────────────────────── */

.yb-detail-main {
	padding: 2rem 0;
}

@media (min-width: 768px) {
	.yb-detail-main {
		padding: 3rem 0;
	}
}

.yb-detail-main__grid {
	display: grid;
	gap: 2.5rem;
}

@media (min-width: 1024px) {
	.yb-detail-main__grid {
		grid-template-columns: minmax(0, 1fr) 320px;
		gap: 2.5rem;
		align-items: start;
	}
}

@media (min-width: 1280px) {
	.yb-detail-main__grid {
		grid-template-columns: minmax(0, 1fr) 360px;
	}
}

.yb-detail-sidebar {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

@media (min-width: 768px) {
	.yb-detail-sidebar {
		position: sticky;
		top: 6rem;
		align-self: start;
		gap: 1.5rem;
	}
}

.yb-detail-sidebar__panel {
	border-radius: 1rem;
	border: 1px solid #f3f4f6;
	background: #fff;
	padding: 1.5rem;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

@media (min-width: 768px) {
	.yb-detail-sidebar__panel {
		padding: 1.75rem;
	}
}

.yb-detail-sidebar__head {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.yb-detail-sidebar__title {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 700;
	color: #111827;
}

.yb-detail-sidebar__checklist {
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.yb-detail-sidebar__checklist li {
	display: flex;
	align-items: flex-start;
	gap: 0.625rem;
	font-size: 0.875rem;
	line-height: 1.5;
	color: #374151;
}

.yb-detail-sidebar__checklist i {
	margin-top: 0.125rem;
	flex-shrink: 0;
	color: #c9a868;
}

.yb-detail-sidebar__cta {
	border-radius: 1rem;
	border: 1px solid rgba(201, 168, 104, 0.3);
	background: linear-gradient(135deg, #fff9ef 0%, #fff 100%);
	padding: 1.5rem;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

@media (min-width: 768px) {
	.yb-detail-sidebar__cta {
		padding: 1.75rem;
	}
}

.yb-detail-sidebar__cta-eyebrow {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #c9a868;
}

.yb-detail-sidebar__cta-body {
	margin: 0.5rem 0 0;
	font-size: 0.875rem;
	line-height: 1.6;
	color: #374151;
}

.yb-detail-sidebar__btn {
	display: flex;
	width: 100%;
	justify-content: center;
	margin-top: 1rem;
	text-align: center;
}

.yb-detail-sidebar__back {
	display: flex;
	width: 100%;
	justify-content: center;
	margin-top: 0.75rem;
	padding: 0.625rem 1.25rem;
	border-radius: 0.125rem;
	border: 1px solid #e5e7eb;
	font-size: 0.875rem;
	font-weight: 600;
	color: #374151;
	text-decoration: none;
	transition: border-color 0.15s ease;
}

.yb-detail-sidebar__back:hover {
	border-color: #c9a868;
	color: #374151;
}

.yb-detail-sidebar__links {
	margin: 0.75rem 0 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.yb-detail-sidebar__links a {
	display: block;
	border-radius: 0.75rem;
	border: 1px solid #f3f4f6;
	background: #f8f8f8;
	padding: 0.75rem;
	text-decoration: none;
	transition: border-color 0.15s ease;
}

.yb-detail-sidebar__links a:hover {
	border-color: rgba(201, 168, 104, 0.4);
}

.yb-detail-sidebar__link-title {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 600;
	color: #111827;
}

.yb-detail-sidebar__link-body {
	margin: 0.25rem 0 0;
	font-size: 0.75rem;
	line-height: 1.55;
	color: #4b5563;
}

/* ── Article prose ───────────────────────────────────────────────── */

.yb-blog-body-prose {
	min-width: 0;
	font-size: 17px;
	line-height: 1.75;
	color: #374151;
}

.yb-blog-body-prose > :first-child {
	margin-top: 0;
}

.yb-blog-body-prose h2 {
	margin: 2rem 0 0.75rem;
	scroll-margin-top: 6rem;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.25;
	color: #111827;
}

.yb-blog-body-prose h3 {
	margin: 1.5rem 0 0.5rem;
	font-size: 1.125rem;
	font-weight: 700;
	color: #111827;
}

.yb-blog-body-prose p {
	margin: 0 0 1rem;
}

.yb-blog-body-prose a {
	color: #c9a868;
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.yb-blog-body-prose a:hover,
.yb-blog-link:hover {
	color: #a8843a;
}

.yb-blog-h2 {
	margin: 2.5rem 0 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid #f3f4f6;
	scroll-margin-top: 6rem;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.25;
	color: #111827;
}

.yb-blog-h2:first-child {
	margin-top: 0;
}

.yb-blog-h3 {
	margin: 2rem 0 0.75rem;
	font-size: 1.25rem;
	font-weight: 600;
	color: #111827;
}

.yb-blog-figure {
	margin: 2rem 0;
	overflow: hidden;
	border-radius: 1rem;
	border: 1px solid #f3f4f6;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.yb-blog-figure img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}

.yb-blog-bullet,
.yb-blog-numbered {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
	margin-bottom: 0.75rem;
}

.yb-blog-bullet__dot {
	margin-top: 0.55rem;
	height: 0.5rem;
	width: 0.5rem;
	flex-shrink: 0;
	border-radius: 9999px;
	background: #c9a868;
}

.yb-blog-numbered__mark {
	margin-top: 0.35rem;
	height: 0.5rem;
	width: 0.5rem;
	flex-shrink: 0;
	border-radius: 9999px;
	border: 2px solid #c9a868;
}

.yb-blog-spacer {
	height: 1rem;
}

.yb-blog-faq-item {
	padding: 0.75rem 1rem;
	border-radius: 0.75rem;
	background: #f8f8f8;
}

.yb-blog-body-prose ul,
.yb-blog-body-prose ol {
	margin: 0 0 1rem 1.25rem;
	padding: 0;
}

.yb-blog-body-prose li {
	margin-bottom: 0.35rem;
}

.yb-blog-body-prose img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	margin: 2rem 0;
	border-radius: 1rem;
	border: 1px solid #f3f4f6;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.yb-blog-body-prose table {
	width: 100%;
	margin: 1.5rem 0;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

.yb-blog-body-prose th,
.yb-blog-body-prose td {
	border: 1px solid #e5e7eb;
	padding: 0.625rem 0.75rem;
	text-align: left;
	vertical-align: top;
}

.yb-blog-body-prose th {
	background: #f8f8f8;
	font-weight: 600;
	color: #111827;
}

.yb-blog-body-prose strong {
	font-weight: 600;
	color: #111827;
}

.yb-blog-table-wrap {
	margin: 2rem 0;
	min-width: 0;
	overflow-x: auto;
	border-radius: 1rem;
	border: 1px solid #f3f4f6;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.yb-blog-table {
	width: 100%;
	min-width: 36rem;
	border-collapse: collapse;
	font-size: 0.875rem;
	text-align: left;
}

.yb-blog-table thead {
	background: #f8f8f8;
}

.yb-blog-table th,
.yb-blog-table td {
	border-bottom: 1px solid #f3f4f6;
	padding: 0.75rem 1rem;
	vertical-align: top;
}

.yb-blog-table th {
	font-weight: 600;
	color: #111827;
}

.yb-blog-table tbody tr:last-child td {
	border-bottom: none;
}

.yb-blog-list {
	margin: 0 0 1rem 1.25rem;
	padding: 0;
}

.yb-blog-list li {
	margin-bottom: 0.5rem;
}

.yb-blog-faq-item {
	padding: 0.75rem 1rem;
	border-radius: 0.75rem;
	background: #f8f8f8;
}

/* ── CTA band ────────────────────────────────────────────────────── */

.yb-detail-cta-band {
	background: #111827;
	color: #fff;
}

.yb-detail-cta-band__inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 2.5rem 0;
}

@media (min-width: 768px) {
	.yb-detail-cta-band__inner {
		flex-direction: row;
		align-items: center;
		padding: 3rem 0;
	}
}

.yb-detail-cta-band__eyebrow {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #c9a868;
}

.yb-detail-cta-band__title {
	margin: 0.5rem 0 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.5rem, 3vw, 1.875rem);
	font-weight: 700;
	color: #fff;
}

.yb-detail-cta-band__body {
	margin: 0.75rem 0 0;
	max-width: 42rem;
	font-size: 0.875rem;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.8);
}

@media (min-width: 768px) {
	.yb-detail-cta-band__body {
		font-size: 1rem;
	}
}

.yb-detail-cta-band__btn {
	flex-shrink: 0;
}

/* ── Related resources ───────────────────────────────────────────── */

.yb-detail-related {
	border-top: 1px solid #f3f4f6;
	background: #f8f8f8;
	padding: 2.5rem 0;
}

@media (min-width: 768px) {
	.yb-detail-related {
		padding: 3.5rem 0;
	}
}

.yb-detail-related__eyebrow {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #c9a868;
}

.yb-detail-related__title {
	margin: 0.5rem 0 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.5rem;
	font-weight: 700;
	color: #111827;
}

.yb-detail-related__grid {
	display: grid;
	gap: 1.5rem;
	margin-top: 2rem;
	align-items: stretch;
}

@media (min-width: 768px) {
	.yb-detail-related__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.yb-blog-related-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border-radius: 1rem;
	border: 1px solid #f3f4f6;
	background: #fff;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.yb-blog-related-card:hover {
	border-color: rgba(201, 168, 104, 0.4);
	box-shadow: 0 4px 20px rgba(26, 18, 8, 0.08);
}

.yb-blog-related-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1.25rem;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
